Skip to content

Commit a77816d

Browse files
Auto merge of #146483 - fmease:rustdoc-gen-mac-exp-perf-fix, r=<try>
[DO NOT MERGE OR REVIEW] Early perf experiments
2 parents 40ace17 + ac3f32d commit a77816d

File tree

1 file changed

+0
-12
lines changed
  • src/librustdoc/html/render

1 file changed

+0
-12
lines changed

src/librustdoc/html/render/mod.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,18 +3013,6 @@ fn repr_attribute<'tcx>(
30133013
return is_public.then(|| "#[repr(transparent)]".into());
30143014
}
30153015

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-
30283016
// The repr is public iff all components are public and visible.
30293017
let is_public = adt
30303018
.variants()

0 commit comments

Comments
 (0)