Skip to content

Commit 644529b

Browse files
committed
Bless src/test/ui/drop-bounds/drop-bounds.rs
1 parent 1deef26 commit 644529b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/ui/drop-bounds/drop-bounds.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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
22
--> $DIR/drop-bounds.rs:2:11
33
|
44
LL | fn foo<T: Drop>() {}
@@ -10,37 +10,37 @@ note: the lint level is defined here
1010
LL | #![deny(drop_bounds)]
1111
| ^^^^^^^^^^^
1212

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
1414
--> $DIR/drop-bounds.rs:5:8
1515
|
1616
LL | U: Drop,
1717
| ^^^^
1818

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
2020
--> $DIR/drop-bounds.rs:8:17
2121
|
2222
LL | fn baz(_x: impl Drop) {}
2323
| ^^^^
2424

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
2626
--> $DIR/drop-bounds.rs:9:15
2727
|
2828
LL | struct Foo<T: Drop> {
2929
| ^^^^
3030

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
3232
--> $DIR/drop-bounds.rs:12:24
3333
|
3434
LL | struct Bar<U> where U: Drop {
3535
| ^^^^
3636

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
3838
--> $DIR/drop-bounds.rs:15:12
3939
|
4040
LL | trait Baz: Drop {
4141
| ^^^^
4242

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
4444
--> $DIR/drop-bounds.rs:17:9
4545
|
4646
LL | impl<T: Drop> Baz for T {

0 commit comments

Comments
 (0)