We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1116fc1 commit fabb4b0Copy full SHA for fabb4b0
src/librustdoc/clean/types.rs
@@ -771,6 +771,10 @@ pub(crate) enum ItemKind {
771
KeywordItem,
772
}
773
774
+// `ItemKind` is an enum and large variants can bloat up memory usage even for smaller ones
775
+#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
776
+rustc_data_structures::static_assert_size!(ItemKind, 112);
777
+
778
impl ItemKind {
779
/// Some items contain others such as structs (for their fields) and Enums
780
/// (for their variants). This method returns those contained items.
0 commit comments