Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/builtin/fn_macro.rs')
-rw-r--r--crates/hir-expand/src/builtin/fn_macro.rs4
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..68c9fc4a37 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),
+ crate::HirFileId::from(editioned_file_id).span_map(db),
span,
syntax_bridge::DocCommentDesugarMode::ProcMacro,
))