about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/parser/test_data/generated
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2024-10-30 19:28:33 +0200
committerChayim Refael Friedman <chayimfr@gmail.com>2024-10-30 19:28:33 +0200
commit6a6b61a918afdecd50a53cda07182a11ad9deb0b (patch)
tree7b898e627698e31f4bc104a74af1add4e125d233 /src/tools/rust-analyzer/crates/parser/test_data/generated
parentcee32578cb4e5926b6245f18f0b949eeebe5a97a (diff)
Only parse `safe` as contextual kw in extern blocks
I don't like the party of `bool`s that is becoming, but two isn't worth a refactoring yet IMO.
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.rs4
1 files changed, 4 insertions, 0 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 164d0f36f1b..5b41dd07adc 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
@@ -527,6 +527,10 @@ mod ok {
         run_and_expect_no_errors("test_data/parser/inline/ok/return_type_syntax_in_path.rs");
     }
     #[test]
+    fn safe_outside_of_extern() {
+        run_and_expect_no_errors("test_data/parser/inline/ok/safe_outside_of_extern.rs");
+    }
+    #[test]
     fn self_param() { run_and_expect_no_errors("test_data/parser/inline/ok/self_param.rs"); }
     #[test]
     fn self_param_outer_attr() {