diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2024-07-18 10:26:58 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2024-07-19 15:19:43 +0200 |
| commit | f4b2bf5c532e6012f0b00d5b62f99363833dd6a7 (patch) | |
| tree | c2d54fd6bd6fad54fa1efb00f1b38d14b6a6cf96 /src/tools/rust-analyzer/crates/parser/test_data/generated | |
| parent | eae705e5ed89332ed1a7caabeff19944963a1713 (diff) | |
| download | rust-f4b2bf5c532e6012f0b00d5b62f99363833dd6a7.tar.gz rust-f4b2bf5c532e6012f0b00d5b62f99363833dd6a7.zip | |
Add basic edition inline parser test support
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.rs | 13 |
1 files changed, 9 insertions, 4 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 f82d1ed320c..aa8210541ab 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 @@ -1,5 +1,5 @@ mod ok { - use crate::tests::run_and_expect_no_errors; + use crate::tests::*; #[test] fn anonymous_const() { run_and_expect_no_errors("test_data/parser/inline/ok/anonymous_const.rs"); @@ -267,6 +267,13 @@ mod ok { run_and_expect_no_errors("test_data/parser/inline/ok/function_where_clause.rs"); } #[test] + fn gen_blocks() { + run_and_expect_no_errors_with_edition( + "test_data/parser/inline/ok/gen_blocks.rs", + crate::Edition::Edition2024, + ); + } + #[test] fn generic_arg() { run_and_expect_no_errors("test_data/parser/inline/ok/generic_arg.rs"); } #[test] fn generic_param_attribute() { @@ -666,7 +673,7 @@ mod ok { fn yield_expr() { run_and_expect_no_errors("test_data/parser/inline/ok/yield_expr.rs"); } } mod err { - use crate::tests::run_and_expect_errors; + use crate::tests::*; #[test] fn angled_path_without_qual() { run_and_expect_errors("test_data/parser/inline/err/angled_path_without_qual.rs"); @@ -708,8 +715,6 @@ mod err { run_and_expect_errors("test_data/parser/inline/err/fn_pointer_type_missing_fn.rs"); } #[test] - fn gen_blocks() { run_and_expect_errors("test_data/parser/inline/err/gen_blocks.rs"); } - #[test] fn gen_fn() { run_and_expect_errors("test_data/parser/inline/err/gen_fn.rs"); } #[test] fn generic_arg_list_recover() { |
