rust-lang / rust-lang/rust-clippy

clippy::cargo very slow in in `core`

Open
#11,347 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug
Dominant language
Rust
Stars
13.5k
Forks
2.2k
Avg merge
2d 10h
Merged PRs (30d)
32

Description

Summary

clone rustc repo

cd library/core
cargo clippy -- -Aclippy::all -Wclippy::cargo

looks like this hangs after printing the first 630 warnings?

Reproducer

No response

Version
rustc 1.73.0-nightly (4a0402cd8 2023-08-17)
binary: rustc
commit-hash: 4a0402cd805aa1f4dd8e2d96b038be664db293c3
commit-date: 2023-08-17
host: x86_64-unknown-linux-gnu
release: 1.73.0-nightly
LLVM version: 17.0.0
Additional Labels

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported command from library/core with the recorded rustc nightly version and observe whether it stops after roughly 630 warnings. The issue is complete when the cause of the slowdown or apparent hang is identified and the command completes without the reported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.