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
4 LL | macro_rules! foo { ($x:pat | $y:pat) => {} }
5 | ^^^^^^ help: use pat2015 to preserve semantics: `$x:pat2015`
7 note: the lint level is defined here
8 --> $DIR/macro-or-patterns-back-compat.rs:4:9
10 LL | #![deny(or_patterns_back_compat)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^
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
16 LL | macro_rules! bar { ($($x:pat)+ | $($y:pat)+) => {} }
17 | ^^^^^^ help: use pat2015 to preserve semantics: `$x:pat2015`
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
22 LL | macro_rules! ogg { ($x:pat | $y:pat2015) => {} }
23 | ^^^^^^ help: use pat2015 to preserve semantics: `$x:pat2015`
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
28 LL | ( $expr:expr , $( $( $pat:pat )|+ => $expr_arm:expr ),+ ) => {
29 | ^^^^^^^^ help: use pat2015 to preserve semantics: `$pat:pat2015`
31 error: aborting due to 4 previous errors