From ac3f32dadde592ec747dc2c38d4d1cddd5876d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Le=C3=B3n=20Orell=20Valerian=20Liehr?= Date: Fri, 26 Sep 2025 08:47:00 +0200 Subject: [PATCH] [WIP] --- src/librustdoc/html/render/mod.rs | 12 ------------ 1 file changed, 12 deletions(-) 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()