We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 40ace17 + ac3f32d commit a77816dCopy full SHA for a77816d
src/librustdoc/html/render/mod.rs
@@ -3013,18 +3013,6 @@ fn repr_attribute<'tcx>(
3013
return is_public.then(|| "#[repr(transparent)]".into());
3014
}
3015
3016
- // Fast path which avoids looking through the variants and fields in
3017
- // the common case of no `#[repr]` or in the case of `#[repr(Rust)]`.
3018
- // FIXME: This check is not very robust / forward compatible!
3019
- if !repr.c()
3020
- && !repr.simd()
3021
- && repr.int.is_none()
3022
- && repr.pack.is_none()
3023
- && repr.align.is_none()
3024
- {
3025
- return None;
3026
- }
3027
-
3028
// The repr is public iff all components are public and visible.
3029
let is_public = adt
3030
.variants()
0 commit comments