Skip to content

Commit

Permalink
Rollup merge of rust-lang#82023 - MikailBag:boxed-docs-unallow, r=jyn514
Browse files Browse the repository at this point in the history
Remove unnecessary lint allow attrs on example

It seems they are not needed anymore.
  • Loading branch information
Dylan-DPC authored Feb 12, 2021
2 parents a88ae80 + f546633 commit 3db4afd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions library/alloc/src/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,11 @@
//! pub struct Foo;
//!
//! #[no_mangle]
//! #[allow(improper_ctypes_definitions)]
//! pub extern "C" fn foo_new() -> Box<Foo> {
//! Box::new(Foo)
//! }
//!
//! #[no_mangle]
//! #[allow(improper_ctypes_definitions)]
//! pub extern "C" fn foo_delete(_: Option<Box<Foo>>) {}
//! ```
//!
Expand Down

0 comments on commit 3db4afd

Please sign in to comment.