diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-07-21 15:40:52 +0200 |
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-07-21 15:41:10 +0200 |
| commit | 800c5f9202ca5309bbe372bbb8f2d6f1c29e59a5 (patch) | |
| tree | 6888ba61f2a6c913050fd08e0b83b2e733e98d36 /src/doc/unstable-book | |
| parent | da7d405357600a76f2b93b8aa41fe5ee5da7885d (diff) | |
| download | rust-800c5f9202ca5309bbe372bbb8f2d6f1c29e59a5.tar.gz rust-800c5f9202ca5309bbe372bbb8f2d6f1c29e59a5.zip | |
Rename force-warns to force-warn
Diffstat (limited to 'src/doc/unstable-book')
| -rw-r--r-- | src/doc/unstable-book/src/compiler-flags/force-warn.md (renamed from src/doc/unstable-book/src/compiler-flags/force-warns.md) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/force-warns.md b/src/doc/unstable-book/src/compiler-flags/force-warn.md index 0a205be096c..052de0f379e 100644 --- a/src/doc/unstable-book/src/compiler-flags/force-warns.md +++ b/src/doc/unstable-book/src/compiler-flags/force-warn.md @@ -1,10 +1,10 @@ -# `force-warns` +# `force-warn` The tracking issue for this feature is: [#85512](https://github.com/rust-lang/rust/issues/85512). ------------------------ -This feature allows you to cause any lint to produce a warning even if the lint has a different level by default or another level is set somewhere else. For instance, the `force-warns` option can be used to make a lint (e.g., `dead_code`) produce a warning even if that lint is allowed in code with `#![allow(dead_code)]`. +This feature allows you to cause any lint to produce a warning even if the lint has a different level by default or another level is set somewhere else. For instance, the `force-warn` option can be used to make a lint (e.g., `dead_code`) produce a warning even if that lint is allowed in code with `#![allow(dead_code)]`. ## Example @@ -18,4 +18,4 @@ fn dead_function() {} fn main() {} ``` -We can force a warning to be produced by providing `--force-warns dead_code` to rustc. +We can force a warning to be produced by providing `--force-warn dead_code` to rustc. |
