fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: 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 | 4LL | macro_rules! foo { ($x:pat | $y:pat) => {} } 5 | ^^^^^^ help: use pat_param to preserve semantics: `$x:pat_param` 6 | 7 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! 8 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/or-patterns-macro-rules.html> 9note: the lint level is defined here 10 --> $DIR/macro-or-patterns-back-compat.rs:4:9 11 | 12LL | #![deny(rust_2021_incompatible_or_patterns)] 13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14 15error: 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 | 18LL | 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 24error: 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 | 27LL | 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 33error: 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 | 36LL | ( $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 42error: aborting due to 4 previous errors 43