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
4
4
5
5
LINUX_VERSION=4c7864e81d8bbd51036dacf92fb0a400e13aaeee
6
6
7
- # Build rustc, rustdoc and cargo
8
- ../x.py build --stage 2 library rustdoc
7
+ # Build rustc, rustdoc, cargo and clippy-driver
8
+ ../x.py build --stage 2 library rustdoc clippy
9
9
../x.py build --stage 0 cargo
10
10
11
11
# 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)) \
79
79
# Generate documentation
80
80
make -C linux LLVM=1 -j$(( $(nproc) + 1 )) \
81
81
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