mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
rustdoc: Add static size assertion for clean::Crate
This commit is contained in:
parent
e99963c554
commit
27d47d93be
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user