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 435929f commit 46c1f8dCopy full SHA for 46c1f8d
cpp/src/lib.rs
@@ -149,7 +149,7 @@ macro_rules! __cpp_internal {
149
$($a)* unsafe extern "C" fn $i($($an : *const $at),*) {
150
$(let $an : $at = unsafe { $an.read() };)*
151
(|| { $($body)* })();
152
- $(::std::mem::forget($an);)*
+ $(::core::mem::forget($an);)*
153
154
}
155
};
@@ -165,9 +165,9 @@ macro_rules! __cpp_internal {
165
{
166
#[allow(unused_mut)]
167
let mut lambda = || {$($body)*};
168
- unsafe { ::std::ptr::write(rt, lambda()) };
+ unsafe { ::core::ptr::write(rt, lambda()) };
169
170
171
rt
172
173
0 commit comments