drop_bounds: make lint adhere to lint message convention
This commit is contained in:
parent
590b91d8d4
commit
0db5cb1393
@ -33,11 +33,11 @@ declare_clippy_lint! {
|
||||
/// ```
|
||||
pub DROP_BOUNDS,
|
||||
correctness,
|
||||
"Bounds of the form `T: Drop` are useless"
|
||||
"bounds of the form `T: Drop` are useless"
|
||||
}
|
||||
|
||||
const DROP_BOUNDS_SUMMARY: &str = "Bounds of the form `T: Drop` are useless. \
|
||||
Use `std::mem::needs_drop` to detect if a type has drop glue.";
|
||||
const DROP_BOUNDS_SUMMARY: &str = "bounds of the form `T: Drop` are useless, \
|
||||
use `std::mem::needs_drop` to detect if a type has drop glue";
|
||||
|
||||
declare_lint_pass!(DropBounds => [DROP_BOUNDS]);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to detect if a type has drop glue.
|
||||
error: bounds of the form `T: Drop` are useless, use `std::mem::needs_drop` to detect if a type has drop glue
|
||||
--> $DIR/drop_bounds.rs:2:11
|
||||
|
|
||||
LL | fn foo<T: Drop>() {}
|
||||
@ -6,7 +6,7 @@ LL | fn foo<T: Drop>() {}
|
||||
|
|
||||
= note: `#[deny(clippy::drop_bounds)]` on by default
|
||||
|
||||
error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to detect if a type has drop glue.
|
||||
error: bounds of the form `T: Drop` are useless, use `std::mem::needs_drop` to detect if a type has drop glue
|
||||
--> $DIR/drop_bounds.rs:5:8
|
||||
|
|
||||
LL | T: Drop,
|
||||
|
Loading…
Reference in New Issue
Block a user