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
4 LL | macro_rules! foo { ($x:pat | $y:pat) => {} }
5 | ^^^^^^ help: use pat_param to preserve semantics: `$x:pat_param`
7 note: the lint level is defined here
8 --> $DIR/macro-or-patterns-back-compat.rs:4: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>
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
18 LL | macro_rules! bar { ($($x:pat)+ | $($y:pat)+) => {} }
19 | ^^^^^^ help: use pat_param to preserve semantics: `$x:pat_param`
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>
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
27 LL | macro_rules! ogg { ($x:pat | $y:pat_param) => {} }
28 | ^^^^^^ help: use pat_param to preserve semantics: `$x:pat_param`
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>
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
36 LL | ( $expr:expr , $( $( $pat:pat )|+ => $expr_arm:expr ),+ ) => {
37 | ^^^^^^^^ help: use pat_param to preserve semantics: `$pat:pat_param`
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>
42 error: aborting due to 4 previous errors