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=bf9be714daf7e940b09c29bdc1819efee06106a6;hpb=b6b442906337e8df05334ea793690873bcf72d90;p=rust.git diff --git a/compiler/rustc_metadata/src/rmeta/mod.rs b/compiler/rustc_metadata/src/rmeta/mod.rs index bf9be714daf..69690264ae4 100644 --- a/compiler/rustc_metadata/src/rmeta/mod.rs +++ b/compiler/rustc_metadata/src/rmeta/mod.rs @@ -359,8 +359,8 @@ fn encode(&self, buf: &mut FileEncoder) -> LazyTables { variances_of: Table>, fn_sig: Table>>, codegen_fn_attrs: Table>, - impl_trait_ref: Table>>, - const_param_default: Table>>, + impl_trait_ref: Table>>>, + const_param_default: Table>>>, object_lifetime_default: Table>, optimized_mir: Table>>, mir_for_ctfe: Table>>, @@ -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. @@ -404,6 +404,8 @@ fn encode(&self, buf: &mut FileEncoder) -> LazyTables { proc_macro: Table, module_reexports: Table>, deduced_param_attrs: Table>, + // Slot is full when opaque is TAIT. + is_type_alias_impl_trait: Table, trait_impl_trait_tys: Table>>>, } @@ -416,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; @@ -438,4 +447,5 @@ pub fn provide(providers: &mut Providers) { IncoherentImpls, CrateRoot, CrateDep, + AttrFlags, }