mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Add LazyMacroId
This commit is contained in:
parent
cebb995d21
commit
0d55454073
5 changed files with 56 additions and 16 deletions
|
@ -248,7 +248,7 @@ mod tests {
|
|||
kind: MacroCallKind::Attr(AstId::new(file_id.into(), ast_id_map.ast_id(&items[0]))),
|
||||
};
|
||||
|
||||
let id = db.intern_macro(loc);
|
||||
let id: MacroCallId = db.intern_macro(loc).into();
|
||||
let parsed = db.parse_or_expand(id.as_file()).unwrap();
|
||||
|
||||
// FIXME text() for syntax nodes parsed from token tree looks weird
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue