Skip to content

Commit

Permalink
Mention capping forbid lints
Browse files Browse the repository at this point in the history
I felt the description of forbid was misleading/incomplete without
mentioning how --cap-lints interacts with it.
  • Loading branch information
dwijnand committed Feb 17, 2019
1 parent 6982acd commit 8fbb013
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 8fbb013

Please sign in to comment.