From 24295bf7ae03f28fc09c30de7dd73f05c0641ac8 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 24 Mar 2026 14:23:41 +0100 Subject: [PATCH] Disable `doc(auto_cfg)` for integers trait impls --- library/core/src/fmt/num.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/core/src/fmt/num.rs b/library/core/src/fmt/num.rs index dfa27e32bc722..e9302a6127f5c 100644 --- a/library/core/src/fmt/num.rs +++ b/library/core/src/fmt/num.rs @@ -594,6 +594,7 @@ impl_Debug! { // Include wasm32 in here since it doesn't reflect the native pointer size, and // often cares strongly about getting a smaller code size. #[cfg(any(target_pointer_width = "64", target_arch = "wasm32"))] +#[doc(auto_cfg = false)] mod imp { use super::*; impl_Display!(i8, u8, i16, u16, i32, u32, i64, u64, isize, usize; as u64 into display_u64); @@ -601,6 +602,7 @@ mod imp { } #[cfg(not(any(target_pointer_width = "64", target_arch = "wasm32")))] +#[doc(auto_cfg = false)] mod imp { use super::*; impl_Display!(i8, u8, i16, u16, i32, u32, isize, usize; as u32 into display_u32);