-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #5750 - ebroto:blanket_clippy_restriction_lints, r=Mani…
…shearth,flip1995,phansch,oli-obk Lint enabling the whole restriction group I've added it to the `correctness` category, but I may be missing some valid use cases. In that case it could be changed to `pedantic`. changelog: Add [`blanket_clippy_restriction_lints`] to check against enabling the whole restriction group.
- Loading branch information
Showing
6 changed files
with
113 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,49 @@ | ||
error: you have declared `#[inline(always)]` on `test_attr_lint`. This is usually a bad idea | ||
--> $DIR/attrs.rs:3:1 | ||
--> $DIR/attrs.rs:9:1 | ||
| | ||
LL | #[inline(always)] | ||
| ^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `-D clippy::inline-always` implied by `-D warnings` | ||
|
||
error: the since field must contain a semver-compliant version | ||
--> $DIR/attrs.rs:23:14 | ||
--> $DIR/attrs.rs:29:14 | ||
| | ||
LL | #[deprecated(since = "forever")] | ||
| ^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `-D clippy::deprecated-semver` implied by `-D warnings` | ||
|
||
error: the since field must contain a semver-compliant version | ||
--> $DIR/attrs.rs:26:14 | ||
--> $DIR/attrs.rs:32:14 | ||
| | ||
LL | #[deprecated(since = "1")] | ||
| ^^^^^^^^^^^ | ||
|
||
error: aborting due to 3 previous errors | ||
error: restriction lints are not meant to be all enabled | ||
--> $DIR/attrs.rs:4:9 | ||
| | ||
LL | #![warn(clippy::restriction)] | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `-D clippy::blanket-clippy-restriction-lints` implied by `-D warnings` | ||
= help: try enabling only the lints you really need | ||
|
||
error: restriction lints are not meant to be all enabled | ||
--> $DIR/attrs.rs:5:9 | ||
| | ||
LL | #![deny(clippy::restriction)] | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: try enabling only the lints you really need | ||
|
||
error: restriction lints are not meant to be all enabled | ||
--> $DIR/attrs.rs:6:11 | ||
| | ||
LL | #![forbid(clippy::restriction)] | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: try enabling only the lints you really need | ||
|
||
error: aborting due to 6 previous errors | ||
|