diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-09-24 07:38:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-24 07:38:58 +0200 |
| commit | 4fc33e94430d5cab7310d2dc4269137a50e0b783 (patch) | |
| tree | 6eabbfae75c6583f0c9d9e539754f75d568367b2 | |
| parent | 865e4566e7d0dbf885d77a4a585b0c533be2ec57 (diff) | |
| parent | f5f69bc0bbb1ac4e7c5e3a295392786bea80b22d (diff) | |
| download | rust-4fc33e94430d5cab7310d2dc4269137a50e0b783.tar.gz rust-4fc33e94430d5cab7310d2dc4269137a50e0b783.zip | |
Rollup merge of #102218 - ehuss:rustc-flags, r=JohnTitor
Document some missing command-line arguments The rustc command-line arguments docs should document all of the stable arguments for rustc. Two were missing, `--force-warn` which was somewhat documented in the lint-levels chapter, but should also include a mention in the arguments list. `--diagnostic-width` was stabilized in #95635, but the docs weren't updated.
| -rw-r--r-- | src/doc/rustc/src/command-line-arguments.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md index f05ff3f1b6b..79cdfb82e41 100644 --- a/src/doc/rustc/src/command-line-arguments.md +++ b/src/doc/rustc/src/command-line-arguments.md @@ -270,6 +270,11 @@ This flag will set which lints should be set to the [warn level](lints/levels.md _Note:_ The order of these lint level arguments is taken into account, see [lint level via compiler flag](lints/levels.md#via-compiler-flag) for more information. +<a id="option-force-warn"></a> +## `--force-warn`: force a lint to warn + +This flag sets the given lint to the [forced warn level](lints/levels.md#force-warn) and the level cannot be overridden, even ignoring the [lint caps](lints/levels.md#capping-lints). + <a id="option-a-allow"></a> ## `-A`: set lint allowed @@ -381,6 +386,12 @@ are: - `always` — Always use colors. - `never` — Never colorize output. +<a id="option-diagnostic-width"></a> +## `--diagnostic-width`: specify the terminal width for diagnostics + +This flag takes a number that specifies the width of the terminal in characters. +Formatting of diagnostics will take the width into consideration to make them better fit on the screen. + <a id="option-remap-path-prefix"></a> ## `--remap-path-prefix`: remap source names in output |
