Skip to content

Lint for workspaces using different editions among workspace members #15801

@BatmanAoD

Description

@BatmanAoD

What it does

In a workspace, determine if all crates have the same edition; if not, error.

Advantage

It's easy to forget to ensure that a new crate is at the same edition as the rest of the crates in a workspace, and it may be confusing if particular Rust features or idioms are not consistent across crates.

Drawbacks

There are plausible reasons to want different editions across a workspace. The lint should therefore be off by default.

Example

edition = "2021" in one workspace crate, and edition = "2024" in another

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-new-lintArea: new lintS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions