session: output-width -> diagnostic-width

Rename the `--output-width` flag to `--diagnostic-width` as this appears
to be the preferred name within the compiler team.

Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
David Wood
2022-07-06 11:57:41 +01:00
parent cd23af6793
commit 44c1fcc04d
29 changed files with 48 additions and 48 deletions

View File

@@ -462,10 +462,10 @@ fn opts() -> Vec<RustcOptGroup> {
"human|json|short",
)
}),
unstable("output-width", |o| {
unstable("diagnostic-width", |o| {
o.optopt(
"",
"output-width",
"diagnostic-width",
"Provide width of the output for truncated error messages",
"WIDTH",
)
@@ -744,7 +744,7 @@ fn main_options(options: config::Options) -> MainResult {
let diag = core::new_handler(
options.error_format,
None,
options.output_width,
options.diagnostic_width,
&options.debugging_opts,
);