@@ -112,27 +112,7 @@ LL | if let Some(1) = { match Droppy.get() { Some(_value) => { Some(1) } _ =
112112 | ~~~~~ +++++++++++++++++ ~~~~ +
113113
114114error: `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
136116 |
137117LL | if (if let Some(_value) = droppy().get() { true } else { false }) {
138118 | ^^^^^^^^^^^^^^^^^^^--------^^^^^^
@@ -142,7 +122,7 @@ LL | if (if let Some(_value) = droppy().get() { true } else { false }) {
142122 = warning: this changes meaning in Rust 2024
143123 = note: for more information, see issue #124085 <https://github.com/rust-lang/rust/issues/124085>
144124help: 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
146126 |
147127LL | if (if let Some(_value) = droppy().get() { true } else { false }) {
148128 | ^
@@ -152,7 +132,7 @@ LL | if (match droppy().get() { Some(_value) => { true } _ => { false }}) {
152132 | ~~~~~ +++++++++++++++++ ~~~~ +
153133
154134error: `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
156136 |
157137LL | } else if (((if let Some(_value) = droppy().get() { true } else { false }))) {
158138 | ^^^^^^^^^^^^^^^^^^^--------^^^^^^
@@ -162,7 +142,7 @@ LL | } else if (((if let Some(_value) = droppy().get() { true } else { false
162142 = warning: this changes meaning in Rust 2024
163143 = note: for more information, see issue #124085 <https://github.com/rust-lang/rust/issues/124085>
164144help: 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
166146 |
167147LL | } else if (((if let Some(_value) = droppy().get() { true } else { false }))) {
168148 | ^
@@ -172,7 +152,7 @@ LL | } else if (((match droppy().get() { Some(_value) => { true } _ => { fal
172152 | ~~~~~ +++++++++++++++++ ~~~~ +
173153
174154error: `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
176156 |
177157LL | while (if let Some(_value) = droppy().get() { false } else { true }) {
178158 | ^^^^^^^^^^^^^^^^^^^--------^^^^^^
@@ -182,7 +162,7 @@ LL | while (if let Some(_value) = droppy().get() { false } else { true }) {
182162 = warning: this changes meaning in Rust 2024
183163 = note: for more information, see issue #124085 <https://github.com/rust-lang/rust/issues/124085>
184164help: 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
186166 |
187167LL | while (if let Some(_value) = droppy().get() { false } else { true }) {
188168 | ^
@@ -191,5 +171,5 @@ help: a `match` with a single arm can preserve the drop order up to Edition 2021
191171LL | while (match droppy().get() { Some(_value) => { false } _ => { true }}) {
192172 | ~~~~~ +++++++++++++++++ ~~~~ +
193173
194- error: aborting due to 8 previous errors
174+ error: aborting due to 7 previous errors
195175
0 commit comments