Change how edition based future compatibility warnings are handled
This commit is contained in:
parent
117799b73c
commit
23176f60e7
98 changed files with 380 additions and 540 deletions
|
@ -209,8 +209,8 @@ impl LintStore {
|
|||
bug!("duplicate specification of lint {}", lint.name_lower())
|
||||
}
|
||||
|
||||
if let Some(FutureIncompatibleInfo { edition, .. }) = lint.future_incompatible {
|
||||
if let Some(edition) = edition {
|
||||
if let Some(FutureIncompatibleInfo { reason, .. }) = lint.future_incompatible {
|
||||
if let Some(edition) = reason.edition() {
|
||||
self.lint_groups
|
||||
.entry(edition.lint_name())
|
||||
.or_insert(LintGroup {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue