@@ -41,7 +41,7 @@ fn should_lint() -> i32 {
41
41
// Should lint
42
42
x. get ( ) + LoudDropper . get ( )
43
43
//~^ 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`
45
45
//~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
46
46
//~| WARN: this changes meaning in Rust 2024
47
47
//~| 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() {
66
66
// Should lint
67
67
x. get ( ) + LoudDropper . get ( )
68
68
//~^ 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`
70
70
//~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
71
71
//~| WARN: this changes meaning in Rust 2024
72
72
//~| 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 {
93
93
//~| NOTE: `x` will be dropped later since Edition 2024
94
94
{ LoudDropper . get ( ) }
95
95
//~^ 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`
97
97
//~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
98
98
//~| WARN: this changes meaning in Rust 2024
99
99
//~| 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 {
147
147
LoudDropper . get ( )
148
148
//~^ ERROR: relative drop order changing in Rust 2024
149
149
//~| 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`
151
151
//~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
152
152
//~| NOTE: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects
153
153
//~| NOTE: for more information, see issue #123739
@@ -164,7 +164,7 @@ fn should_lint_generics<T: Default>() -> &'static str {
164
164
extract ( & T :: default ( ) )
165
165
//~^ ERROR: relative drop order changing in Rust 2024
166
166
//~| 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`
168
168
//~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
169
169
//~| NOTE: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects
170
170
//~| NOTE: for more information, see issue #123739
@@ -178,7 +178,7 @@ fn should_lint_adt() -> i32 {
178
178
LoudDropper . get ( )
179
179
//~^ ERROR: relative drop order changing in Rust 2024
180
180
//~| 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`
182
182
//~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
183
183
//~| NOTE: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects
184
184
//~| NOTE: for more information, see issue #123739
@@ -221,7 +221,7 @@ fn should_lint_with_dtor_span() -> i32 {
221
221
//~| NOTE: `x` will be dropped later since Edition 2024
222
222
LoudDropper3 . get ( )
223
223
//~^ 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`
225
225
//~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
226
226
//~| WARN: this changes meaning in Rust 2024
227
227
//~| 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() {
234
234
{
235
235
LoudDropper . get ( )
236
236
//~^ 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`
238
238
//~| NOTE: up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024
239
239
//~| WARN: this changes meaning in Rust 2024
240
240
//~| NOTE: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects
0 commit comments