@@ -826,7 +826,7 @@ impl LoweringContext<'_> {
826826 . map ( |x| self . lower_const_body ( i. span , Some ( x) ) ) ,
827827 ) ,
828828 ) ,
829- AssocItemKind :: Method ( ref sig, None ) => {
829+ AssocItemKind :: Fn ( ref sig, None ) => {
830830 let names = self . lower_fn_params_to_names ( & sig. decl ) ;
831831 let ( generics, sig) = self . lower_method_sig (
832832 & i. generics ,
@@ -837,7 +837,7 @@ impl LoweringContext<'_> {
837837 ) ;
838838 ( generics, hir:: TraitItemKind :: Method ( sig, hir:: TraitMethod :: Required ( names) ) )
839839 }
840- AssocItemKind :: Method ( ref sig, Some ( ref body) ) => {
840+ AssocItemKind :: Fn ( ref sig, Some ( ref body) ) => {
841841 let body_id = self . lower_fn_body_block ( i. span , & sig. decl , Some ( body) ) ;
842842 let ( generics, sig) = self . lower_method_sig (
843843 & i. generics ,
@@ -880,7 +880,7 @@ impl LoweringContext<'_> {
880880 AssocItemKind :: TyAlias ( _, ref default) => {
881881 ( hir:: AssocItemKind :: Type , default. is_some ( ) )
882882 }
883- AssocItemKind :: Method ( ref sig, ref default) => (
883+ AssocItemKind :: Fn ( ref sig, ref default) => (
884884 hir:: AssocItemKind :: Method {
885885 has_self : sig. decl . has_self ( ) ,
886886 } ,
@@ -913,7 +913,7 @@ impl LoweringContext<'_> {
913913 self . lower_const_body ( i. span , expr. as_deref ( ) ) ,
914914 ) ,
915915 ) ,
916- AssocItemKind :: Method ( ref sig, ref body) => {
916+ AssocItemKind :: Fn ( ref sig, ref body) => {
917917 self . current_item = Some ( i. span ) ;
918918 let body_id = self . lower_maybe_async_body (
919919 i. span ,
@@ -984,7 +984,7 @@ impl LoweringContext<'_> {
984984 None => hir:: AssocItemKind :: Type ,
985985 Some ( _) => hir:: AssocItemKind :: OpaqueTy ,
986986 } ,
987- AssocItemKind :: Method ( sig, _) => hir:: AssocItemKind :: Method {
987+ AssocItemKind :: Fn ( sig, _) => hir:: AssocItemKind :: Method {
988988 has_self : sig. decl . has_self ( ) ,
989989 } ,
990990 AssocItemKind :: Macro ( ..) => unimplemented ! ( ) ,
0 commit comments