File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ set -euo pipefail
44
55LINUX_VERSION=v6.11-rc1
66
7- # Build rustc, rustdoc and cargo
8- ../x.py build --stage 1 library rustdoc
7+ # Build rustc, rustdoc, cargo and clippy-driver
8+ ../x.py build --stage 1 library rustdoc clippy
99../x.py build --stage 0 cargo
1010
1111# Install rustup so that we can use the built toolchain easily, and also
@@ -79,3 +79,14 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \
7979# Generate documentation
8080make -C linux LLVM=1 -j$(( $(nproc) + 1 )) \
8181 rustdoc
82+
83+ # Re-build with Clippy enabled
84+ #
85+ # This should not introduce Clippy errors, since `CONFIG_WERROR` is not
86+ # set (thus no `-Dwarnings`) and the kernel uses `-W` for all Clippy
87+ # lints, including `clippy::all`. However, it could catch ICEs.
88+ make -C linux LLVM=1 -j$(( $(nproc) + 1 )) CLIPPY=1 \
89+ samples/rust/rust_minimal.o \
90+ samples/rust/rust_print.o \
91+ drivers/net/phy/ax88796b_rust.o \
92+ rust/doctests_kernel_generated.o
You can’t perform that action at this time.
0 commit comments