Rollup merge of #82023 - MikailBag:boxed-docs-unallow, r=jyn514

Remove unnecessary lint allow attrs on example

It seems they are not needed anymore.
This commit is contained in:
Dylan DPC 2021-02-12 22:53:37 +01:00 committed by GitHub
commit 54013fe59e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,13 +99,11 @@
//! pub struct Foo; //! pub struct Foo;
//! //!
//! #[no_mangle] //! #[no_mangle]
//! #[allow(improper_ctypes_definitions)]
//! pub extern "C" fn foo_new() -> Box<Foo> { //! pub extern "C" fn foo_new() -> Box<Foo> {
//! Box::new(Foo) //! Box::new(Foo)
//! } //! }
//! //!
//! #[no_mangle] //! #[no_mangle]
//! #[allow(improper_ctypes_definitions)]
//! pub extern "C" fn foo_delete(_: Option<Box<Foo>>) {} //! pub extern "C" fn foo_delete(_: Option<Box<Foo>>) {}
//! ``` //! ```
//! //!