MethodData -> AssocFnData

This commit is contained in:
Mark Mansi 2020-03-15 11:19:17 -05:00
parent e3c15ae6bc
commit 1b92e86a1c
2 changed files with 4 additions and 4 deletions

View File

@ -822,7 +822,7 @@ impl EncodeContext<'tcx> {
} else {
bug!()
};
EntryKind::AssocFn(self.lazy(MethodData {
EntryKind::AssocFn(self.lazy(AssocFnData {
fn_data,
container,
has_self: trait_item.method_has_self_argument,
@ -903,7 +903,7 @@ impl EncodeContext<'tcx> {
} else {
bug!()
};
EntryKind::AssocFn(self.lazy(MethodData {
EntryKind::AssocFn(self.lazy(AssocFnData {
fn_data,
container,
has_self: impl_item.method_has_self_argument,

View File

@ -305,7 +305,7 @@ enum EntryKind {
Generator(hir::GeneratorKind),
Trait(Lazy<TraitData>),
Impl(Lazy<ImplData>),
AssocFn(Lazy<MethodData>),
AssocFn(Lazy<AssocFnData>),
AssocType(AssocContainer),
AssocOpaqueTy(AssocContainer),
AssocConst(AssocContainer, mir::ConstQualifs, Lazy<RenderedConst>),
@ -392,7 +392,7 @@ impl AssocContainer {
}
#[derive(RustcEncodable, RustcDecodable)]
struct MethodData {
struct AssocFnData {
fn_data: FnData,
container: AssocContainer,
has_self: bool,