Skip to content

Nightly clippy hangs on nalgebra crate #13373

Closed as not planned
Closed as not planned
@nsjvidana

Description

@nsjvidana

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:

  • 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:

  1. run cargo init in an empty folder
  2. run cargo add nalgebra
  3. 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.

Version

rustc 1.83.0-nightly (12b26c13f 2024-09-07)
binary: rustc
commit-hash: 12b26c13fba25c9e1bc2fdf05f3c2dbb851c83de
commit-date: 2024-09-07
host: x86_64-pc-windows-msvc
release: 1.83.0-nightly
LLVM version: 19.1.0

Additional Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions