X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_metadata%2Fsrc%2Frmeta%2Fmod.rs;h=15e8693d71282f1d866b04c445e493dabb671188;hb=e62f4838424208f0f980f6bf95d17610694c80d4;hp=c2d85efb15d92814fc1dd36ac8abde99b6c870fa;hpb=618138b923a4139d0a752d9a9a049169a569cd39;p=rust.git diff --git a/compiler/rustc_metadata/src/rmeta/mod.rs b/compiler/rustc_metadata/src/rmeta/mod.rs index c2d85efb15d..15e8693d712 100644 --- a/compiler/rustc_metadata/src/rmeta/mod.rs +++ b/compiler/rustc_metadata/src/rmeta/mod.rs @@ -320,6 +320,7 @@ fn encode(&self, buf: &mut Encoder) -> LazyTables<'tcx> { asyncness: Table, fn_arg_names: Table, generator_kind: Table, + trait_def: Table, trait_item_def_id: Table>, inherent_impls: Table>, @@ -360,7 +361,7 @@ enum EntryKind { ProcMacro(MacroKind), Closure, Generator, - Trait(Lazy), + Trait, Impl, AssocFn(Lazy), AssocType(AssocContainer), @@ -377,17 +378,6 @@ struct VariantData { is_non_exhaustive: bool, } -#[derive(TyEncodable, TyDecodable)] -struct TraitData { - unsafety: hir::Unsafety, - paren_sugar: bool, - has_auto_impl: bool, - is_marker: bool, - skip_array_during_method_dispatch: bool, - specialization_kind: ty::trait_def::TraitSpecializationKind, - must_implement_one_of: Option>, -} - /// Describes whether the container of an associated item /// is a trait or an impl and whether, in a trait, it has /// a default, or an in impl, whether it's marked "default".