diff options
| author | Michael Goulet <michael@errs.io> | 2025-02-07 19:42:33 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-02-09 17:11:13 +0000 |
| commit | a4e7f8f9bf10588cb5519ae09a15be155499901f (patch) | |
| tree | 49525f3454d966963544c40b78793dc74f0702cc /library/alloc/src/ffi | |
| parent | 04bbc8340a0e0031aef7f406c087a0ba64c1b491 (diff) | |
Mark extern blocks as unsafe
Diffstat (limited to 'library/alloc/src/ffi')
| -rw-r--r-- | library/alloc/src/ffi/c_str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/ffi/c_str.rs b/library/alloc/src/ffi/c_str.rs index 07c75677d05..fd93045a5ac 100644 --- a/library/alloc/src/ffi/c_str.rs +++ b/library/alloc/src/ffi/c_str.rs @@ -397,7 +397,7 @@ impl CString { // information about the size of the allocation is correct on Rust's // side. unsafe { - extern "C" { + unsafe extern "C" { /// Provided by libc or compiler_builtins. fn strlen(s: *const c_char) -> usize; } |
