Skip to content

Commit

Permalink
alloc: Apply unsafe_attr_outside_unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss authored and gitbot committed Mar 6, 2025
1 parent 72288e3 commit 130c44c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alloc/src/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>>) {}
//! ```
//!
Expand Down

0 comments on commit 130c44c

Please sign in to comment.