Skip to content

Commit c749b02

Browse files
committed
Bless and update internal ui tests
1 parent 3779d8a commit c749b02

33 files changed

+838
-17
lines changed

clippy_test_deps/Cargo.lock

Lines changed: 256 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clippy_test_deps/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ parking_lot = "0.12"
1919
tokio = { version = "1", features = ["io-util"] }
2020
rustc-semver = "1.1"
2121
regex = "1.5"
22+
clippy_lints = { path = "../clippy_lints" }
23+
24+
[features]
25+
internal = ["clippy_lints/internal"]

tests/compile-test.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ fn run_internal_tests() {
8989
if !RUN_INTERNAL_TESTS {
9090
return;
9191
}
92-
let config = base_config("ui-internal");
92+
let mut config = base_config("ui-internal");
93+
config.dependency_builder.args.push("--features".into());
94+
config.dependency_builder.args.push("internal".into());
9395
compiletest::run_tests(config).unwrap();
9496
}
9597

tests/ui-internal/check_clippy_version_attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(clippy::internal)]
1+
#![warn(clippy::internal)]
22
#![feature(rustc_private)]
33

44
#[macro_use]

0 commit comments

Comments
 (0)