We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd72393 + 10b9b3d commit 874f19fCopy full SHA for 874f19f
src/librustdoc/clean/types.rs
@@ -1450,6 +1450,10 @@ crate enum Type {
1450
ImplTrait(Vec<GenericBound>),
1451
}
1452
1453
+// `Type` is used a lot. Make sure it doesn't unintentionally get bigger.
1454
+#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
1455
+rustc_data_structures::static_assert_size!(Type, 72);
1456
+
1457
crate trait GetDefId {
1458
/// Use this method to get the [`DefId`] of a [`clean`] AST node.
1459
/// This will return [`None`] when called on a primitive [`clean::Type`].
0 commit comments