about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDale Wijnand <dale.wijnand@gmail.com>2019-02-17 10:24:06 +0000
committerDale Wijnand <dale.wijnand@gmail.com>2019-02-17 10:24:25 +0000
commit8fbb013c1c0605a4738a6f5f5ec5b47550a2a5ec (patch)
tree5a14b151088f100e45ce8d772df62e38bd624d68 /src
parent6982acd8673cbf511e64c6790964e94552400f40 (diff)
downloadrust-8fbb013c1c0605a4738a6f5f5ec5b47550a2a5ec.tar.gz
rust-8fbb013c1c0605a4738a6f5f5ec5b47550a2a5ec.zip
Mention capping forbid lints
I felt the description of forbid was misleading/incomplete without
mentioning how --cap-lints interacts with it.
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustc/src/lints/levels.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/doc/rustc/src/lints/levels.md b/src/doc/rustc/src/lints/levels.md
index 072c7585934..d315e0f8ca9 100644
--- a/src/doc/rustc/src/lints/levels.md
+++ b/src/doc/rustc/src/lints/levels.md
@@ -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