Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/builtin/quote.rs')
-rw-r--r--crates/hir-expand/src/builtin/quote.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/hir-expand/src/builtin/quote.rs b/crates/hir-expand/src/builtin/quote.rs
index 6c1abc2620..fcd242bb49 100644
--- a/crates/hir-expand/src/builtin/quote.rs
+++ b/crates/hir-expand/src/builtin/quote.rs
@@ -225,7 +225,7 @@ mod tests {
use ::tt::IdentIsRaw;
use expect_test::expect;
use intern::Symbol;
- use span::{SpanAnchor, SyntaxContextId, ROOT_ERASED_FILE_AST_ID};
+ use span::{Edition, SpanAnchor, SyntaxContextId, ROOT_ERASED_FILE_AST_ID};
use syntax::{TextRange, TextSize};
use super::quote;
@@ -239,7 +239,7 @@ mod tests {
),
ast_id: ROOT_ERASED_FILE_AST_ID,
},
- ctx: SyntaxContextId::ROOT,
+ ctx: SyntaxContextId::root(Edition::CURRENT),
};
#[test]
@@ -276,8 +276,8 @@ mod tests {
assert_eq!(quoted.to_string(), "hello");
let t = format!("{quoted:#?}");
expect![[r#"
- SUBTREE $$ 937550:[email protected]#0 937550:[email protected]#0
- IDENT hello 937550:[email protected]#0"#]]
+ SUBTREE $$ 937550:[email protected]#2 937550:[email protected]#2
+ IDENT hello 937550:[email protected]#2"#]]
.assert_eq(&t);
}