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 e4375e05d2..d36d85a141 100644
--- a/crates/hir-expand/src/declarative.rs
+++ b/crates/hir-expand/src/declarative.rs
@@ -42,6 +42,7 @@ impl DeclarativeMacroExpander {
None => self
.mac
.expand(
+ db,
&tt,
|s| {
s.ctx =
@@ -49,7 +50,6 @@ impl DeclarativeMacroExpander {
},
loc.kind.call_style(),
span,
- loc.def.edition,
)
.map_err(Into::into),
}
@@ -57,10 +57,10 @@ impl DeclarativeMacroExpander {
pub fn expand_unhygienic(
&self,
+ db: &dyn ExpandDatabase,
tt: tt::TopSubtree,
call_style: MacroCallStyle,
call_site: Span,
- def_site_edition: Edition,
) -> ExpandResult<tt::TopSubtree> {
match self.mac.err() {
Some(_) => ExpandResult::new(
@@ -69,7 +69,7 @@ impl DeclarativeMacroExpander {
),
None => self
.mac
- .expand(&tt, |_| (), call_style, call_site, def_site_edition)
+ .expand(db, &tt, |_| (), call_style, call_site)
.map(TupleExt::head)
.map_err(Into::into),
}