about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/parser/test_data/generated
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2024-07-19 15:26:50 +0200
committerLukas Wirth <lukastw97@gmail.com>2024-07-19 15:43:20 +0200
commit2dc84abb552ece6bd9a5a93b11074597eaad089c (patch)
tree0cc42a6e12a62deabf3f9dc2d97bf29a95d9d7d2 /src/tools/rust-analyzer/crates/parser/test_data/generated
parentf4b2bf5c532e6012f0b00d5b62f99363833dd6a7 (diff)
Parse `try` as a keyword only in edition 2018 and up
Diffstat (limited to 'src/tools/rust-analyzer/crates/parser/test_data/generated')
-rw-r--r--src/tools/rust-analyzer/crates/parser/test_data/generated/runner.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/crates/parser/test_data/generated/runner.rs b/src/tools/rust-analyzer/crates/parser/test_data/generated/runner.rs
index aa8210541ab..d0e6b3f6c92 100644
--- a/src/tools/rust-analyzer/crates/parser/test_data/generated/runner.rs
+++ b/src/tools/rust-analyzer/crates/parser/test_data/generated/runner.rs
@@ -559,11 +559,17 @@ mod ok {
     fn try_expr() { run_and_expect_no_errors("test_data/parser/inline/ok/try_expr.rs"); }
     #[test]
     fn try_macro_fallback() {
-        run_and_expect_no_errors("test_data/parser/inline/ok/try_macro_fallback.rs");
+        run_and_expect_no_errors_with_edition(
+            "test_data/parser/inline/ok/try_macro_fallback.rs",
+            crate::Edition::Edition2015,
+        );
     }
     #[test]
     fn try_macro_rules() {
-        run_and_expect_no_errors("test_data/parser/inline/ok/try_macro_rules.rs");
+        run_and_expect_no_errors_with_edition(
+            "test_data/parser/inline/ok/try_macro_rules.rs",
+            crate::Edition::Edition2015,
+        );
     }
     #[test]
     fn tuple_attrs() { run_and_expect_no_errors("test_data/parser/inline/ok/tuple_attrs.rs"); }