11error: relative drop order changing in Rust 2024
2- --> $DIR/lint-tail-expr-drop-order.rs:41 :15
2+ --> $DIR/lint-tail-expr-drop-order.rs:40 :15
33 |
44LL | let x = LoudDropper;
55 | -
@@ -40,7 +40,7 @@ LL | #![deny(tail_expr_drop_order)]
4040 | ^^^^^^^^^^^^^^^^^^^^
4141
4242error: relative drop order changing in Rust 2024
43- --> $DIR/lint-tail-expr-drop-order.rs:66 :19
43+ --> $DIR/lint-tail-expr-drop-order.rs:65 :19
4444 |
4545LL | let x = LoudDropper;
4646 | -
@@ -76,7 +76,7 @@ LL | | }
7676 = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
7777
7878error: relative drop order changing in Rust 2024
79- --> $DIR/lint-tail-expr-drop-order.rs:93 :7
79+ --> $DIR/lint-tail-expr-drop-order.rs:92 :7
8080 |
8181LL | let x = LoudDropper;
8282 | -
@@ -112,7 +112,7 @@ LL | | }
112112 = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
113113
114114error: relative drop order changing in Rust 2024
115- --> $DIR/lint-tail-expr-drop-order.rs:146 :5
115+ --> $DIR/lint-tail-expr-drop-order.rs:145 :5
116116 |
117117LL | let future = f();
118118 | ------
@@ -136,19 +136,12 @@ note: `#1` invokes this custom destructor
136136 |
137137LL | / impl Drop for LoudDropper {
138138... |
139- LL | | }
140- | |_^
141- note: `future` invokes this custom destructor
142- --> $DIR/lint-tail-expr-drop-order.rs:10:1
143- |
144- LL | / impl Drop for LoudDropper {
145- ... |
146139LL | | }
147140 | |_^
148141 = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
149142
150143error: relative drop order changing in Rust 2024
151- --> $DIR/lint-tail-expr-drop-order.rs:163 :14
144+ --> $DIR/lint-tail-expr-drop-order.rs:162 :14
152145 |
153146LL | let x = T::default();
154147 | -
@@ -170,7 +163,7 @@ LL | }
170163 = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
171164
172165error: relative drop order changing in Rust 2024
173- --> $DIR/lint-tail-expr-drop-order.rs:177 :5
166+ --> $DIR/lint-tail-expr-drop-order.rs:176 :5
174167 |
175168LL | let x: Result<LoudDropper, ()> = Ok(LoudDropper);
176169 | -
@@ -206,7 +199,7 @@ LL | | }
206199 = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
207200
208201error: relative drop order changing in Rust 2024
209- --> $DIR/lint-tail-expr-drop-order.rs:221 :5
202+ --> $DIR/lint-tail-expr-drop-order.rs:220 :5
210203 |
211204LL | let x = LoudDropper2;
212205 | -
@@ -226,7 +219,7 @@ LL | }
226219 = warning: this changes meaning in Rust 2024
227220 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/temporary-tail-expr-scope.html>
228221note: `#1` invokes this custom destructor
229- --> $DIR/lint-tail-expr-drop-order.rs:194 :5
222+ --> $DIR/lint-tail-expr-drop-order.rs:193 :5
230223 |
231224LL | / impl Drop for LoudDropper3 {
232225LL | |
@@ -236,7 +229,7 @@ LL | | }
236229LL | | }
237230 | |_____^
238231note: `x` invokes this custom destructor
239- --> $DIR/lint-tail-expr-drop-order.rs:206 :5
232+ --> $DIR/lint-tail-expr-drop-order.rs:205 :5
240233 |
241234LL | / impl Drop for LoudDropper2 {
242235LL | |
@@ -248,7 +241,7 @@ LL | | }
248241 = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages
249242
250243error: relative drop order changing in Rust 2024
251- --> $DIR/lint-tail-expr-drop-order.rs:234 :13
244+ --> $DIR/lint-tail-expr-drop-order.rs:233 :13
252245 |
253246LL | LoudDropper.get()
254247 | ^^^^^^^^^^^
0 commit comments