We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eb336a commit 0598635Copy full SHA for 0598635
src/lib/unsafe.rs
@@ -4,7 +4,7 @@ native "rust-intrinsic" mod rusti {
4
fn cast<T, U>(src: T) -> U;
5
}
6
7
-native "rust" mod rustrt {
+native "c-stack-cdecl" mod rustrt {
8
fn leak<@T>(-thing: T);
9
10
src/rt/rust_builtin.cpp
@@ -86,7 +86,7 @@ align_of(type_desc *t) {
86
87
88
extern "C" CDECL void
89
-leak(type_desc *t, void *thing) {
+leak(void *thing) {
90
// Do nothing. Call this with move-mode in order to say "Don't worry rust,
91
// I'll take care of this."
92
0 commit comments