Skip to content

Commit 78403e8

Browse files
authored
Rollup merge of #119451 - Kobzol:ci-pr-clippy, r=Mark-Simulacrum
Gate PR CI on clippy correctness lints Implements part of rust-lang/compiler-team#709. Note that `x.py clippy compiler` also checks the standard library, because it needs to be checked before the compiler. This happens even with `x.py clippy --stage 0`.
2 parents 74f5e1f + 4a2939b commit 78403e8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/ci/docker/host-x86_64/mingw-check/Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,9 @@ COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
4040

4141
ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
4242

43-
# Run clippy just to make sure it doesn't error out; we don't actually want to gate on the warnings
44-
# though.
45-
# Ideally we'd use stage 1, but that ICEs: https://github.com/rust-lang/rust-clippy/issues/11230
46-
4743
ENV SCRIPT python3 ../x.py --stage 2 test src/tools/expand-yaml-anchors && \
4844
python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu && \
49-
python3 ../x.py clippy --stage 0 -Awarnings && \
45+
python3 ../x.py clippy compiler -Aclippy::all -Dclippy::correctness && \
5046
python3 ../x.py build --stage 0 src/tools/build-manifest && \
5147
python3 ../x.py test --stage 0 src/tools/compiletest && \
5248
python3 ../x.py test --stage 0 core alloc std test proc_macro && \

0 commit comments

Comments
 (0)