Drop eager macro parse errors, they can't crop up

This commit is contained in:
Lukas Wirth 2024-03-15 11:45:51 +01:00
parent 3b1ad2379d
commit 08327e0e5d
2 changed files with 13 additions and 61 deletions

View file

@ -805,7 +805,7 @@ impl ExpansionInfo {
let (parse, exp_map) = db.parse_macro_expansion(macro_file).value;
let expanded = InMacroFile { file_id: macro_file, value: parse.syntax_node() };
let (macro_arg, _) = db.macro_arg(macro_file.macro_call_id).value;
let (macro_arg, _) = db.macro_arg(macro_file.macro_call_id);
let def = loc.def.ast_id().left().and_then(|id| {
let def_tt = match id.to_node(db) {