diff options
| author | Eric Huss <eric@huss.org> | 2025-02-13 09:03:50 -0800 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2025-02-13 13:10:27 -0800 |
| commit | 55ef73c00d278f10d8a62aa1c722ff0d6138e4e5 (patch) | |
| tree | 306f2196941517593d531f4aac2e6b82cc5c4022 /library/alloc/src | |
| parent | 890530e1860e14ca305b77af4903166e583b89b8 (diff) | |
| download | rust-55ef73c00d278f10d8a62aa1c722ff0d6138e4e5.tar.gz rust-55ef73c00d278f10d8a62aa1c722ff0d6138e4e5.zip | |
alloc: Apply unsafe_attr_outside_unsafe
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/boxed.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs index 26f24c84ff0..36fb4140a4b 100644 --- a/library/alloc/src/boxed.rs +++ b/library/alloc/src/boxed.rs @@ -97,12 +97,12 @@ //! #[repr(C)] //! pub struct Foo; //! -//! #[no_mangle] +//! #[unsafe(no_mangle)] //! pub extern "C" fn foo_new() -> Box<Foo> { //! Box::new(Foo) //! } //! -//! #[no_mangle] +//! #[unsafe(no_mangle)] //! pub extern "C" fn foo_delete(_: Option<Box<Foo>>) {} //! ``` //! |
