mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Auto merge of #16776 - Veykril:parse-macro-parse, r=Veykril
fix: Don't force draw a dependency edge to the real_span_map query This can cause extra invalidations as like direct `AstIdMap` dependencies
This commit is contained in:
commit
e101f24798
16 changed files with 125 additions and 114 deletions
|
@ -1781,10 +1781,7 @@ impl HirDisplay for TypeRef {
|
|||
f.write_joined(bounds, " + ")?;
|
||||
}
|
||||
TypeRef::Macro(macro_call) => {
|
||||
let ctx = hir_def::lower::LowerCtx::with_span_map(
|
||||
f.db.upcast(),
|
||||
f.db.span_map(macro_call.file_id),
|
||||
);
|
||||
let ctx = hir_def::lower::LowerCtx::new(f.db.upcast(), macro_call.file_id);
|
||||
let macro_call = macro_call.to_node(f.db.upcast());
|
||||
match macro_call.path() {
|
||||
Some(path) => match Path::from_src(&ctx, path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue