Remove unused TyDesc parameter from the glue functions
To remove the environment pointer, support for function pointers without an environment argument is needed (i.e. a fixed version of #6661).
This commit is contained in:
parent
1b76bac41d
commit
e2f1049bd5
9 changed files with 66 additions and 37 deletions
|
|
@ -36,6 +36,10 @@ A quick refresher on memory ordering:
|
|||
#[cfg(test)]
|
||||
pub use realstd::unstable::intrinsics::{TyDesc, Opaque, TyVisitor};
|
||||
|
||||
#[cfg(not(stage0))]
|
||||
pub type GlueFn = extern "Rust" fn(*i8);
|
||||
|
||||
#[cfg(stage0)]
|
||||
pub type GlueFn = extern "Rust" fn(**TyDesc, *i8);
|
||||
|
||||
// NB: this has to be kept in sync with the Rust ABI.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue