]> git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/macro-or-patterns-back-compat.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.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:10: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(rust_2021_incompatible_or_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
13 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/or-patterns-macro-rules.html>
14
15 error: the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro
16 --> $DIR/macro-or-patterns-back-compat.rs:13:23
17 |
18 LL | macro_rules! bar { ($($x:pat)+ | $($y:pat)+) => {} }
19 | ^^^^^^ help: use pat_param to preserve semantics: `$x:pat_param`
20 |
21 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
22 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/or-patterns-macro-rules.html>
23
24 error: the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro
25 --> $DIR/macro-or-patterns-back-compat.rs:19:21
26 |
27 LL | macro_rules! ogg { ($x:pat | $y:pat_param) => {} }
28 | ^^^^^^ help: use pat_param to preserve semantics: `$x:pat_param`
29 |
30 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
31 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/or-patterns-macro-rules.html>
32
33 error: the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro
34 --> $DIR/macro-or-patterns-back-compat.rs:23:26
35 |
36 LL | ( $expr:expr , $( $( $pat:pat )|+ => $expr_arm:expr ),+ ) => {
37 | ^^^^^^^^ help: use pat_param to preserve semantics: `$pat:pat_param`
38 |
39 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
40 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/or-patterns-macro-rules.html>
41
42 error: aborting due to 4 previous errors
43