File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ declare_clippy_lint! {
33
33
/// ```
34
34
pub DROP_BOUNDS ,
35
35
correctness,
36
- "Bounds of the form `T: Drop` are useless"
36
+ "bounds of the form `T: Drop` are useless"
37
37
}
38
38
39
- const DROP_BOUNDS_SUMMARY : & str = "Bounds of the form `T: Drop` are useless. \
40
- Use `std::mem::needs_drop` to detect if a type has drop glue. ";
39
+ const DROP_BOUNDS_SUMMARY : & str = "bounds of the form `T: Drop` are useless, \
40
+ use `std::mem::needs_drop` to detect if a type has drop glue";
41
41
42
42
declare_lint_pass ! ( DropBounds => [ DROP_BOUNDS ] ) ;
43
43
Original file line number Diff line number Diff line change 1
- error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to detect if a type has drop glue.
1
+ error: bounds of the form `T: Drop` are useless, use `std::mem::needs_drop` to detect if a type has drop glue
2
2
--> $DIR/drop_bounds.rs:2:11
3
3
|
4
4
LL | fn foo<T: Drop>() {}
5
5
| ^^^^
6
6
|
7
7
= note: `#[deny(clippy::drop_bounds)]` on by default
8
8
9
- error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to detect if a type has drop glue.
9
+ error: bounds of the form `T: Drop` are useless, use `std::mem::needs_drop` to detect if a type has drop glue
10
10
--> $DIR/drop_bounds.rs:5:8
11
11
|
12
12
LL | T: Drop,
You can’t perform that action at this time.
0 commit comments