mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
make AstId untyped
This commit is contained in:
parent
033a32f349
commit
549728bba8
11 changed files with 29 additions and 24 deletions
|
@ -76,7 +76,7 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
|||
let source_file = db.parse(file_id.original_file(db));
|
||||
if let Some(field_list_node) = source_map
|
||||
.expr_syntax(id)
|
||||
.map(|ptr| ptr.to_node(&source_file))
|
||||
.map(|ptr| ptr.to_node(source_file.syntax()))
|
||||
.and_then(StructLit::cast)
|
||||
.and_then(|lit| lit.named_field_list())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue