Skip to content

Commit c671dab

Browse files
unsafe some extern C blocks
1 parent 9ce9ff6 commit c671dab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/cpp_smoke_test/tests/smoke.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extern crate cpp_smoke_test;
33

44
use std::sync::atomic::{AtomicBool, Ordering};
55

6-
extern "C" {
6+
unsafe extern "C" {
77
fn cpp_trampoline(func: extern "C" fn()) -> ();
88
}
99

crates/line-tables-only/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mod tests {
77

88
pub type Callback = extern "C" fn(data: *mut c_void);
99

10-
extern "C" {
10+
unsafe extern "C" {
1111
fn foo(cb: Callback, data: *mut c_void);
1212
}
1313

0 commit comments

Comments
 (0)