You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/drop-bounds/drop-bounds.stderr
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
error: bounds on `T: Drop` are useless, consider instead using `std::mem::needs_drop` to detect if a type has a destructor
1
+
error: bounds on `T: Drop` are most likely incorrect, consider instead using `std::mem::needs_drop` to detect whether a type can be trivially dropped
2
2
--> $DIR/drop-bounds.rs:2:11
3
3
|
4
4
LL | fn foo<T: Drop>() {}
@@ -10,37 +10,37 @@ note: the lint level is defined here
10
10
LL | #![deny(drop_bounds)]
11
11
| ^^^^^^^^^^^
12
12
13
-
error: bounds on `U: Drop` are useless, consider instead using `std::mem::needs_drop` to detect if a type has a destructor
13
+
error: bounds on `U: Drop` are most likely incorrect, consider instead using `std::mem::needs_drop` to detect whether a type can be trivially dropped
14
14
--> $DIR/drop-bounds.rs:5:8
15
15
|
16
16
LL | U: Drop,
17
17
| ^^^^
18
18
19
-
error: bounds on `impl Drop: Drop` are useless, consider instead using `std::mem::needs_drop` to detect if a type has a destructor
19
+
error: bounds on `impl Drop: Drop` are most likely incorrect, consider instead using `std::mem::needs_drop` to detect whether a type can be trivially dropped
20
20
--> $DIR/drop-bounds.rs:8:17
21
21
|
22
22
LL | fn baz(_x: impl Drop) {}
23
23
| ^^^^
24
24
25
-
error: bounds on `T: Drop` are useless, consider instead using `std::mem::needs_drop` to detect if a type has a destructor
25
+
error: bounds on `T: Drop` are most likely incorrect, consider instead using `std::mem::needs_drop` to detect whether a type can be trivially dropped
26
26
--> $DIR/drop-bounds.rs:9:15
27
27
|
28
28
LL | struct Foo<T: Drop> {
29
29
| ^^^^
30
30
31
-
error: bounds on `U: Drop` are useless, consider instead using `std::mem::needs_drop` to detect if a type has a destructor
31
+
error: bounds on `U: Drop` are most likely incorrect, consider instead using `std::mem::needs_drop` to detect whether a type can be trivially dropped
32
32
--> $DIR/drop-bounds.rs:12:24
33
33
|
34
34
LL | struct Bar<U> where U: Drop {
35
35
| ^^^^
36
36
37
-
error: bounds on `Self: Drop` are useless, consider instead using `std::mem::needs_drop` to detect if a type has a destructor
37
+
error: bounds on `Self: Drop` are most likely incorrect, consider instead using `std::mem::needs_drop` to detect whether a type can be trivially dropped
38
38
--> $DIR/drop-bounds.rs:15:12
39
39
|
40
40
LL | trait Baz: Drop {
41
41
| ^^^^
42
42
43
-
error: bounds on `T: Drop` are useless, consider instead using `std::mem::needs_drop` to detect if a type has a destructor
43
+
error: bounds on `T: Drop` are most likely incorrect, consider instead using `std::mem::needs_drop` to detect whether a type can be trivially dropped
0 commit comments