Skip to content

Commit 1891256

Browse files
committed
CI: rfl: add macro expanded source build (-Zunpretty=expanded)
This particular target does not expand into much code, so it is a good first candidate to see if we could keep this in the CI. Signed-off-by: Miguel Ojeda <[email protected]>
1 parent b2b485c commit 1891256

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ci/docker/scripts/rfl-build.sh

+8
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \
8080
make -C linux LLVM=1 -j$(($(nproc) + 1)) \
8181
rustdoc
8282

83+
# Build macro expanded source (`-Zunpretty=expanded`)
84+
#
85+
# This target also formats the macro expanded code, thus it is also
86+
# intended to catch ICEs with formatting `-Zunpretty=expanded` output
87+
# like https://github.com/rust-lang/rustfmt/issues/6105.
88+
make -C linux LLVM=1 -j$(($(nproc) + 1)) \
89+
samples/rust/rust_minimal.rsi
90+
8391
# Re-build with Clippy enabled
8492
#
8593
# This should not introduce Clippy errors, since `CONFIG_WERROR` is not

0 commit comments

Comments
 (0)