Skip to content

Commit a9550d5

Browse files
committed
Added allow for interal file to pass `cargo test --features internal
1 parent b7a1fcb commit a9550d5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/ui-internal/check_clippy_version_attribute.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![feature(rustc_private)]
22
#![deny(clippy::invalid_clippy_version_attribute, clippy::missing_clippy_version_attribute)]
3+
#![allow(clippy::items_before_use)]
34

45
#[macro_use]
56
extern crate rustc_middle;

tests/ui-internal/check_clippy_version_attribute.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: this item has an invalid `clippy::version` attribute
2-
--> tests/ui-internal/check_clippy_version_attribute.rs:40:1
2+
--> tests/ui-internal/check_clippy_version_attribute.rs:41:1
33
|
44
LL | / declare_tool_lint! {
55
LL | |
@@ -19,7 +19,7 @@ LL | #![deny(clippy::invalid_clippy_version_attribute, clippy::missing_clippy_ve
1919
= 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)
2020

2121
error: this item has an invalid `clippy::version` attribute
22-
--> tests/ui-internal/check_clippy_version_attribute.rs:49:1
22+
--> tests/ui-internal/check_clippy_version_attribute.rs:50:1
2323
|
2424
LL | / declare_tool_lint! {
2525
LL | |
@@ -34,7 +34,7 @@ LL | | }
3434
= 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)
3535

3636
error: this lint is missing the `clippy::version` attribute or version value
37-
--> tests/ui-internal/check_clippy_version_attribute.rs:61:1
37+
--> tests/ui-internal/check_clippy_version_attribute.rs:62:1
3838
|
3939
LL | / declare_tool_lint! {
4040
LL | |
@@ -54,7 +54,7 @@ LL | #![deny(clippy::invalid_clippy_version_attribute, clippy::missing_clippy_ve
5454
= 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)
5555

5656
error: this lint is missing the `clippy::version` attribute or version value
57-
--> tests/ui-internal/check_clippy_version_attribute.rs:70:1
57+
--> tests/ui-internal/check_clippy_version_attribute.rs:71:1
5858
|
5959
LL | / declare_tool_lint! {
6060
LL | |

0 commit comments

Comments
 (0)