]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-or-patterns-back-compat.stderr
rename pat2015 to pat_param
[rust.git] / src / test / ui / macros / macro-or-patterns-back-compat.stderr
1 error: the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro
2   --> $DIR/macro-or-patterns-back-compat.rs:6:21
3    |
4 LL | macro_rules! foo { ($x:pat | $y:pat) => {} }
5    |                     ^^^^^^ help: use pat_param to preserve semantics: `$x:pat_param`
6    |
7 note: the lint level is defined here
8   --> $DIR/macro-or-patterns-back-compat.rs:4:9
9    |
10 LL | #![deny(or_patterns_back_compat)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro
14   --> $DIR/macro-or-patterns-back-compat.rs:7:23
15    |
16 LL | macro_rules! bar { ($($x:pat)+ | $($y:pat)+) => {} }
17    |                       ^^^^^^ help: use pat_param to preserve semantics: `$x:pat_param`
18
19 error: the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro
20   --> $DIR/macro-or-patterns-back-compat.rs:10:21
21    |
22 LL | macro_rules! ogg { ($x:pat | $y:pat_param) => {} }
23    |                     ^^^^^^ help: use pat_param to preserve semantics: `$x:pat_param`
24
25 error: the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro
26   --> $DIR/macro-or-patterns-back-compat.rs:12:26
27    |
28 LL |     ( $expr:expr , $( $( $pat:pat )|+ => $expr_arm:expr ),+ ) => {
29    |                          ^^^^^^^^ help: use pat_param to preserve semantics: `$pat:pat_param`
30
31 error: aborting due to 4 previous errors
32