mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 02:29:44 +00:00
chore: Bump Edition::CURRENT to 2024
This commit is contained in:
parent
23e8d13531
commit
a505420751
24 changed files with 277 additions and 244 deletions
|
|
@ -132,7 +132,7 @@ pub(super) fn opt_item(p: &mut Parser<'_>, m: Marker, is_in_extern: bool) -> Res
|
|||
has_mods = true;
|
||||
}
|
||||
|
||||
// test_err gen_fn
|
||||
// test_err gen_fn 2021
|
||||
// gen fn gen_fn() {}
|
||||
// async gen fn async_gen_fn() {}
|
||||
if p.at(T![gen]) && p.nth(1) == T![fn] {
|
||||
|
|
|
|||
|
|
@ -745,7 +745,12 @@ mod err {
|
|||
run_and_expect_errors("test_data/parser/inline/err/fn_pointer_type_missing_fn.rs");
|
||||
}
|
||||
#[test]
|
||||
fn gen_fn() { run_and_expect_errors("test_data/parser/inline/err/gen_fn.rs"); }
|
||||
fn gen_fn() {
|
||||
run_and_expect_errors_with_edition(
|
||||
"test_data/parser/inline/err/gen_fn.rs",
|
||||
crate::Edition::Edition2021,
|
||||
);
|
||||
}
|
||||
#[test]
|
||||
fn generic_arg_list_recover() {
|
||||
run_and_expect_errors("test_data/parser/inline/err/generic_arg_list_recover.rs");
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
SOURCE_FILE
|
||||
COMMENT "// 2021"
|
||||
WHITESPACE "\n"
|
||||
ERROR
|
||||
PATH
|
||||
PATH_SEGMENT
|
||||
|
|
@ -42,6 +44,6 @@ SOURCE_FILE
|
|||
L_CURLY "{"
|
||||
R_CURLY "}"
|
||||
WHITESPACE "\n"
|
||||
error 3: expected an item
|
||||
error 24: expected fn, trait or impl
|
||||
error 28: expected an item
|
||||
error 11: expected an item
|
||||
error 32: expected fn, trait or impl
|
||||
error 36: expected an item
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
// 2021
|
||||
gen fn gen_fn() {}
|
||||
async gen fn async_gen_fn() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue