File tree 2 files changed +4
-6
lines changed
compiler/rustc_parse/src/parser
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,6 @@ impl<'a> Parser<'a> {
44
44
&& !token. is_keyword ( kw:: Let )
45
45
// This exception is here for backwards compatibility.
46
46
&& !token. is_keyword ( kw:: Const )
47
- // FIXME(vincenzopalazzo): query less time the edition
48
- && ( token. span . edition ( ) . at_least_rust_2024 ( ) && !token. is_keyword ( kw:: Underscore ) )
49
47
}
50
48
NonterminalKind :: Expr ( Expr ) => {
51
49
token. can_begin_expr ( )
Original file line number Diff line number Diff line change 1
1
error: no rules expected the token `_`
2
- --> $DIR/expr_2024_underscore_expr.rs:23 :12
2
+ --> $DIR/expr_2024_underscore_expr.rs:22 :12
3
3
|
4
4
LL | macro_rules! m2021 {
5
5
| ------------------ when calling this macro
@@ -8,13 +8,13 @@ LL | m2021!(_);
8
8
| ^ no rules expected this token in macro call
9
9
|
10
10
note: while trying to match meta-variable `$e:expr_2021`
11
- --> $DIR/expr_2024_underscore_expr.rs:11 :6
11
+ --> $DIR/expr_2024_underscore_expr.rs:10 :6
12
12
|
13
13
LL | ($e:expr_2021) => {
14
14
| ^^^^^^^^^^^^
15
15
16
16
error: no rules expected the token `_`
17
- --> $DIR/expr_2024_underscore_expr.rs:24 :12
17
+ --> $DIR/expr_2024_underscore_expr.rs:23 :12
18
18
|
19
19
LL | macro_rules! m2024 {
20
20
| ------------------ when calling this macro
@@ -23,7 +23,7 @@ LL | m2024!(_);
23
23
| ^ no rules expected this token in macro call
24
24
|
25
25
note: while trying to match meta-variable `$e:expr`
26
- --> $DIR/expr_2024_underscore_expr.rs:17 :6
26
+ --> $DIR/expr_2024_underscore_expr.rs:16 :6
27
27
|
28
28
LL | ($e:expr) => {
29
29
| ^^^^^^^
You can’t perform that action at this time.
0 commit comments