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/std/src/sys/alloc | |
| parent | 04bbc8340a0e0031aef7f406c087a0ba64c1b491 (diff) | |
| download | rust-a4e7f8f9bf10588cb5519ae09a15be155499901f.tar.gz rust-a4e7f8f9bf10588cb5519ae09a15be155499901f.zip | |
Mark extern blocks as unsafe
Diffstat (limited to 'library/std/src/sys/alloc')
| -rw-r--r-- | library/std/src/sys/alloc/xous.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/alloc/xous.rs b/library/std/src/sys/alloc/xous.rs index 321d30e0b11..9d22e16fdf2 100644 --- a/library/std/src/sys/alloc/xous.rs +++ b/library/std/src/sys/alloc/xous.rs @@ -8,7 +8,7 @@ use crate::alloc::{GlobalAlloc, Layout, System}; static mut DLMALLOC: dlmalloc::Dlmalloc = dlmalloc::Dlmalloc::new(); #[cfg(test)] -extern "Rust" { +unsafe extern "Rust" { #[link_name = "_ZN16__rust_internals3std3sys4xous5alloc8DLMALLOCE"] static mut DLMALLOC: dlmalloc::Dlmalloc; } |
