Skip to content

--fix hangs with parallel rustc #140093

@matthiaskrgr

Description

@matthiaskrgr
Member

repro:

git clone https://github.com/rust-lang/rust-analyzer
cd rust-analyzer
git checkout 723121e5958cf282db3fdb06970776724a7326d5
RUSTFLAGS="-Zthreads=2" cargo clippy --fix    -- -Aclippy::all  -Wclippy::clone_on_copy

At some point there will be no more progress during the builds, it looks like we get stuck on build.rs scripts?
Works fine without the -Zthreads=2 and also works fine without the --fix

What is weird that we don't seem to hang with active cpu load, but I can still see some rustc processes running

rustc 1.88.0-nightly (077cedc2a 2025-04-19)
binary: rustc
commit-hash: 077cedc2afa8ac0b727b7a6cbe012940ba228deb
commit-date: 2025-04-19
host: x86_64-unknown-linux-gnu
release: 1.88.0-nightly
LLVM version: 20.1.2

Activity

added
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Apr 20, 2025
added and removed
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Apr 20, 2025
matthiaskrgr

matthiaskrgr commented on Apr 20, 2025

@matthiaskrgr
MemberAuthor

also reproducible on stable rustc 1.86.0

changed the title [-]clippy --fix hangs with parallel rustc[/-] [+] --fix hangs with parallel rustc[/+] on Apr 20, 2025
matthiaskrgr

matthiaskrgr commented on Apr 20, 2025

@matthiaskrgr
MemberAuthor

also happens with just RUSTFLAGS="-Zthreads=2" cargo fix 🤔

added a commit that references this issue on Apr 22, 2025
added a commit that references this issue on May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @matthiaskrgr@rustbot

      Issue actions

        --fix hangs with parallel rustc · Issue #140093 · rust-lang/rust