Skip to content

Deny Clippy's inconsistent_struct_constructor lint #1273

Description

@Techassi

I would be happy to enable that lint in a follow-up PR.

The lint in question is this one: https://rust-lang.github.io/rust-clippy/stable/index.html?search=field#inconsistent_struct_constructor

Originally posted by @Techassi in #1226 (comment)

Activity

  1. Techassi commented on Sep 9, 2026

    @Techassi
    MemberAuthor

    Okay it seems like we already deny that via the pedantic = "deny" catch-all, but we currently don't enforce check-inconsistent-struct-field-initializers, because that can lead to borrow issues.

    I'm also not quite certain if this lint also applies to destructures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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