about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-07-22 00:54:28 +0800
committerGitHub <noreply@github.com>2025-07-22 00:54:28 +0800
commita3ab8076941c3711edbdc54db13652850f3476ae (patch)
treea10297cec27a32ee690fa05beca1d2c397a0e48c /compiler/rustc_codegen_llvm/src/errors.rs
parent2e0748b1858079062284e116d0730a8156a1dab7 (diff)
parent192efbbd209eae7006b05205d507fb8c19802a60 (diff)
downloadrust-a3ab8076941c3711edbdc54db13652850f3476ae.tar.gz
rust-a3ab8076941c3711edbdc54db13652850f3476ae.zip
Rollup merge of #144027 - RalfJung:clippy, r=Mark-Simulacrum
clippy: make tests work in stage 1

This finally fixes https://github.com/rust-lang/rust/issues/78717 :)

Similar to what Miri already does, the clippy test step needs to carefully consider  which compiler is used to build clippy and which compiler is linked into clippy (and thus must be used to build the test dependencies). On top of that we have some extra complications that Miri avoided by using `cargo-miri` for building its test dependencies: we need cargo to use the right rustc and the right sysroot, but https://github.com/rust-lang/cargo/issues/4423 makes this quite hard to do. See the long comment in `src/tools/clippy/tests/compile-test.rs` for details.

Some clippy tests tried to import rustc crates; that fundamentally requires a full bootstrap loop so it cannot work in stage 1. I had to kind of guess what those tests were doing so I don't know if my changes there make any sense.

Cc ```@flip1995``` ```@Kobzol```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions