Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hang in <clippy_lints::needless_pass_by_ref_mut::MutablyUsedVariablesCtxt>::add_mutably_used_var #11176

Open
matthiaskrgr opened this issue Jul 17, 2023 · 2 comments
Labels
C-bug Category: Clippy is not doing the correct thing I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️ L-nursery Lint: Currently in the nursery group

Comments

@matthiaskrgr
Copy link
Member

Summary

I don't have any code yet, I noticed this checking rustc_mir_dataflow with clippy that it seemed to hang.

Reproducer

I tried this code:

<code>

I expected to see this happen:

Instead, this happened:

Version

rustc 1.73.0-nightly (4eaad89dc 2023-07-17)
binary: rustc
commit-hash: 4eaad89dce57da09cebbf651e9ac3bd3292b4725
commit-date: 2023-07-17
host: x86_64-unknown-linux-gnu
release: 1.73.0-nightly
LLVM version: 16.0.5

Additional Labels

No response

@matthiaskrgr matthiaskrgr added the C-bug Category: Clippy is not doing the correct thing label Jul 17, 2023
@matthiaskrgr
Copy link
Member Author

while let Some(id) = self.aliases.get(&used_id) {
there's a suspicious while loop there but I'm not sure it would seemingly loop infinitly (for 20+ minutes on a single crate)

@matthiaskrgr matthiaskrgr added the I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️ label Jul 25, 2023
bors added a commit that referenced this issue Aug 11, 2023
[blocked] attempt to check rust-lang/rust with clippy in ci

r? `@ghost`

changelog: run clippy on rust-lang/rust as integration test

This might be blocked on at least
#11230
#11176
#11256
bors added a commit that referenced this issue Aug 17, 2023
[blocked] attempt to check rust-lang/rust with clippy in ci

r? `@ghost`

changelog: run clippy on rust-lang/rust as integration test

This might be blocked on at least
#11230
#11176
#11256
bors added a commit that referenced this issue Aug 17, 2023
[blocked] attempt to check rust-lang/rust with clippy in ci

r? `@ghost`

changelog: run clippy on rust-lang/rust as integration test

This might be blocked on at least
#11230
#11176
#11256
bors added a commit that referenced this issue Sep 4, 2023
[blocked] attempt to check rust-lang/rust with clippy in ci

r? `@ghost`

changelog: run clippy on rust-lang/rust as integration test

This might be blocked on at least
#11230
#11176
#11256
bors added a commit that referenced this issue Sep 27, 2023
[blocked] attempt to check rust-lang/rust with clippy in ci

r? `@ghost`

changelog: run clippy on rust-lang/rust as integration test

This might be blocked on at least
#11230
#11176
#11256
bors added a commit that referenced this issue Sep 27, 2023
[blocked] attempt to check rust-lang/rust with clippy in ci

r? `@ghost`

changelog: run clippy on rust-lang/rust as integration test

This might be blocked on at least
#11230
#11176
#11256
@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Oct 6, 2023

Is the problem still present?

EDIT: forgot to precise: I added a cycle check to prevent this problem so if it's still present, I need to fix it.

@J-ZhengLi J-ZhengLi added the L-nursery Lint: Currently in the nursery group label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️ L-nursery Lint: Currently in the nursery group
Projects
None yet
Development

No branches or pull requests

3 participants