Commit 3c03186
committed
rust: remove unneeded
When KUnit tests are enabled, under very big kernel configurations
(e.g. `allyesconfig`), we may trigger an ICE in `rustdoc` [1]:
RUSTDOC TK rust/kernel/lib.rs
error: the compiler unexpectedly panicked. this is a bug.
The reason is that this build step has a duplicated `@rustc_cfg` argument,
which contains the kernel configuration, and thus a lot of arguments. The
factor 2 happens to be enough to reach the ICE.
Thus remove the unneeded `@rustc_cfg`, workarounding the ICE and cleaning
up the command.
The ICE has been fixed for the upcoming Rust 1.79 [2].
Cc: [email protected]
Fixes: a66d733 ("rust: support running Rust documentation tests as KUnit ones")
Link: rust-lang/rust#122722 [1]
Link: rust-lang/rust#122840 [2]
Signed-off-by: Miguel Ojeda <[email protected]>@rustc_cfg to avoid ICE1 parent 4cece76 commit 3c03186
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
| |||
0 commit comments