Skip to content

Commit f9f6c97

Browse files
Rollup merge of rust-lang#154311 - GuillaumeGomez:fix-integer-doc-cfg, r=eggyal,tgross35
[libcore] Disable `doc(auto_cfg)` for integers trait impls Fixes rust-lang#153655. Thanks to rust-lang#153964, `doc(auto_cfg)` finally works as expected on impls. So now this fix works: <img width="1000" height="806" alt="image" src="https://github.com/user-attachments/assets/f37da375-c2eb-4a7b-abf2-1fdd3a73e2bb" /> cc @eggyal
2 parents 63154b7 + 24295bf commit f9f6c97

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

library/core/src/fmt/num.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,13 +594,15 @@ impl_Debug! {
594594
// Include wasm32 in here since it doesn't reflect the native pointer size, and
595595
// often cares strongly about getting a smaller code size.
596596
#[cfg(any(target_pointer_width = "64", target_arch = "wasm32"))]
597+
#[doc(auto_cfg = false)]
597598
mod imp {
598599
use super::*;
599600
impl_Display!(i8, u8, i16, u16, i32, u32, i64, u64, isize, usize; as u64 into display_u64);
600601
impl_Exp!(i8, u8, i16, u16, i32, u32, i64, u64, isize, usize; as u64 into exp_u64);
601602
}
602603

603604
#[cfg(not(any(target_pointer_width = "64", target_arch = "wasm32")))]
605+
#[doc(auto_cfg = false)]
604606
mod imp {
605607
use super::*;
606608
impl_Display!(i8, u8, i16, u16, i32, u32, isize, usize; as u32 into display_u32);

0 commit comments

Comments
 (0)