X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Frustc_metadata%2Fsrc%2Frmeta%2Fmod.rs;h=69690264ae4ea5e96d7ffd1642d322028effd3ef;hb=0c53b215de0c57833756300e81ac9c5f84a541a3;hp=5066dbbb90f3a60168e3bd1a2829cc70d7bd1b16;hpb=a2bf475d01d0112ded3aa17e40cb335e1524aa8f;p=rust.git diff --git a/compiler/rustc_metadata/src/rmeta/mod.rs b/compiler/rustc_metadata/src/rmeta/mod.rs index 5066dbbb90f..69690264ae4 100644 --- a/compiler/rustc_metadata/src/rmeta/mod.rs +++ b/compiler/rustc_metadata/src/rmeta/mod.rs @@ -395,7 +395,7 @@ fn encode(&self, buf: &mut FileEncoder) -> LazyTables { def_path_hashes: Table, proc_macro_quoted_spans: Table>, generator_diagnostic_data: Table>>, - may_have_doc_links: Table, + attr_flags: Table, variant_data: Table>, assoc_container: Table, // Slot is full when macro is macro_rules. @@ -418,6 +418,13 @@ struct VariantData { is_non_exhaustive: bool, } +bitflags::bitflags! { + pub struct AttrFlags: u8 { + const MAY_HAVE_DOC_LINKS = 1 << 0; + const IS_DOC_HIDDEN = 1 << 1; + } +} + // Tags used for encoding Spans: const TAG_VALID_SPAN_LOCAL: u8 = 0; const TAG_VALID_SPAN_FOREIGN: u8 = 1; @@ -440,4 +447,5 @@ pub fn provide(providers: &mut Providers) { IncoherentImpls, CrateRoot, CrateDep, + AttrFlags, }