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 9ce9ff6 commit c671dabCopy full SHA for c671dab
crates/cpp_smoke_test/tests/smoke.rs
@@ -3,7 +3,7 @@ extern crate cpp_smoke_test;
3
4
use std::sync::atomic::{AtomicBool, Ordering};
5
6
-extern "C" {
+unsafe extern "C" {
7
fn cpp_trampoline(func: extern "C" fn()) -> ();
8
}
9
crates/line-tables-only/src/lib.rs
@@ -7,7 +7,7 @@ mod tests {
pub type Callback = extern "C" fn(data: *mut c_void);
10
- extern "C" {
+ unsafe extern "C" {
11
fn foo(cb: Callback, data: *mut c_void);
12
13
0 commit comments