Mention capping forbid lints

I felt the description of forbid was misleading/incomplete without
mentioning how --cap-lints interacts with it.
This commit is contained in:
Dale Wijnand 2019-02-17 10:24:06 +00:00
parent 6982acd867
commit 8fbb013c1c
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF

View File

@ -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