Unnamed repository; edit this file 'description' to name the repository.
adjust existing uses of `*span_map` queries
| -rw-r--r-- | crates/hir-expand/src/builtin/fn_macro.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/hir-expand/src/builtin/fn_macro.rs b/crates/hir-expand/src/builtin/fn_macro.rs index e12cdef495..9bea6b9dac 100644 --- a/crates/hir-expand/src/builtin/fn_macro.rs +++ b/crates/hir-expand/src/builtin/fn_macro.rs @@ -22,7 +22,6 @@ use crate::{ db::ExpandDatabase, hygiene::{span_with_call_site_ctxt, span_with_def_site_ctxt}, name, - span_map::SpanMap, tt::{self, DelimSpan, TtElement, TtIter}, }; @@ -826,11 +825,10 @@ fn include_expand( ); } }; - let span_map = db.real_span_map(editioned_file_id); // FIXME: Parse errors ExpandResult::ok(syntax_node_to_token_tree( &editioned_file_id.parse(db).syntax_node(), - SpanMap::RealSpanMap(span_map), + db.span_map(editioned_file_id.into()), span, syntax_bridge::DocCommentDesugarMode::ProcMacro, )) |