@@ -209,7 +209,10 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
209209 self . imp . resolve_field ( field)
210210 }
211211
212- pub fn resolve_record_field ( & self , field : & ast:: RecordField ) -> Option < ( Field , Option < Local > ) > {
212+ pub fn resolve_record_field (
213+ & self ,
214+ field : & ast:: RecordExprField ,
215+ ) -> Option < ( Field , Option < Local > ) > {
213216 self . imp . resolve_record_field ( field)
214217 }
215218
@@ -225,7 +228,7 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
225228 self . imp . resolve_path ( path)
226229 }
227230
228- pub fn resolve_variant ( & self , record_lit : ast:: RecordLit ) -> Option < VariantDef > {
231+ pub fn resolve_variant ( & self , record_lit : ast:: RecordExpr ) -> Option < VariantDef > {
229232 self . imp . resolve_variant ( record_lit) . map ( VariantDef :: from)
230233 }
231234
@@ -240,7 +243,7 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
240243 // FIXME: use this instead?
241244 // pub fn resolve_name_ref(&self, name_ref: &ast::NameRef) -> Option<???>;
242245
243- pub fn record_literal_missing_fields ( & self , literal : & ast:: RecordLit ) -> Vec < ( Field , Type ) > {
246+ pub fn record_literal_missing_fields ( & self , literal : & ast:: RecordExpr ) -> Vec < ( Field , Type ) > {
244247 self . imp . record_literal_missing_fields ( literal)
245248 }
246249
@@ -422,7 +425,7 @@ impl<'db> SemanticsImpl<'db> {
422425 self . analyze ( field. syntax ( ) ) . resolve_field ( self . db , field)
423426 }
424427
425- fn resolve_record_field ( & self , field : & ast:: RecordField ) -> Option < ( Field , Option < Local > ) > {
428+ fn resolve_record_field ( & self , field : & ast:: RecordExprField ) -> Option < ( Field , Option < Local > ) > {
426429 self . analyze ( field. syntax ( ) ) . resolve_record_field ( self . db , field)
427430 }
428431
@@ -440,7 +443,7 @@ impl<'db> SemanticsImpl<'db> {
440443 self . analyze ( path. syntax ( ) ) . resolve_path ( self . db , path)
441444 }
442445
443- fn resolve_variant ( & self , record_lit : ast:: RecordLit ) -> Option < VariantId > {
446+ fn resolve_variant ( & self , record_lit : ast:: RecordExpr ) -> Option < VariantId > {
444447 self . analyze ( record_lit. syntax ( ) ) . resolve_variant ( self . db , record_lit)
445448 }
446449
@@ -453,7 +456,7 @@ impl<'db> SemanticsImpl<'db> {
453456 self . analyze ( pat. syntax ( ) ) . resolve_bind_pat_to_const ( self . db , pat)
454457 }
455458
456- fn record_literal_missing_fields ( & self , literal : & ast:: RecordLit ) -> Vec < ( Field , Type ) > {
459+ fn record_literal_missing_fields ( & self , literal : & ast:: RecordExpr ) -> Vec < ( Field , Type ) > {
457460 self . analyze ( literal. syntax ( ) )
458461 . record_literal_missing_fields ( self . db , literal)
459462 . unwrap_or_default ( )
0 commit comments