Skip to content

Disable suggestion to use if-let chains #14825

@TroyKomodo

Description

@TroyKomodo

Description

We use nightly clippy in CI because we use some unstable options for tests & we run clippy across all targets. However our core code is stable. With the recent changes to the clippy::collapsible_if lint we now have clippy nightly suggesting we use a feature which is not yet stable. This is generally fine if there was a way to opt out of it but there doesn't seem to be one due to the fact that the lint has been extended to support if-let-chains and normal collapsible_if statements.

Version

rustc 1.87.0 (17067e9ac 2025-05-09) binary: rustc commit-hash: 17067e9ac6d7ecb70e50f92c1944e545188d2359 commit-date: 2025-05-09 host: x86_64-unknown-linux-gnu release: 1.87.0 LLVM version: 20.1.1 

Additional Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions