Skip to content

Commit 22cf37c

Browse files
committed
Update -Z treat-err-as-bug description
1 parent 3ac4e8f commit 22cf37c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_session/src/options.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,8 @@ written to standard error output)"),
18381838
trap_unreachable: Option<bool> = (None, parse_opt_bool, [TRACKED],
18391839
"generate trap instructions for unreachable intrinsics (default: use target setting, usually yes)"),
18401840
treat_err_as_bug: Option<NonZeroUsize> = (None, parse_treat_err_as_bug, [TRACKED],
1841-
"treat the nth error that occurs as bug (default: 0 - don't treat errors as bugs)"),
1841+
"treat the `val`th error that occurs as bug (default if unspecified: 0 - don't treat errors as bugs. \
1842+
default if specified without a value: 1 - treat the first error as bug)"),
18421843
trim_diagnostic_paths: bool = (true, parse_bool, [UNTRACKED],
18431844
"in diagnostics, use heuristics to shorten paths referring to items"),
18441845
tune_cpu: Option<String> = (None, parse_opt_string, [TRACKED],

0 commit comments

Comments
 (0)