Add comment for future_incompatible lint group

This commit is contained in:
Ryan Levick 2021-06-28 17:42:27 +02:00
parent 0e28575909
commit f0d7280ff3

View File

@ -221,6 +221,9 @@ impl LintStore {
.lint_ids
.push(id);
} else {
// Lints belonging to the `future_incompatible` lint group are lints where a
// future version of rustc will cause existing code to stop compiling.
// Lints tied to an edition don't count because they are opt-in.
self.lint_groups
.entry("future_incompatible")
.or_insert(LintGroup {