about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-02 15:14:59 +0000
committerbors <bors@rust-lang.org>2023-07-02 15:14:59 +0000
commit32d81eccd64513bacef9dfa1574543ada6b45d85 (patch)
tree376b91e09ae117074c2ce5dbc52446daa157d9cd /src/bootstrap
parent131a03664ef90d6443dfb567ac19e5466baa937f (diff)
parenta6d3c82360b8debd134ffe6144ecce056cf8c041 (diff)
Auto merge of #113260 - flip1995:clippyup, r=Manishearth
Update Clippy

r? `@Manishearth`

cc `@oli-obk` (for the ui-test changes in de69d556eb5006a21f868b8c12d48f0ef1308a5a and the valtree fix in 0cbe963e51faa7e3e771c1f9cea9aa443a648455)

Fixes https://github.com/rust-lang/rust/issues/102093

This must've been the most involved Clippy sync ever.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/test.rs22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 757926e7345..75e7bd6aa24 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -790,27 +790,15 @@ impl Step for Clippy {
         cargo.add_rustc_lib_path(builder, compiler);
         let mut cargo = prepare_cargo_test(cargo, &[], &[], "clippy", compiler, host, builder);
 
+        // propagate --bless
+        if builder.config.cmd.bless() {
+            cargo.env("BLESS", "Gesundheit");
+        }
+
         if builder.try_run(&mut cargo).is_ok() {
             // The tests succeeded; nothing to do.
             return;
         }
-
-        if !builder.config.cmd.bless() {
-            crate::detail_exit_macro!(1);
-        }
-
-        let mut cargo = builder.cargo(compiler, Mode::ToolRustc, SourceType::InTree, host, "run");
-        cargo.arg("-p").arg("clippy_dev");
-        // clippy_dev gets confused if it can't find `clippy/Cargo.toml`
-        cargo.current_dir(&builder.src.join("src").join("tools").join("clippy"));
-        if builder.config.rust_optimize.is_release() {
-            cargo.env("PROFILE", "release");
-        } else {
-            cargo.env("PROFILE", "debug");
-        }
-        cargo.arg("--");
-        cargo.arg("bless");
-        builder.run(&mut cargo.into());
     }
 }