rustdoc: Add static size assertion for clean::Crate

This commit is contained in:
Noah Lev 2021-10-28 20:58:53 -07:00
parent e99963c554
commit 27d47d93be

View File

@ -125,6 +125,10 @@ crate struct Crate {
crate collapsed: bool,
}
// `Crate` is frequently moved by-value. Make sure it doesn't unintentionally get bigger.
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
rustc_data_structures::static_assert_size!(Crate, 168);
/// This struct is used to wrap additional information added by rustdoc on a `trait` item.
#[derive(Clone, Debug)]
crate struct TraitWithExtraInfo {