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
Auto merge of rust-lang#88240 - GuillaumeGomez:rollup-wdom91m, r=GuillaumeGomez
Rollup of 7 pull requests
Successful merges:
- rust-lang#86747 (Improve wording of the `drop_bounds` lint)
- rust-lang#87166 (Show discriminant before overflow in diagnostic for duplicate values.)
- rust-lang#88077 (Generate an iOS LLVM target with a specific version)
- rust-lang#88164 (PassWrapper: adapt for LLVM 14 changes)
- rust-lang#88211 (cleanup: `Span::new` -> `Span::with_lo`)
- rust-lang#88229 (Suggest importing the right kind of macro.)
- rust-lang#88238 (Stop tracking namespace in used_imports.)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
Copy file name to clipboardexpand all lines: src/test/ui/drop-bounds/drop-bounds.stderr
+7-7
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