Update type visitor to use &Visitor and not @Visitor
This commit is contained in:
parent
66b8ad5867
commit
df016dc4bf
6 changed files with 37 additions and 12 deletions
|
|
@ -328,8 +328,12 @@ extern "rust-intrinsic" {
|
|||
/// Returns `true` if a type is managed (will be allocated on the local heap)
|
||||
pub fn contains_managed<T>() -> bool;
|
||||
|
||||
#[cfg(stage0)]
|
||||
pub fn visit_tydesc(td: *TyDesc, tv: @TyVisitor);
|
||||
|
||||
#[cfg(not(stage0))]
|
||||
pub fn visit_tydesc(td: *TyDesc, tv: &TyVisitor);
|
||||
|
||||
pub fn frame_address(f: &once fn(*u8));
|
||||
|
||||
/// Get the address of the `__morestack` stack growth function.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue