1
- error: pattern uses features incompatible with edition 2024
1
+ error: this pattern relies on behavior which may change in edition 2024
2
2
--> $DIR/migration_lint.rs:25:13
3
3
|
4
4
LL | let Foo(mut x) = &Foo(0);
@@ -16,7 +16,7 @@ help: make the implied reference pattern explicit
16
16
LL | let &Foo(mut x) = &Foo(0);
17
17
| +
18
18
19
- error: pattern uses features incompatible with edition 2024
19
+ error: this pattern relies on behavior which may change in edition 2024
20
20
--> $DIR/migration_lint.rs:30:13
21
21
|
22
22
LL | let Foo(mut x) = &mut Foo(0);
@@ -29,7 +29,7 @@ help: make the implied reference pattern explicit
29
29
LL | let &mut Foo(mut x) = &mut Foo(0);
30
30
| ++++
31
31
32
- error: pattern uses features incompatible with edition 2024
32
+ error: this pattern relies on behavior which may change in edition 2024
33
33
--> $DIR/migration_lint.rs:35:13
34
34
|
35
35
LL | let Foo(ref x) = &Foo(0);
@@ -42,7 +42,7 @@ help: make the implied reference pattern explicit
42
42
LL | let &Foo(ref x) = &Foo(0);
43
43
| +
44
44
45
- error: pattern uses features incompatible with edition 2024
45
+ error: this pattern relies on behavior which may change in edition 2024
46
46
--> $DIR/migration_lint.rs:40:13
47
47
|
48
48
LL | let Foo(ref x) = &mut Foo(0);
@@ -55,7 +55,7 @@ help: make the implied reference pattern explicit
55
55
LL | let &mut Foo(ref x) = &mut Foo(0);
56
56
| ++++
57
57
58
- error: pattern uses features incompatible with edition 2024
58
+ error: this pattern relies on behavior which may change in edition 2024
59
59
--> $DIR/migration_lint.rs:57:13
60
60
|
61
61
LL | let Foo(&x) = &Foo(&0);
@@ -68,7 +68,7 @@ help: make the implied reference pattern explicit
68
68
LL | let &Foo(&x) = &Foo(&0);
69
69
| +
70
70
71
- error: pattern uses features incompatible with edition 2024
71
+ error: this pattern relies on behavior which may change in edition 2024
72
72
--> $DIR/migration_lint.rs:62:13
73
73
|
74
74
LL | let Foo(&mut x) = &Foo(&mut 0);
@@ -81,7 +81,7 @@ help: make the implied reference pattern explicit
81
81
LL | let &Foo(&mut x) = &Foo(&mut 0);
82
82
| +
83
83
84
- error: pattern uses features incompatible with edition 2024
84
+ error: this pattern relies on behavior which may change in edition 2024
85
85
--> $DIR/migration_lint.rs:67:13
86
86
|
87
87
LL | let Foo(&x) = &mut Foo(&0);
@@ -94,7 +94,7 @@ help: make the implied reference pattern explicit
94
94
LL | let &mut Foo(&x) = &mut Foo(&0);
95
95
| ++++
96
96
97
- error: pattern uses features incompatible with edition 2024
97
+ error: this pattern relies on behavior which may change in edition 2024
98
98
--> $DIR/migration_lint.rs:72:13
99
99
|
100
100
LL | let Foo(&mut x) = &mut Foo(&mut 0);
@@ -107,7 +107,7 @@ help: make the implied reference pattern explicit
107
107
LL | let &mut Foo(&mut x) = &mut Foo(&mut 0);
108
108
| ++++
109
109
110
- error: pattern uses features incompatible with edition 2024
110
+ error: this pattern relies on behavior which may change in edition 2024
111
111
--> $DIR/migration_lint.rs:81:17
112
112
|
113
113
LL | if let Some(&x) = &&&&&Some(&0u8) {
@@ -120,7 +120,7 @@ help: make the implied reference patterns explicit
120
120
LL | if let &&&&&Some(&x) = &&&&&Some(&0u8) {
121
121
| +++++
122
122
123
- error: pattern uses features incompatible with edition 2024
123
+ error: this pattern relies on behavior which may change in edition 2024
124
124
--> $DIR/migration_lint.rs:87:17
125
125
|
126
126
LL | if let Some(&mut x) = &&&&&Some(&mut 0u8) {
@@ -133,7 +133,7 @@ help: make the implied reference patterns explicit
133
133
LL | if let &&&&&Some(&mut x) = &&&&&Some(&mut 0u8) {
134
134
| +++++
135
135
136
- error: pattern uses features incompatible with edition 2024
136
+ error: this pattern relies on behavior which may change in edition 2024
137
137
--> $DIR/migration_lint.rs:93:17
138
138
|
139
139
LL | if let Some(&x) = &&&&&mut Some(&0u8) {
@@ -146,7 +146,7 @@ help: make the implied reference patterns explicit
146
146
LL | if let &&&&&mut Some(&x) = &&&&&mut Some(&0u8) {
147
147
| ++++++++
148
148
149
- error: pattern uses features incompatible with edition 2024
149
+ error: this pattern relies on behavior which may change in edition 2024
150
150
--> $DIR/migration_lint.rs:99:17
151
151
|
152
152
LL | 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
159
159
LL | if let &mut Some(&mut Some(&mut Some(ref mut x))) = &mut Some(&mut Some(&mut Some(0u8))) {
160
160
| ++++ ++++ +++++++
161
161
162
- error: pattern uses features incompatible with edition 2024
162
+ error: this pattern relies on behavior which may change in edition 2024
163
163
--> $DIR/migration_lint.rs:111:21
164
164
|
165
165
LL | 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
172
172
LL | let &Struct { ref a, mut b, ref c } = &Struct { a: 0, b: 0, c: 0 };
173
173
| + +++ +++
174
174
175
- error: pattern uses features incompatible with edition 2024
175
+ error: this pattern relies on behavior which may change in edition 2024
176
176
--> $DIR/migration_lint.rs:117:21
177
177
|
178
178
LL | 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
187
187
LL | let &Struct { a: &a, ref b, ref c } = &Struct { a: &0, b: &0, c: &0 };
188
188
| + +++
189
189
190
- error: pattern uses features incompatible with edition 2024
190
+ error: this pattern relies on behavior which may change in edition 2024
191
191
--> $DIR/migration_lint.rs:124:24
192
192
|
193
193
LL | 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
202
202
LL | if let &Struct { a: &Some(a), b: &Some(&b), c: &Some(ref c) } =
203
203
| + + + +++
204
204
205
- error: pattern uses features incompatible with edition 2024
205
+ error: this pattern relies on behavior which may change in edition 2024
206
206
--> $DIR/migration_lint.rs:137:15
207
207
|
208
208
LL | (Some(mut x), migration_lint_macros::mixed_edition_pat!(y)) => {
0 commit comments