Skip to content

Commit ce2b8a4

Browse files
committed
Auto merge of #45715 - oli-obk:clippy, r=kennytm
Reenable clippy testing fixes #45680
2 parents 3707db9 + 5319203 commit ce2b8a4

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

src/Cargo.lock

+10-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bootstrap/check.rs

+4
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,10 @@ impl Step for Clippy {
402402
cargo.env("RUSTC_NO_PREFER_DYNAMIC", "1");
403403
// clippy tests need to know about the stage sysroot
404404
cargo.env("SYSROOT", builder.sysroot(compiler));
405+
cargo.env("RUSTC_TEST_SUITE", builder.rustc(compiler));
406+
cargo.env("RUSTC_LIB_PATH", builder.rustc_libdir(compiler));
407+
let host_libs = builder.stage_out(compiler, Mode::Tool).join(builder.cargo_dir());
408+
cargo.env("HOST_LIBS", host_libs);
405409
// clippy tests need to find the driver
406410
cargo.env("CLIPPY_DRIVER_PATH", clippy);
407411

src/tools/clippy

src/tools/toolstate.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
miri = "Broken"
2727

2828
# ping @Manishearth @llogiq @mcarton @oli-obk
29-
clippy = "Broken"
29+
clippy = "Testing"
3030

3131
# ping @nrc
3232
rls = "Testing"

0 commit comments

Comments
 (0)