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:
parent
6982acd867
commit
8fbb013c1c
@ -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
|
'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
|
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
|
'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
|
## Configuring warning levels
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user