mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
5747c15961
That is, this changes `#[forbid(foo)] #[allow(foo)]` from allowing foo to forbidding foo.
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
error: you have declared `#[inline(always)]` on `test_attr_lint`. This is usually a bad idea
|
|
--> $DIR/attrs.rs:8: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:28: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:31:14
|
|
|
|
|
LL | #[deprecated(since = "1")]
|
|
| ^^^^^^^^^^^
|
|
|
|
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: aborting due to 5 previous errors
|
|
|