@@ -216,7 +216,7 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
216216 self . imp . resolve_record_field ( field)
217217 }
218218
219- pub fn resolve_record_field_pat ( & self , field : & ast:: RecordFieldPat ) -> Option < Field > {
219+ pub fn resolve_record_field_pat ( & self , field : & ast:: RecordPatField ) -> Option < Field > {
220220 self . imp . resolve_record_field_pat ( field)
221221 }
222222
@@ -236,7 +236,7 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
236236 self . imp . lower_path ( path)
237237 }
238238
239- pub fn resolve_bind_pat_to_const ( & self , pat : & ast:: BindPat ) -> Option < ModuleDef > {
239+ pub fn resolve_bind_pat_to_const ( & self , pat : & ast:: IdentPat ) -> Option < ModuleDef > {
240240 self . imp . resolve_bind_pat_to_const ( pat)
241241 }
242242
@@ -429,7 +429,7 @@ impl<'db> SemanticsImpl<'db> {
429429 self . analyze ( field. syntax ( ) ) . resolve_record_field ( self . db , field)
430430 }
431431
432- fn resolve_record_field_pat ( & self , field : & ast:: RecordFieldPat ) -> Option < Field > {
432+ fn resolve_record_field_pat ( & self , field : & ast:: RecordPatField ) -> Option < Field > {
433433 self . analyze ( field. syntax ( ) ) . resolve_record_field_pat ( self . db , field)
434434 }
435435
@@ -452,7 +452,7 @@ impl<'db> SemanticsImpl<'db> {
452452 Path :: from_src ( path. clone ( ) , & Hygiene :: new ( self . db . upcast ( ) , src. file_id . into ( ) ) )
453453 }
454454
455- fn resolve_bind_pat_to_const ( & self , pat : & ast:: BindPat ) -> Option < ModuleDef > {
455+ fn resolve_bind_pat_to_const ( & self , pat : & ast:: IdentPat ) -> Option < ModuleDef > {
456456 self . analyze ( pat. syntax ( ) ) . resolve_bind_pat_to_const ( self . db , pat)
457457 }
458458
@@ -594,7 +594,7 @@ to_def_impls![
594594 ( crate :: EnumVariant , ast:: Variant , enum_variant_to_def) ,
595595 ( crate :: TypeParam , ast:: TypeParam , type_param_to_def) ,
596596 ( crate :: MacroDef , ast:: MacroCall , macro_call_to_def) , // this one is dubious, not all calls are macros
597- ( crate :: Local , ast:: BindPat , bind_pat_to_def) ,
597+ ( crate :: Local , ast:: IdentPat , bind_pat_to_def) ,
598598] ;
599599
600600fn find_root ( node : & SyntaxNode ) -> SyntaxNode {
0 commit comments