1- error: pattern uses features incompatible with edition 2024
1+ error: this pattern relies on behavior which may change in edition 2024
22 --> $DIR/migration_lint.rs:25:13
33 |
44LL | let Foo(mut x) = &Foo(0);
@@ -16,7 +16,7 @@ help: make the implied reference pattern explicit
1616LL | let &Foo(mut x) = &Foo(0);
1717 | +
1818
19- error: pattern uses features incompatible with edition 2024
19+ error: this pattern relies on behavior which may change in edition 2024
2020 --> $DIR/migration_lint.rs:30:13
2121 |
2222LL | let Foo(mut x) = &mut Foo(0);
@@ -29,7 +29,7 @@ help: make the implied reference pattern explicit
2929LL | let &mut Foo(mut x) = &mut Foo(0);
3030 | ++++
3131
32- error: pattern uses features incompatible with edition 2024
32+ error: this pattern relies on behavior which may change in edition 2024
3333 --> $DIR/migration_lint.rs:35:13
3434 |
3535LL | let Foo(ref x) = &Foo(0);
@@ -42,7 +42,7 @@ help: make the implied reference pattern explicit
4242LL | let &Foo(ref x) = &Foo(0);
4343 | +
4444
45- error: pattern uses features incompatible with edition 2024
45+ error: this pattern relies on behavior which may change in edition 2024
4646 --> $DIR/migration_lint.rs:40:13
4747 |
4848LL | let Foo(ref x) = &mut Foo(0);
@@ -55,7 +55,7 @@ help: make the implied reference pattern explicit
5555LL | let &mut Foo(ref x) = &mut Foo(0);
5656 | ++++
5757
58- error: pattern uses features incompatible with edition 2024
58+ error: this pattern relies on behavior which may change in edition 2024
5959 --> $DIR/migration_lint.rs:57:13
6060 |
6161LL | let Foo(&x) = &Foo(&0);
@@ -68,7 +68,7 @@ help: make the implied reference pattern explicit
6868LL | let &Foo(&x) = &Foo(&0);
6969 | +
7070
71- error: pattern uses features incompatible with edition 2024
71+ error: this pattern relies on behavior which may change in edition 2024
7272 --> $DIR/migration_lint.rs:62:13
7373 |
7474LL | let Foo(&mut x) = &Foo(&mut 0);
@@ -81,7 +81,7 @@ help: make the implied reference pattern explicit
8181LL | let &Foo(&mut x) = &Foo(&mut 0);
8282 | +
8383
84- error: pattern uses features incompatible with edition 2024
84+ error: this pattern relies on behavior which may change in edition 2024
8585 --> $DIR/migration_lint.rs:67:13
8686 |
8787LL | let Foo(&x) = &mut Foo(&0);
@@ -94,7 +94,7 @@ help: make the implied reference pattern explicit
9494LL | let &mut Foo(&x) = &mut Foo(&0);
9595 | ++++
9696
97- error: pattern uses features incompatible with edition 2024
97+ error: this pattern relies on behavior which may change in edition 2024
9898 --> $DIR/migration_lint.rs:72:13
9999 |
100100LL | let Foo(&mut x) = &mut Foo(&mut 0);
@@ -107,7 +107,7 @@ help: make the implied reference pattern explicit
107107LL | let &mut Foo(&mut x) = &mut Foo(&mut 0);
108108 | ++++
109109
110- error: pattern uses features incompatible with edition 2024
110+ error: this pattern relies on behavior which may change in edition 2024
111111 --> $DIR/migration_lint.rs:81:17
112112 |
113113LL | if let Some(&x) = &&&&&Some(&0u8) {
@@ -120,7 +120,7 @@ help: make the implied reference patterns explicit
120120LL | if let &&&&&Some(&x) = &&&&&Some(&0u8) {
121121 | +++++
122122
123- error: pattern uses features incompatible with edition 2024
123+ error: this pattern relies on behavior which may change in edition 2024
124124 --> $DIR/migration_lint.rs:87:17
125125 |
126126LL | if let Some(&mut x) = &&&&&Some(&mut 0u8) {
@@ -133,7 +133,7 @@ help: make the implied reference patterns explicit
133133LL | if let &&&&&Some(&mut x) = &&&&&Some(&mut 0u8) {
134134 | +++++
135135
136- error: pattern uses features incompatible with edition 2024
136+ error: this pattern relies on behavior which may change in edition 2024
137137 --> $DIR/migration_lint.rs:93:17
138138 |
139139LL | if let Some(&x) = &&&&&mut Some(&0u8) {
@@ -146,7 +146,7 @@ help: make the implied reference patterns explicit
146146LL | if let &&&&&mut Some(&x) = &&&&&mut Some(&0u8) {
147147 | ++++++++
148148
149- error: pattern uses features incompatible with edition 2024
149+ error: this pattern relies on behavior which may change in edition 2024
150150 --> $DIR/migration_lint.rs:99:17
151151 |
152152LL | if let Some(&mut Some(Some(x))) = &mut Some(&mut Some(&mut Some(0u8))) {
@@ -159,7 +159,7 @@ help: make the implied reference patterns and variable binding mode explicit
159159LL | if let &mut Some(&mut Some(&mut Some(ref mut x))) = &mut Some(&mut Some(&mut Some(0u8))) {
160160 | ++++ ++++ +++++++
161161
162- error: pattern uses features incompatible with edition 2024
162+ error: this pattern relies on behavior which may change in edition 2024
163163 --> $DIR/migration_lint.rs:111:21
164164 |
165165LL | let Struct { a, mut b, c } = &Struct { a: 0, b: 0, c: 0 };
@@ -172,7 +172,7 @@ help: make the implied reference pattern and variable binding modes explicit
172172LL | let &Struct { ref a, mut b, ref c } = &Struct { a: 0, b: 0, c: 0 };
173173 | + +++ +++
174174
175- error: pattern uses features incompatible with edition 2024
175+ error: this pattern relies on behavior which may change in edition 2024
176176 --> $DIR/migration_lint.rs:117:21
177177 |
178178LL | let Struct { a: &a, b, ref c } = &Struct { a: &0, b: &0, c: &0 };
@@ -187,7 +187,7 @@ help: make the implied reference pattern and variable binding mode explicit
187187LL | let &Struct { a: &a, ref b, ref c } = &Struct { a: &0, b: &0, c: &0 };
188188 | + +++
189189
190- error: pattern uses features incompatible with edition 2024
190+ error: this pattern relies on behavior which may change in edition 2024
191191 --> $DIR/migration_lint.rs:124:24
192192 |
193193LL | if let Struct { a: &Some(a), b: Some(&b), c: Some(c) } =
@@ -202,7 +202,7 @@ help: make the implied reference patterns and variable binding mode explicit
202202LL | if let &Struct { a: &Some(a), b: &Some(&b), c: &Some(ref c) } =
203203 | + + + +++
204204
205- error: pattern uses features incompatible with edition 2024
205+ error: this pattern relies on behavior which may change in edition 2024
206206 --> $DIR/migration_lint.rs:137:15
207207 |
208208LL | (Some(mut x), migration_lint_macros::mixed_edition_pat!(y)) => {
0 commit comments