-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-edition-2021Area: The 2021 editionArea: The 2021 editionA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.
Description
The OR_PATTERNS_BACK_COMPAT lint level should be adjusted for the 2021 edition. Either the lint should be warn-by-default always, or it should be a 2021 future-incompatible lint. This is needed to smoothly migrate projects to 2021.
There is some appeal to making it always warn for less confusion, as long as the lint works well. I think this course needs to be overridable via 2021 migration (see https://github.com/orgs/rust-lang/projects/7#card-59862192), and be aware that projects which support a wide range of rustc versions may be forced to allow
it.
Metadata
Metadata
Assignees
Labels
A-edition-2021Area: The 2021 editionArea: The 2021 editionA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.