diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index 9a14137a6e801..ff7b7c7869887 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -3013,18 +3013,6 @@ fn repr_attribute<'tcx>(
return is_public.then(|| "#[repr(transparent)]".into());
}
- // Fast path which avoids looking through the variants and fields in
- // the common case of no `#[repr]` or in the case of `#[repr(Rust)]`.
- // FIXME: This check is not very robust / forward compatible!
- if !repr.c()
- && !repr.simd()
- && repr.int.is_none()
- && repr.pack.is_none()
- && repr.align.is_none()
- {
- return None;
- }
-
// The repr is public iff all components are public and visible.
let is_public = adt
.variants()