@@ -112,27 +112,7 @@ LL | if let Some(1) = { match Droppy.get() { Some(_value) => { Some(1) } _ =
112
112
| ~~~~~ +++++++++++++++++ ~~~~ +
113
113
114
114
error: `if let` assigns a shorter lifetime since Edition 2024
115
- --> $DIR/lint-if-let-rescope.rs:65:22
116
- |
117
- LL | if let () = { if let Some(_value) = Droppy.get() {} } {
118
- | ^^^^^^^^^^^^^^^^^^^------^^^^^^
119
- | |
120
- | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion
121
- |
122
- = warning: this changes meaning in Rust 2024
123
- = note: for more information, see issue #124085 <https://github.com/rust-lang/rust/issues/124085>
124
- help: the value is now dropped here in Edition 2024
125
- --> $DIR/lint-if-let-rescope.rs:65:55
126
- |
127
- LL | if let () = { if let Some(_value) = Droppy.get() {} } {
128
- | ^
129
- help: a `match` with a single arm can preserve the drop order up to Edition 2021
130
- |
131
- LL | if let () = { match Droppy.get() { Some(_value) => {} _ => {}} } {
132
- | ~~~~~ +++++++++++++++++ ++++++++
133
-
134
- error: `if let` assigns a shorter lifetime since Edition 2024
135
- --> $DIR/lint-if-let-rescope.rs:73:12
115
+ --> $DIR/lint-if-let-rescope.rs:72:12
136
116
|
137
117
LL | if (if let Some(_value) = droppy().get() { true } else { false }) {
138
118
| ^^^^^^^^^^^^^^^^^^^--------^^^^^^
@@ -142,7 +122,7 @@ LL | if (if let Some(_value) = droppy().get() { true } else { false }) {
142
122
= warning: this changes meaning in Rust 2024
143
123
= note: for more information, see issue #124085 <https://github.com/rust-lang/rust/issues/124085>
144
124
help: the value is now dropped here in Edition 2024
145
- --> $DIR/lint-if-let-rescope.rs:73 :53
125
+ --> $DIR/lint-if-let-rescope.rs:72 :53
146
126
|
147
127
LL | if (if let Some(_value) = droppy().get() { true } else { false }) {
148
128
| ^
@@ -152,7 +132,7 @@ LL | if (match droppy().get() { Some(_value) => { true } _ => { false }}) {
152
132
| ~~~~~ +++++++++++++++++ ~~~~ +
153
133
154
134
error: `if let` assigns a shorter lifetime since Edition 2024
155
- --> $DIR/lint-if-let-rescope.rs:79 :21
135
+ --> $DIR/lint-if-let-rescope.rs:78 :21
156
136
|
157
137
LL | } else if (((if let Some(_value) = droppy().get() { true } else { false }))) {
158
138
| ^^^^^^^^^^^^^^^^^^^--------^^^^^^
@@ -162,7 +142,7 @@ LL | } else if (((if let Some(_value) = droppy().get() { true } else { false
162
142
= warning: this changes meaning in Rust 2024
163
143
= note: for more information, see issue #124085 <https://github.com/rust-lang/rust/issues/124085>
164
144
help: the value is now dropped here in Edition 2024
165
- --> $DIR/lint-if-let-rescope.rs:79 :62
145
+ --> $DIR/lint-if-let-rescope.rs:78 :62
166
146
|
167
147
LL | } else if (((if let Some(_value) = droppy().get() { true } else { false }))) {
168
148
| ^
@@ -172,7 +152,7 @@ LL | } else if (((match droppy().get() { Some(_value) => { true } _ => { fal
172
152
| ~~~~~ +++++++++++++++++ ~~~~ +
173
153
174
154
error: `if let` assigns a shorter lifetime since Edition 2024
175
- --> $DIR/lint-if-let-rescope.rs:91 :15
155
+ --> $DIR/lint-if-let-rescope.rs:90 :15
176
156
|
177
157
LL | while (if let Some(_value) = droppy().get() { false } else { true }) {
178
158
| ^^^^^^^^^^^^^^^^^^^--------^^^^^^
@@ -182,7 +162,7 @@ LL | while (if let Some(_value) = droppy().get() { false } else { true }) {
182
162
= warning: this changes meaning in Rust 2024
183
163
= note: for more information, see issue #124085 <https://github.com/rust-lang/rust/issues/124085>
184
164
help: the value is now dropped here in Edition 2024
185
- --> $DIR/lint-if-let-rescope.rs:91 :57
165
+ --> $DIR/lint-if-let-rescope.rs:90 :57
186
166
|
187
167
LL | while (if let Some(_value) = droppy().get() { false } else { true }) {
188
168
| ^
@@ -191,5 +171,5 @@ help: a `match` with a single arm can preserve the drop order up to Edition 2021
191
171
LL | while (match droppy().get() { Some(_value) => { false } _ => { true }}) {
192
172
| ~~~~~ +++++++++++++++++ ~~~~ +
193
173
194
- error: aborting due to 8 previous errors
174
+ error: aborting due to 7 previous errors
195
175
0 commit comments