Description
Issue: rustc
v1.64.0 hangs on a crate with a syntax error without reporting the error.
I was making this change to a Rust project where one of the non-default workspace crates ended up with an error due to the signature of a function in another crate in the workspace changing. Normally, this crate compiles relatively quickly, but after making the change, rustc
ran indefinitely instead of showing the error. Fixing the error (or not making the change in the first place) allows the crate to compile normally again.
Seems to build fine on nightly as of today.
Commits:
Reproduces on both Linux and macOS/ARM with Rust v1.64.0. Nightly appears to build without a hang and then displays the expected syntax error.
How to reproduce:
- Clone my fork of the https://github.com/pantsbuild/pants/ repository.
- Checkout the commit:
git checkout 0f7dd58f884300740aa9f0e2fd96637b8fe2616e
- Build the crate at issue:
cd src/rust/engine/process_executor
cargo build
- The build should hang. Reproduces on both Linux and macOS/ARM with Rust v1.64.0.
Traces:
Meta
rustc --version --verbose
:
rustc 1.64.0 (a55dd71d5 2022-09-19)
binary: rustc
commit-hash: a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52
commit-date: 2022-09-19
host: aarch64-apple-darwin
release: 1.64.0
LLVM version: 14.0.6
Nightly version info on which there is no hang:
rustc 1.67.0-nightly (77e57db38 2022-10-30)
binary: rustc
commit-hash: 77e57db384aca99444c3b5f6a9c86bc58a804d89
commit-date: 2022-10-30
host: aarch64-apple-darwin
release: 1.67.0-nightly
LLVM version: 15.0.4