about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2024-08-10 17:08:44 +0200
committerMiguel Ojeda <ojeda@kernel.org>2024-08-28 01:57:16 +0200
commit5c558d3ff419fce1d74dd455bb089e26938578af (patch)
tree8a3ee6eda50265ece5dfca2a752916ee3148ce86
parentd584f7099a3c17c76a38f686a9af0b1d36a686ab (diff)
downloadrust-5c558d3ff419fce1d74dd455bb089e26938578af.tar.gz
rust-5c558d3ff419fce1d74dd455bb089e26938578af.zip
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 <ojeda@kernel.org>
-rwxr-xr-xsrc/ci/docker/scripts/rfl-build.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ci/docker/scripts/rfl-build.sh b/src/ci/docker/scripts/rfl-build.sh
index 030b6f6ee17..e8b6235921d 100755
--- a/src/ci/docker/scripts/rfl-build.sh
+++ b/src/ci/docker/scripts/rfl-build.sh
@@ -80,6 +80,14 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \
 make -C linux LLVM=1 -j$(($(nproc) + 1)) \
     rustdoc
 
+# Build macro expanded source (`-Zunpretty=expanded`)
+#
+# This target also formats the macro expanded code, thus it is also
+# intended to catch ICEs with formatting `-Zunpretty=expanded` output
+# like https://github.com/rust-lang/rustfmt/issues/6105.
+make -C linux LLVM=1 -j$(($(nproc) + 1)) \
+    samples/rust/rust_minimal.rsi
+
 # Re-build with Clippy enabled
 #
 # This should not introduce Clippy errors, since `CONFIG_WERROR` is not