Skip to content

Commit

Permalink
Rollup merge of rust-lang#58534 - dwijnand:mention-capping-forbid-lin…
Browse files Browse the repository at this point in the history
…ts, r=oli-obk

Mention capping forbid lints

I felt the description of forbid was misleading/incomplete without
mentioning how --cap-lints interacts with it.
  • Loading branch information
Mark-Simulacrum authored Feb 18, 2019
2 parents e2f306e + 8fbb013 commit 8488327
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/doc/rustc/src/lints/levels.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ This lint level gives you that.
'forbid' is a special lint level that's stronger than 'deny'. It's the same
as 'deny' in that a lint at this level will produce an error, but unlike the
'deny' level, the 'forbid' level can not be overridden to be anything lower
than an error.
than an error. However, lint levels may still be capped with `--cap-lints`
(see below) so `rustc --cap-lints warn` will make lints set to 'forbid' just
warn.

## Configuring warning levels

Expand Down

0 comments on commit 8488327

Please sign in to comment.