migrate leak

This commit is contained in:
Niko Matsakis 2011-10-20 17:23:21 -07:00 committed by Brian Anderson
parent 8eb336a705
commit 0598635bdc
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ native "rust-intrinsic" mod rusti {
fn cast<T, U>(src: T) -> U;
}
native "rust" mod rustrt {
native "c-stack-cdecl" mod rustrt {
fn leak<@T>(-thing: T);
}

View File

@ -86,7 +86,7 @@ align_of(type_desc *t) {
}
extern "C" CDECL void
leak(type_desc *t, void *thing) {
leak(void *thing) {
// Do nothing. Call this with move-mode in order to say "Don't worry rust,
// I'll take care of this."
}