Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/declarative.rs')
-rw-r--r--crates/hir-expand/src/declarative.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir-expand/src/declarative.rs b/crates/hir-expand/src/declarative.rs
index 4b2c6e7351..aa745a2ccd 100644
--- a/crates/hir-expand/src/declarative.rs
+++ b/crates/hir-expand/src/declarative.rs
@@ -128,7 +128,7 @@ impl DeclarativeMacroExpander {
Some(arg) => {
let tt = syntax_bridge::syntax_node_to_token_tree(
arg.syntax(),
- map.as_ref(),
+ map,
map.span_for_range(
macro_rules.macro_rules_token().unwrap().text_range(),
),
@@ -152,14 +152,14 @@ impl DeclarativeMacroExpander {
let args = macro_def.args().map(|args| {
syntax_bridge::syntax_node_to_token_tree(
args.syntax(),
- map.as_ref(),
+ map,
span,
DocCommentDesugarMode::Mbe,
)
});
let body = syntax_bridge::syntax_node_to_token_tree(
body.syntax(),
- map.as_ref(),
+ map,
span,
DocCommentDesugarMode::Mbe,
);