File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 98
98
./rustup-toolchain "" -c clippy
99
99
- name : rustfmt
100
100
run : ./miri fmt --check
101
- - name : clippy (miri)
102
- run : cargo clippy --all-targets -- -D warnings
103
- # - name: Clippy (ui_test)
104
- # run: cargo clippy --manifest-path ui_test/Cargo.toml --all-targets -- -D warnings
105
- - name : clippy (cargo-miri)
106
- run : cargo clippy --manifest-path cargo-miri/Cargo.toml --all-targets -- -D warnings
101
+ - name : clippy
102
+ run : ./miri clippy -- -D warnings
107
103
- name : rustdoc
108
104
run : RUSTDOCFLAGS="-Dwarnings" cargo doc --document-private-items
109
105
Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ times and slower execution times.
28
28
./miri fmt <flags>:
29
29
Format all sources and tests. <flags> are passed to `rustfmt`.
30
30
31
+ ./miri clippy <flags>:
32
+ Format all sources and tests. <flags> are passed to `cargo clippy`.
33
+
31
34
ENVIRONMENT VARIABLES
32
35
33
36
MIRI_SYSROOT:
@@ -163,6 +166,11 @@ fmt)
163
166
find " $MIRIDIR " -not \( -name target -prune \) -name ' *.rs' \
164
167
| xargs rustfmt --edition=2021 --config-path " $MIRIDIR /rustfmt.toml" " $@ "
165
168
;;
169
+ clippy)
170
+ cargo clippy $CARGO_BUILD_FLAGS --manifest-path " $MIRIDIR " /Cargo.toml --all-targets " $@ "
171
+ # cargo clippy $CARGO_BUILD_FLAGS --manifest-path "$MIRIDIR"/ui_test/Cargo.toml --all-targets "$@"
172
+ cargo clippy $CARGO_BUILD_FLAGS --manifest-path " $MIRIDIR " /cargo-miri/Cargo.toml " $@ "
173
+ ;;
166
174
* )
167
175
if [ -n " $COMMAND " ]; then
168
176
echo " Unknown command: $COMMAND "
Original file line number Diff line number Diff line change 42
42
43
43
# Install and setup new toolchain.
44
44
rustup toolchain uninstall miri
45
- rustup-toolchain-install-master -n miri -c cargo -c rust-src -c rustc-dev -c llvm-tools -c rustfmt " $@ " -- " $NEW_COMMIT "
45
+ rustup-toolchain-install-master -n miri -c cargo -c rust-src -c rustc-dev -c llvm-tools -c rustfmt -c clippy " $@ " -- " $NEW_COMMIT "
46
46
rustup override set miri
47
47
48
48
# Cleanup.
You can’t perform that action at this time.
0 commit comments