mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-23 11:33:19 +00:00
39 lines
1.3 KiB
Text
39 lines
1.3 KiB
Text
|
error: this item has an invalid `clippy::version` attribute
|
||
|
--> $DIR/check_clippy_version_attribute.rs:40:1
|
||
|
|
|
||
|
LL | / declare_tool_lint! {
|
||
|
LL | | #[clippy::version = "1.2.3.4.5.6"]
|
||
|
LL | | pub clippy::INVALID_ONE,
|
||
|
LL | | Warn,
|
||
|
LL | | "One",
|
||
|
LL | | report_in_external_macro: true
|
||
|
LL | | }
|
||
|
| |_^
|
||
|
|
|
||
|
note: the lint level is defined here
|
||
|
--> $DIR/check_clippy_version_attribute.rs:1:9
|
||
|
|
|
||
|
LL | #![deny(clippy::internal)]
|
||
|
| ^^^^^^^^^^^^^^^^
|
||
|
= note: `#[deny(clippy::invalid_clippy_version_attribute)]` implied by `#[deny(clippy::internal)]`
|
||
|
= help: please use a valid sematic version, see `doc/adding_lints.md`
|
||
|
= note: this error originates in the macro `$crate::declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||
|
|
||
|
error: this item has an invalid `clippy::version` attribute
|
||
|
--> $DIR/check_clippy_version_attribute.rs:48:1
|
||
|
|
|
||
|
LL | / declare_tool_lint! {
|
||
|
LL | | #[clippy::version = "I'm a string"]
|
||
|
LL | | pub clippy::INVALID_TWO,
|
||
|
LL | | Warn,
|
||
|
LL | | "Two",
|
||
|
LL | | report_in_external_macro: true
|
||
|
LL | | }
|
||
|
| |_^
|
||
|
|
|
||
|
= help: please use a valid sematic version, see `doc/adding_lints.md`
|
||
|
= note: this error originates in the macro `$crate::declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|