Skip to content

refactor lint mechanism to support "error in new edition, lint in older editions" pattern #84625

Closed
@nikomatsakis

Description

@nikomatsakis

We've been adding lints that, in newer editions, become hard errors. Right now we do this by manually creating either an error or a lint. (see e.g. #83213). We should introduce an API where we write one specification and the compiler decides, based on the edition of a particular span, whether to introduce a hard error or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions