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.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/hir-expand/src/declarative.rs b/crates/hir-expand/src/declarative.rs
index 0d100c1364..e4375e05d2 100644
--- a/crates/hir-expand/src/declarative.rs
+++ b/crates/hir-expand/src/declarative.rs
@@ -10,6 +10,7 @@ use triomphe::Arc;
use crate::{
AstId, ExpandError, ExpandErrorKind, ExpandResult, HirFileId, Lookup, MacroCallId,
+ MacroCallStyle,
attrs::RawAttrs,
db::ExpandDatabase,
hygiene::{Transparency, apply_mark},
@@ -46,6 +47,7 @@ impl DeclarativeMacroExpander {
s.ctx =
apply_mark(db, s.ctx, call_id.into(), self.transparency, self.edition)
},
+ loc.kind.call_style(),
span,
loc.def.edition,
)
@@ -56,6 +58,7 @@ impl DeclarativeMacroExpander {
pub fn expand_unhygienic(
&self,
tt: tt::TopSubtree,
+ call_style: MacroCallStyle,
call_site: Span,
def_site_edition: Edition,
) -> ExpandResult<tt::TopSubtree> {
@@ -66,7 +69,7 @@ impl DeclarativeMacroExpander {
),
None => self
.mac
- .expand(&tt, |_| (), call_site, def_site_edition)
+ .expand(&tt, |_| (), call_style, call_site, def_site_edition)
.map(TupleExt::head)
.map_err(Into::into),
}