Skip to content

Commit 130c44c

Browse files
ehussgitbot
authored and
gitbot
committed
alloc: Apply unsafe_attr_outside_unsafe
1 parent 72288e3 commit 130c44c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alloc/src/boxed.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@
9797
//! #[repr(C)]
9898
//! pub struct Foo;
9999
//!
100-
//! #[no_mangle]
100+
//! #[unsafe(no_mangle)]
101101
//! pub extern "C" fn foo_new() -> Box<Foo> {
102102
//! Box::new(Foo)
103103
//! }
104104
//!
105-
//! #[no_mangle]
105+
//! #[unsafe(no_mangle)]
106106
//! pub extern "C" fn foo_delete(_: Option<Box<Foo>>) {}
107107
//! ```
108108
//!

0 commit comments

Comments
 (0)