@@ -826,7 +826,7 @@ impl LoweringContext<'_> {
826
826
. map ( |x| self . lower_const_body ( i. span , Some ( x) ) ) ,
827
827
) ,
828
828
) ,
829
- AssocItemKind :: Method ( ref sig, None ) => {
829
+ AssocItemKind :: Fn ( ref sig, None ) => {
830
830
let names = self . lower_fn_params_to_names ( & sig. decl ) ;
831
831
let ( generics, sig) = self . lower_method_sig (
832
832
& i. generics ,
@@ -837,7 +837,7 @@ impl LoweringContext<'_> {
837
837
) ;
838
838
( generics, hir:: TraitItemKind :: Method ( sig, hir:: TraitMethod :: Required ( names) ) )
839
839
}
840
- AssocItemKind :: Method ( ref sig, Some ( ref body) ) => {
840
+ AssocItemKind :: Fn ( ref sig, Some ( ref body) ) => {
841
841
let body_id = self . lower_fn_body_block ( i. span , & sig. decl , Some ( body) ) ;
842
842
let ( generics, sig) = self . lower_method_sig (
843
843
& i. generics ,
@@ -880,7 +880,7 @@ impl LoweringContext<'_> {
880
880
AssocItemKind :: TyAlias ( _, ref default) => {
881
881
( hir:: AssocItemKind :: Type , default. is_some ( ) )
882
882
}
883
- AssocItemKind :: Method ( ref sig, ref default) => (
883
+ AssocItemKind :: Fn ( ref sig, ref default) => (
884
884
hir:: AssocItemKind :: Method {
885
885
has_self : sig. decl . has_self ( ) ,
886
886
} ,
@@ -913,7 +913,7 @@ impl LoweringContext<'_> {
913
913
self . lower_const_body ( i. span , expr. as_deref ( ) ) ,
914
914
) ,
915
915
) ,
916
- AssocItemKind :: Method ( ref sig, ref body) => {
916
+ AssocItemKind :: Fn ( ref sig, ref body) => {
917
917
self . current_item = Some ( i. span ) ;
918
918
let body_id = self . lower_maybe_async_body (
919
919
i. span ,
@@ -984,7 +984,7 @@ impl LoweringContext<'_> {
984
984
None => hir:: AssocItemKind :: Type ,
985
985
Some ( _) => hir:: AssocItemKind :: OpaqueTy ,
986
986
} ,
987
- AssocItemKind :: Method ( sig, _) => hir:: AssocItemKind :: Method {
987
+ AssocItemKind :: Fn ( sig, _) => hir:: AssocItemKind :: Method {
988
988
has_self : sig. decl . has_self ( ) ,
989
989
} ,
990
990
AssocItemKind :: Macro ( ..) => unimplemented ! ( ) ,
0 commit comments