Skip to content

Commit 46c1f8d

Browse files
richardeoinogoffart
authored andcommitted
Prefer core in rust_macro also
1 parent 435929f commit 46c1f8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ macro_rules! __cpp_internal {
149149
$($a)* unsafe extern "C" fn $i($($an : *const $at),*) {
150150
$(let $an : $at = unsafe { $an.read() };)*
151151
(|| { $($body)* })();
152-
$(::std::mem::forget($an);)*
152+
$(::core::mem::forget($an);)*
153153

154154
}
155155
};
@@ -165,9 +165,9 @@ macro_rules! __cpp_internal {
165165
{
166166
#[allow(unused_mut)]
167167
let mut lambda = || {$($body)*};
168-
unsafe { ::std::ptr::write(rt, lambda()) };
168+
unsafe { ::core::ptr::write(rt, lambda()) };
169169
}
170-
$(::std::mem::forget($an);)*
170+
$(::core::mem::forget($an);)*
171171
rt
172172
}
173173
};

0 commit comments

Comments
 (0)