]> git.lizzy.rs Git - rust.git/blob - tests/ui-internal/check_clippy_version_attribute.stderr
removing unsafe from test fn's && renaming shrink to sugg_span
[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 note: the lint level is defined here
14   --> $DIR/check_clippy_version_attribute.rs:1:9
15    |
16 LL | #![deny(clippy::internal)]
17    |         ^^^^^^^^^^^^^^^^
18    = note: `#[deny(clippy::invalid_clippy_version_attribute)]` implied by `#[deny(clippy::internal)]`
19    = help: please use a valid sematic version, see `doc/adding_lints.md`
20    = note: this error originates in the macro `$crate::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 sematic version, see `doc/adding_lints.md`
35    = note: this error originates in the macro `$crate::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 note: the lint level is defined here
50   --> $DIR/check_clippy_version_attribute.rs:1:9
51    |
52 LL | #![deny(clippy::internal)]
53    |         ^^^^^^^^^^^^^^^^
54    = note: `#[deny(clippy::missing_clippy_version_attribute)]` implied by `#[deny(clippy::internal)]`
55    = help: please use a `clippy::version` attribute, see `doc/adding_lints.md`
56    = note: this error originates in the macro `$crate::declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
57
58 error: this lint is missing the `clippy::version` attribute or version value
59   --> $DIR/check_clippy_version_attribute.rs:67:1
60    |
61 LL | / declare_tool_lint! {
62 LL | |     pub clippy::MISSING_ATTRIBUTE_TWO,
63 LL | |     Warn,
64 LL | |     "Two",
65 LL | |     report_in_external_macro: true
66 LL | | }
67    | |_^
68    |
69    = help: please use a `clippy::version` attribute, see `doc/adding_lints.md`
70    = note: this error originates in the macro `$crate::declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
71
72 error: aborting due to 4 previous errors
73