Skip to content

Commit f0d7280

Browse files
committed
Add comment for future_incompatible lint group
1 parent 0e28575 commit f0d7280

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_lint/src/context.rs

+3
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ impl LintStore {
221221
.lint_ids
222222
.push(id);
223223
} else {
224+
// Lints belonging to the `future_incompatible` lint group are lints where a
225+
// future version of rustc will cause existing code to stop compiling.
226+
// Lints tied to an edition don't count because they are opt-in.
224227
self.lint_groups
225228
.entry("future_incompatible")
226229
.or_insert(LintGroup {

0 commit comments

Comments
 (0)