mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-10 02:56:52 +00:00
migrate leak
This commit is contained in:
parent
8eb336a705
commit
0598635bdc
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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."
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user