Skip to content

Commit 0598635

Browse files
nikomatsakisbrson
authored andcommitted
migrate leak
1 parent 8eb336a commit 0598635

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/unsafe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ native "rust-intrinsic" mod rusti {
44
fn cast<T, U>(src: T) -> U;
55
}
66

7-
native "rust" mod rustrt {
7+
native "c-stack-cdecl" mod rustrt {
88
fn leak<@T>(-thing: T);
99
}
1010

src/rt/rust_builtin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ align_of(type_desc *t) {
8686
}
8787

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

0 commit comments

Comments
 (0)