Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/fixup.rs')
-rw-r--r--crates/hir-expand/src/fixup.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/hir-expand/src/fixup.rs b/crates/hir-expand/src/fixup.rs
index 959595afb5..eed7d4a78e 100644
--- a/crates/hir-expand/src/fixup.rs
+++ b/crates/hir-expand/src/fixup.rs
@@ -417,7 +417,11 @@ mod tests {
expect.assert_eq(&actual);
// the fixed-up tree should be syntactically valid
- let (parse, _) = mbe::token_tree_to_syntax_node(&tt, ::mbe::TopEntryPoint::MacroItems);
+ let (parse, _) = mbe::token_tree_to_syntax_node(
+ &tt,
+ ::mbe::TopEntryPoint::MacroItems,
+ parser::Edition::Edition2021,
+ );
assert!(
parse.errors().is_empty(),
"parse has syntax errors. parse tree:\n{:#?}",