Skip to content

Latest nightly clippy complains about more things #11957

@itsjunetime

Description

@itsjunetime

Describe the bug

Running cargo clippy with the latest nightly toolchain reports a few more warnings, due to (I assume) internal improvements in clippy that got merged recently.

To Reproduce

  1. rustup update nightly
  2. cargo +nightly clippy

Expected behavior

No warnings

Additional context

All warnings can be fixed except for one, which complains about an issue stemming from the stabilization of min_exhaustive_patterns. This can't be fixed until 1.82 releases in a few months. We could add a lint to allow an unreachable pattern, plus a lint to ignore that lint if it's unrecognized (so people can keep using stable), but I don't feel like that's really necessary right now.

I'll file a PR to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions