Skip to content

Commit 2fabaab

Browse files
Rollup merge of rust-lang#58534 - dwijnand:mention-capping-forbid-lints, r=oli-obk
Mention capping forbid lints I felt the description of forbid was misleading/incomplete without mentioning how --cap-lints interacts with it.
2 parents 681bc67 + 8fbb013 commit 2fabaab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/doc/rustc/src/lints/levels.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ This lint level gives you that.
9090
'forbid' is a special lint level that's stronger than 'deny'. It's the same
9191
as 'deny' in that a lint at this level will produce an error, but unlike the
9292
'deny' level, the 'forbid' level can not be overridden to be anything lower
93-
than an error.
93+
than an error. However, lint levels may still be capped with `--cap-lints`
94+
(see below) so `rustc --cap-lints warn` will make lints set to 'forbid' just
95+
warn.
9496

9597
## Configuring warning levels
9698

0 commit comments

Comments
 (0)