Skip to content

Commit 110275f

Browse files
authored
keep "grey area" lint summary green (#1619)
This replaces link to a removed lint with a link to discussion of lints of its type.
1 parent 095f27d commit 110275f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: src/diagnostics.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,11 @@ Here are a few examples:
112112
- Dead code: this is a lint. While the user probably doesn't want dead code in
113113
their crate, making this a hard error would make refactoring and development
114114
very painful.
115-
- [safe_packed_borrows future compatibility warning][safe_packed_borrows]:
116-
this is a silencable lint related to safety. It was judged that the making
117-
this a hard (fixed) error would cause too much breakage, so instead a
118-
warning is emitted that eventually will be turned into a hard error.
115+
- [future-incompatible lints]:
116+
these are silencable lints.
117+
It was decided that making them fixed errors would cause too much breakage,
118+
so warnings are instead emitted,
119+
and will eventually be turned into fixed (hard) errors.
119120

120121
Hard-coded warnings (those using the `span_warn` methods) should be avoided
121122
for normal code, preferring to use lints instead. Some cases, such as warnings
@@ -124,7 +125,7 @@ with CLI flags, will require the use of hard-coded warnings.
124125
See the `deny` [lint level](#diagnostic-levels) below for guidelines when to
125126
use an error-level lint instead of a fixed error.
126127

127-
[safe_packed_borrows]: https://github.com/rust-lang/rust/issues/46043
128+
[future-incompatible lints]: #future-incompatible-lints
128129

129130
## Diagnostic output style guide
130131

0 commit comments

Comments
 (0)