Skip to content

Infinite loop in clippy::only_used_in_recursion #8689

Closed
@emgre

Description

@emgre

Summary

Since 1.61.0-beta.1, one of our crate gets stuck in an infinite loop. I was able to GDB into clippy and figure out that it gets stuck while running the clippy::only_used_in_recursion that was recently introduced. Unfortunately, I was not able to understand why it gets stuck.

Reproducer

Running cargo +beta clippy on the dnp3-schema crate gets stuck in an infinite loop in 1.61.0-beta.1 and up (including nightly)

Version

rustc 1.61.0-beta.2 (7c13df853 2022-04-09)
binary: rustc
commit-hash: 7c13df853721b60a03e7c0bb084d2eb1e27a9caa
commit-date: 2022-04-09
host: x86_64-unknown-linux-gnu
release: 1.61.0-beta.2
LLVM version: 14.0.0

Additional Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-ICEIssue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions