diff --git a/jemalloc-sys/src/lib.rs b/jemalloc-sys/src/lib.rs index 0fc0a83..ca0d303 100644 --- a/jemalloc-sys/src/lib.rs +++ b/jemalloc-sys/src/lib.rs @@ -45,6 +45,7 @@ feature = "cargo-clippy", allow(clippy::cast_possible_truncation, clippy::cast_possible_wrap) )] +#![deny(missing_docs, intra_doc_link_resolution_failure)] extern crate libc; @@ -596,6 +597,8 @@ pub type extent_hooks_t = extent_hooks_s; #[repr(C)] #[cfg(not(jemallocator_docs))] #[derive(Copy, Clone, Default)] +#[doc(hidden)] +#[allow(missing_docs)] pub struct extent_hooks_s { pub alloc: Option< unsafe extern "C" fn( @@ -696,14 +699,23 @@ pub struct extent_hooks_s { #[cfg(jemallocator_docs)] #[derive(Copy, Clone, Default)] pub struct extent_hooks_s { + #[allow(missing_docs)] pub alloc: Option, + #[allow(missing_docs)] pub dalloc: Option, + #[allow(missing_docs)] pub destroy: Option, + #[allow(missing_docs)] pub commit: Option, + #[allow(missing_docs)] pub decommit: Option, + #[allow(missing_docs)] pub purge_lazy: Option, + #[allow(missing_docs)] pub purge_forced: Option, + #[allow(missing_docs)] pub split: Option, + #[allow(missing_docs)] pub merge: Option, } diff --git a/src/lib.rs b/src/lib.rs index b8efde4..f0a3692 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,7 +16,7 @@ //! and is suitable both as a memory allocator and as a global allocator. #![cfg_attr(feature = "alloc_trait", feature(allocator_api))] -#![deny(missing_docs)] +#![deny(missing_docs, intra_doc_link_resolution_failure)] #![no_std] extern crate jemalloc_sys;