mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Get rid of field_type again
This commit is contained in:
parent
e65803748d
commit
b8262099cc
6 changed files with 16 additions and 24 deletions
|
@ -227,7 +227,7 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
|
|||
pub fn resolve_record_field(
|
||||
&self,
|
||||
field: &ast::RecordExprField,
|
||||
) -> Option<(Field, Option<Local>)> {
|
||||
) -> Option<(Field, Option<Local>, Type)> {
|
||||
self.imp.resolve_record_field(field)
|
||||
}
|
||||
|
||||
|
@ -518,7 +518,10 @@ impl<'db> SemanticsImpl<'db> {
|
|||
self.analyze(field.syntax()).resolve_field(self.db, field)
|
||||
}
|
||||
|
||||
fn resolve_record_field(&self, field: &ast::RecordExprField) -> Option<(Field, Option<Local>)> {
|
||||
fn resolve_record_field(
|
||||
&self,
|
||||
field: &ast::RecordExprField,
|
||||
) -> Option<(Field, Option<Local>, Type)> {
|
||||
self.analyze(field.syntax()).resolve_record_field(self.db, field)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue