@@ -41,7 +41,7 @@ fn should_lint() -> i32 {
4141 // Should lint
4242 x. get ( ) + LoudDropper . get ( )
4343 //~^ ERROR: relative drop order changing in Rust 2024
44- //~| NOTE: this calls a custom destructor and let us call it `#1`
44+ //~| NOTE: this value will be stored in a temporary; let us call it `#1`
4545 //~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
4646 //~| WARN: this changes meaning in Rust 2024
4747 //~| NOTE: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects
@@ -66,7 +66,7 @@ fn should_lint_in_nested_items() {
6666 // Should lint
6767 x. get ( ) + LoudDropper . get ( )
6868 //~^ ERROR: relative drop order changing in Rust 2024
69- //~| NOTE: this calls a custom destructor and let us call it `#1`
69+ //~| NOTE: this value will be stored in a temporary; let us call it `#1`
7070 //~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
7171 //~| WARN: this changes meaning in Rust 2024
7272 //~| NOTE: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects
@@ -93,7 +93,7 @@ fn should_lint_in_nested_block() -> i32 {
9393 //~| NOTE: `x` will be dropped later since Edition 2024
9494 { LoudDropper . get ( ) }
9595 //~^ ERROR: relative drop order changing in Rust 2024
96- //~| NOTE: this calls a custom destructor and let us call it `#1`
96+ //~| NOTE: this value will be stored in a temporary; let us call it `#1`
9797 //~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
9898 //~| WARN: this changes meaning in Rust 2024
9999 //~| NOTE: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects
@@ -147,7 +147,7 @@ fn should_lint_into_async_body() -> i32 {
147147 LoudDropper . get ( )
148148 //~^ ERROR: relative drop order changing in Rust 2024
149149 //~| WARN: this changes meaning in Rust 2024
150- //~| NOTE: this calls a custom destructor and let us call it `#1`
150+ //~| NOTE: this value will be stored in a temporary; let us call it `#1`
151151 //~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
152152 //~| NOTE: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects
153153 //~| NOTE: for more information, see issue #123739
@@ -164,7 +164,7 @@ fn should_lint_generics<T: Default>() -> &'static str {
164164 extract ( & T :: default ( ) )
165165 //~^ ERROR: relative drop order changing in Rust 2024
166166 //~| WARN: this changes meaning in Rust 2024
167- //~| NOTE: this calls a custom destructor and let us call it `#1`
167+ //~| NOTE: this value will be stored in a temporary; let us call it `#1`
168168 //~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
169169 //~| NOTE: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects
170170 //~| NOTE: for more information, see issue #123739
@@ -178,7 +178,7 @@ fn should_lint_adt() -> i32 {
178178 LoudDropper . get ( )
179179 //~^ ERROR: relative drop order changing in Rust 2024
180180 //~| WARN: this changes meaning in Rust 2024
181- //~| NOTE: this calls a custom destructor and let us call it `#1`
181+ //~| NOTE: this value will be stored in a temporary; let us call it `#1`
182182 //~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
183183 //~| NOTE: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects
184184 //~| NOTE: for more information, see issue #123739
@@ -221,7 +221,7 @@ fn should_lint_with_dtor_span() -> i32 {
221221 //~| NOTE: `x` will be dropped later since Edition 2024
222222 LoudDropper3 . get ( )
223223 //~^ ERROR: relative drop order changing in Rust 2024
224- //~| NOTE: this calls a custom destructor and let us call it `#1`
224+ //~| NOTE: this value will be stored in a temporary; let us call it `#1`
225225 //~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
226226 //~| WARN: this changes meaning in Rust 2024
227227 //~| NOTE: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects
@@ -234,7 +234,7 @@ fn should_lint_with_transient_drops() {
234234 {
235235 LoudDropper . get ( )
236236 //~^ ERROR: relative drop order changing in Rust 2024
237- //~| NOTE: this calls a custom destructor and let us call it `#1`
237+ //~| NOTE: this value will be stored in a temporary; let us call it `#1`
238238 //~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
239239 //~| WARN: this changes meaning in Rust 2024
240240 //~| NOTE: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects
0 commit comments