Skip to content

Commit 79d7dc0

Browse files
committed
Update terminal-width flag.
1 parent 6867277 commit 79d7dc0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cargo/core/compiler/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,11 +793,11 @@ fn add_error_format_and_color(cx: &Context<'_, '_>, cmd: &mut ProcessBuilder) {
793793
) {
794794
// Terminal width explicitly provided - only useful for testing.
795795
(Some(Some(width)), _) => {
796-
cmd.arg(format!("-Zterminal-width={}", width));
796+
cmd.arg(format!("--diagnostic-width={}", width));
797797
}
798798
// Terminal width was not explicitly provided but flag was provided - common case.
799799
(Some(None), Some(width)) => {
800-
cmd.arg(format!("-Zterminal-width={}", width));
800+
cmd.arg(format!("--diagnostic-width={}", width));
801801
}
802802
// User didn't opt-in.
803803
_ => (),

tests/testsuite/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6107,7 +6107,7 @@ fn target_directory_backup_exclusion() {
61076107
#[cargo_test]
61086108
fn simple_terminal_width() {
61096109
if !is_nightly() {
6110-
// --terminal-width is unstable
6110+
// --diagnostic-width is stabilized in 1.64
61116111
return;
61126112
}
61136113
let p = project()

0 commit comments

Comments
 (0)