about summary refs log tree commit diff
path: root/src/librustdoc/formats/renderer.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-08-30 10:52:45 -0700
committerMichael Howell <michael@notriddle.com>2024-09-07 21:06:50 -0700
commit65903362ad810c572e8ae742f6ed5ae3548238e4 (patch)
treea7658890f8165abdda135c92045ccdb77612a720 /src/librustdoc/formats/renderer.rs
parente80c9ac3e213c0c2e6d1a80ea2d4bf074ff8f887 (diff)
downloadrust-65903362ad810c572e8ae742f6ed5ae3548238e4.tar.gz
rust-65903362ad810c572e8ae742f6ed5ae3548238e4.zip
rustdoc: use a single box to store Attributes and ItemKind
Diffstat (limited to 'src/librustdoc/formats/renderer.rs')
-rw-r--r--src/librustdoc/formats/renderer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/formats/renderer.rs b/src/librustdoc/formats/renderer.rs
index cc57dca86c3..edd7d56b179 100644
--- a/src/librustdoc/formats/renderer.rs
+++ b/src/librustdoc/formats/renderer.rs
@@ -77,7 +77,7 @@ pub(crate) fn run_format<'tcx, T: FormatRenderer<'tcx>>(
 
             cx.mod_item_in(&item)?;
             let (clean::StrippedItem(box clean::ModuleItem(module)) | clean::ModuleItem(module)) =
-                *item.kind
+                item.inner.kind
             else {
                 unreachable!()
             };