diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2023-02-21 03:08:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-20 19:08:35 -0600 |
| commit | 0b402ec90babce982ba945cd4b157b11c907bfef (patch) | |
| tree | fb6a9ff64bb391ac97ab545e780b0d249e0e9d27 /src/doc/rustc-dev-guide | |
| parent | 6c0acb4265c208a7eddce204c34262659ef25fb3 (diff) | |
| download | rust-0b402ec90babce982ba945cd4b157b11c907bfef.tar.gz rust-0b402ec90babce982ba945cd4b157b11c907bfef.zip | |
keep "grey area" lint summary green (#1619)
This replaces link to a removed lint with a link to discussion of lints of its type.
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/diagnostics.md | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/doc/rustc-dev-guide/src/diagnostics.md b/src/doc/rustc-dev-guide/src/diagnostics.md index b50b7bd1824..bec8d5f57dd 100644 --- a/src/doc/rustc-dev-guide/src/diagnostics.md +++ b/src/doc/rustc-dev-guide/src/diagnostics.md @@ -112,10 +112,11 @@ Here are a few examples: - Dead code: this is a lint. While the user probably doesn't want dead code in their crate, making this a hard error would make refactoring and development very painful. -- [safe_packed_borrows future compatibility warning][safe_packed_borrows]: - this is a silencable lint related to safety. It was judged that the making - this a hard (fixed) error would cause too much breakage, so instead a - warning is emitted that eventually will be turned into a hard error. +- [future-incompatible lints]: + these are silencable lints. + It was decided that making them fixed errors would cause too much breakage, + so warnings are instead emitted, + and will eventually be turned into fixed (hard) errors. Hard-coded warnings (those using the `span_warn` methods) should be avoided 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. See the `deny` [lint level](#diagnostic-levels) below for guidelines when to use an error-level lint instead of a fixed error. -[safe_packed_borrows]: https://github.com/rust-lang/rust/issues/46043 +[future-incompatible lints]: #future-incompatible-lints ## Diagnostic output style guide |
