1- error: the semantics of this pattern will change in edition 2024
1+ error: patterns are not allowed to reset the default binding mode in edition 2024
22 --> $DIR/migration_lint.rs:25:9
33 |
44LL | let Foo(mut x) = &Foo(0);
@@ -14,7 +14,7 @@ note: the lint level is defined here
1414LL | #![deny(rust_2024_incompatible_pat)]
1515 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
1616
17- error: the semantics of this pattern will change in edition 2024
17+ error: patterns are not allowed to reset the default binding mode in edition 2024
1818 --> $DIR/migration_lint.rs:30:9
1919 |
2020LL | let Foo(mut x) = &mut Foo(0);
@@ -25,7 +25,7 @@ LL | let Foo(mut x) = &mut Foo(0);
2525 = warning: this changes meaning in Rust 2024
2626 = note: for more information, see 123076
2727
28- error: the semantics of this pattern will change in edition 2024
28+ error: patterns are not allowed to reset the default binding mode in edition 2024
2929 --> $DIR/migration_lint.rs:35:9
3030 |
3131LL | let Foo(ref x) = &Foo(0);
@@ -36,7 +36,7 @@ LL | let Foo(ref x) = &Foo(0);
3636 = warning: this changes meaning in Rust 2024
3737 = note: for more information, see 123076
3838
39- error: the semantics of this pattern will change in edition 2024
39+ error: patterns are not allowed to reset the default binding mode in edition 2024
4040 --> $DIR/migration_lint.rs:40:9
4141 |
4242LL | let Foo(ref x) = &mut Foo(0);
@@ -47,7 +47,7 @@ LL | let Foo(ref x) = &mut Foo(0);
4747 = warning: this changes meaning in Rust 2024
4848 = note: for more information, see 123076
4949
50- error: the semantics of this pattern will change in edition 2024
50+ error: patterns are not allowed to reset the default binding mode in edition 2024
5151 --> $DIR/migration_lint.rs:57:9
5252 |
5353LL | let Foo(&x) = &Foo(&0);
@@ -58,7 +58,7 @@ LL | let Foo(&x) = &Foo(&0);
5858 = warning: this changes meaning in Rust 2024
5959 = note: for more information, see 123076
6060
61- error: the semantics of this pattern will change in edition 2024
61+ error: patterns are not allowed to reset the default binding mode in edition 2024
6262 --> $DIR/migration_lint.rs:62:9
6363 |
6464LL | let Foo(&mut x) = &Foo(&mut 0);
@@ -69,7 +69,7 @@ LL | let Foo(&mut x) = &Foo(&mut 0);
6969 = warning: this changes meaning in Rust 2024
7070 = note: for more information, see 123076
7171
72- error: the semantics of this pattern will change in edition 2024
72+ error: patterns are not allowed to reset the default binding mode in edition 2024
7373 --> $DIR/migration_lint.rs:67:9
7474 |
7575LL | let Foo(&x) = &mut Foo(&0);
@@ -80,7 +80,7 @@ LL | let Foo(&x) = &mut Foo(&0);
8080 = warning: this changes meaning in Rust 2024
8181 = note: for more information, see 123076
8282
83- error: the semantics of this pattern will change in edition 2024
83+ error: patterns are not allowed to reset the default binding mode in edition 2024
8484 --> $DIR/migration_lint.rs:72:9
8585 |
8686LL | let Foo(&mut x) = &mut Foo(&mut 0);
@@ -91,7 +91,7 @@ LL | let Foo(&mut x) = &mut Foo(&mut 0);
9191 = warning: this changes meaning in Rust 2024
9292 = note: for more information, see 123076
9393
94- error: the semantics of this pattern will change in edition 2024
94+ error: patterns are not allowed to reset the default binding mode in edition 2024
9595 --> $DIR/migration_lint.rs:81:12
9696 |
9797LL | if let Some(&x) = &&&&&Some(&0u8) {
@@ -102,7 +102,7 @@ LL | if let Some(&x) = &&&&&Some(&0u8) {
102102 = warning: this changes meaning in Rust 2024
103103 = note: for more information, see 123076
104104
105- error: the semantics of this pattern will change in edition 2024
105+ error: patterns are not allowed to reset the default binding mode in edition 2024
106106 --> $DIR/migration_lint.rs:87:12
107107 |
108108LL | if let Some(&mut x) = &&&&&Some(&mut 0u8) {
@@ -113,7 +113,7 @@ LL | if let Some(&mut x) = &&&&&Some(&mut 0u8) {
113113 = warning: this changes meaning in Rust 2024
114114 = note: for more information, see 123076
115115
116- error: the semantics of this pattern will change in edition 2024
116+ error: patterns are not allowed to reset the default binding mode in edition 2024
117117 --> $DIR/migration_lint.rs:93:12
118118 |
119119LL | if let Some(&x) = &&&&&mut Some(&0u8) {
@@ -124,7 +124,7 @@ LL | if let Some(&x) = &&&&&mut Some(&0u8) {
124124 = warning: this changes meaning in Rust 2024
125125 = note: for more information, see 123076
126126
127- error: the semantics of this pattern will change in edition 2024
127+ error: patterns are not allowed to reset the default binding mode in edition 2024
128128 --> $DIR/migration_lint.rs:99:12
129129 |
130130LL | if let Some(&mut Some(Some(x))) = &mut Some(&mut Some(&mut Some(0u8))) {
@@ -137,7 +137,7 @@ help: desugar the match ergonomics
137137LL | if let &mut Some(&mut Some(&mut Some(ref mut x))) = &mut Some(&mut Some(&mut Some(0u8))) {
138138 | ++++ ++++ +++++++
139139
140- error: the semantics of this pattern will change in edition 2024
140+ error: patterns are not allowed to reset the default binding mode in edition 2024
141141 --> $DIR/migration_lint.rs:111:9
142142 |
143143LL | let Struct { a, mut b, c } = &Struct { a: 0, b: 0, c: 0 };
@@ -150,7 +150,7 @@ help: desugar the match ergonomics
150150LL | let &Struct { ref a, mut b, ref c } = &Struct { a: 0, b: 0, c: 0 };
151151 | + +++ +++
152152
153- error: the semantics of this pattern will change in edition 2024
153+ error: patterns are not allowed to reset the default binding mode in edition 2024
154154 --> $DIR/migration_lint.rs:117:9
155155 |
156156LL | let Struct { a: &a, b, ref c } = &Struct { a: &0, b: &0, c: &0 };
@@ -163,7 +163,7 @@ help: desugar the match ergonomics
163163LL | let &Struct { a: &a, ref b, ref c } = &Struct { a: &0, b: &0, c: &0 };
164164 | + +++
165165
166- error: the semantics of this pattern will change in edition 2024
166+ error: patterns are not allowed to reset the default binding mode in edition 2024
167167 --> $DIR/migration_lint.rs:124:12
168168 |
169169LL | if let Struct { a: &Some(a), b: Some(&b), c: Some(c) } =
@@ -176,7 +176,7 @@ help: desugar the match ergonomics
176176LL | if let &Struct { a: &Some(a), b: &Some(&b), c: &Some(ref c) } =
177177 | + + + +++
178178
179- error: patterns are not allowed to reset the default binding mode in rust 2024
179+ error: patterns are not allowed to reset the default binding mode in edition 2024
180180 --> $DIR/migration_lint.rs:137:9
181181 |
182182LL | (Some(mut x), migration_lint_macros::mixed_edition_pat!(y)) => {
0 commit comments