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
I was a little skeptical of making an issue on a specific crate, but I believe that other crates that are similar to nalgebra might be impacted by this. When running nightly clippy on a crate that uses the nalgebra crate (version 0.33.0), clippy hangs on the nalgebra crate and never finishes checking it. As of right now, I have only tested this on a machine running Windows 10 with the latest version of nightly clippy.
Things that I have tried and their outcomes:
run stable clippy (nothing went wrong)
run nightly clippy on the nalgebra crate repo (clippy hanged at nalgebra here as well)
run stable clippy on the nalgebra crate repo (clippy worked, but there were a lot of warnings)
Reproducer
Steps to reproduce:
run cargo init in an empty folder
run cargo add nalgebra
run rustup run nightly cargo clippy
I expected to see this happen:
Clippy finishes running in a reasonable amount of time (~13s with stable clippy on my machine).
Instead, this happened:
Clippy stayed stuck on checking nalgebra and never finished. I waited for over an hour and it never finished.
The hang is reproducible with cargo +nightly check, so I think the problem is in the compiler itself.
In a stack trace, these two functions appear repeatedly:
#1 0x00007ffff....... in <&rustc_middle::ty::list::RawList<(), rustc_middle::ty::generic_args::GenericArg> as rustc_type_ir::fold::TypeFoldable<rustc_middle::ty::context::TyCtxt>>::try_fold_with::<rustc_next_trait_solver::canonicalizer::Canonicalizer<rustc_trait_selection::solve::delegate::SolverDelegate, rustc_middle::ty::context::TyCtxt>> ()
from $HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-67e992fc9ebdf5ae.so
#2 0x00007ffff....... in <rustc_next_trait_solver::canonicalizer::Canonicalizer<rustc_trait_selection::solve::delegate::SolverDelegate, rustc_middle::ty::context::TyCtxt> as rustc_type_ir::fold::TypeFolder<rustc_middle::ty::context::TyCtxt>>::fold_ty () from $HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-67e992fc9ebdf5ae.so
With the Clippy in master (0ee2650), there is a noticeable delay of about 10 seconds, but Clippy does eventually finish.
Summary
I was a little skeptical of making an issue on a specific crate, but I believe that other crates that are similar to nalgebra might be impacted by this. When running nightly clippy on a crate that uses the nalgebra crate (version 0.33.0), clippy hangs on the nalgebra crate and never finishes checking it. As of right now, I have only tested this on a machine running Windows 10 with the latest version of nightly clippy.
Things that I have tried and their outcomes:
Reproducer
Steps to reproduce:
cargo init
in an empty foldercargo add nalgebra
rustup run nightly cargo clippy
I expected to see this happen:
Clippy finishes running in a reasonable amount of time (~13s with stable clippy on my machine).
Instead, this happened:
Clippy stayed stuck on checking nalgebra and never finished. I waited for over an hour and it never finished.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: