You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running cargo fix on a large project I noticed it reliably hang with a bunch of subprocesses not doing anything (23 cargo rustc, 4 rustc). CARGO_LOG=trace didn't really seem to output anything useful near where it hung.
Playing around I managed to reproduce it on a blank project, seems like it's some bad interaction of the job server with -Zthreads under cargo-fix.
I'm not certain if the issue lies in cargo-fix or is a bug in rustc with -Zthreads that cargo-fix just happens to trigger.
Steps
> cargo new foo &&cd foo
> RUSTFLAGS=-Zthreads=2 cargo fix --allow-dirty -j1 Building [ ] 0/2: foo(bin test), foo(bin)…hangs…
Uh oh!
There was an error while loading. Please reload this page.
Problem
Running
cargo fix
on a large project I noticed it reliably hang with a bunch of subprocesses not doing anything (23cargo rustc
, 4rustc
).CARGO_LOG=trace
didn't really seem to output anything useful near where it hung.Playing around I managed to reproduce it on a blank project, seems like it's some bad interaction of the job server with
-Zthreads
undercargo-fix
.I'm not certain if the issue lies in
cargo-fix
or is a bug inrustc
with-Zthreads
thatcargo-fix
just happens to trigger.Steps
Note that a check works in this configuration:
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: