We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a44263 commit 5fce0ddCopy full SHA for 5fce0dd
src/librustdoc/clean/types.rs
@@ -88,6 +88,10 @@ crate struct Item {
88
crate def_id: DefId,
89
}
90
91
+// `Item` is used a lot. Make sure it doesn't unintentionally get bigger.
92
+#[cfg(target_arch = "x86_64")]
93
+rustc_data_structures::static_assert_size!(Item, 136);
94
+
95
impl fmt::Debug for Item {
96
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
97
let def_id: &dyn fmt::Debug = if self.is_fake() { &"**FAKE**" } else { &self.def_id };
0 commit comments