]> git.lizzy.rs Git - rust.git/blob - tests/ui-internal/check_clippy_version_attribute.stderr
Auto merge of #10146 - Nilstrieb:💀, r=llogiq
[rust.git] / tests / ui-internal / check_clippy_version_attribute.stderr
1 error: this item has an invalid `clippy::version` attribute
2   --> $DIR/check_clippy_version_attribute.rs:40:1
3    |
4 LL | / declare_tool_lint! {
5 LL | |     #[clippy::version = "1.2.3.4.5.6"]
6 LL | |     pub clippy::INVALID_ONE,
7 LL | |     Warn,
8 LL | |     "One",
9 LL | |     report_in_external_macro: true
10 LL | | }
11    | |_^
12    |
13    = help: please use a valid semantic version, see `doc/adding_lints.md`
14 note: the lint level is defined here
15   --> $DIR/check_clippy_version_attribute.rs:1:9
16    |
17 LL | #![deny(clippy::internal)]
18    |         ^^^^^^^^^^^^^^^^
19    = note: `#[deny(clippy::invalid_clippy_version_attribute)]` implied by `#[deny(clippy::internal)]`
20    = note: this error originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
21
22 error: this item has an invalid `clippy::version` attribute
23   --> $DIR/check_clippy_version_attribute.rs:48:1
24    |
25 LL | / declare_tool_lint! {
26 LL | |     #[clippy::version = "I'm a string"]
27 LL | |     pub clippy::INVALID_TWO,
28 LL | |     Warn,
29 LL | |     "Two",
30 LL | |     report_in_external_macro: true
31 LL | | }
32    | |_^
33    |
34    = help: please use a valid semantic version, see `doc/adding_lints.md`
35    = note: this error originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
36
37 error: this lint is missing the `clippy::version` attribute or version value
38   --> $DIR/check_clippy_version_attribute.rs:59:1
39    |
40 LL | / declare_tool_lint! {
41 LL | |     #[clippy::version]
42 LL | |     pub clippy::MISSING_ATTRIBUTE_ONE,
43 LL | |     Warn,
44 LL | |     "Two",
45 LL | |     report_in_external_macro: true
46 LL | | }
47    | |_^
48    |
49    = help: please use a `clippy::version` attribute, see `doc/adding_lints.md`
50    = note: `#[deny(clippy::missing_clippy_version_attribute)]` implied by `#[deny(clippy::internal)]`
51    = note: this error originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
52
53 error: this lint is missing the `clippy::version` attribute or version value
54   --> $DIR/check_clippy_version_attribute.rs:67:1
55    |
56 LL | / declare_tool_lint! {
57 LL | |     pub clippy::MISSING_ATTRIBUTE_TWO,
58 LL | |     Warn,
59 LL | |     "Two",
60 LL | |     report_in_external_macro: true
61 LL | | }
62    | |_^
63    |
64    = help: please use a `clippy::version` attribute, see `doc/adding_lints.md`
65    = note: this error originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
66
67 error: aborting due to 4 previous errors
68