Skip to content

Commit d1e8e58

Browse files
committed
Pass the current shell width to rustc
1 parent 7d2b578 commit d1e8e58

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cargo/ops/cargo_compile.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,12 @@ pub fn compile_ws<'a>(
426426
}
427427
}
428428
}
429+
if let Some(width) = config.shell().err_width() {
430+
for unit in &units {
431+
bcx.extra_compiler_args
432+
.insert(*unit, vec![format!("-Zterminal-width={}", width)]);
433+
}
434+
}
429435

430436
let unit_dependencies = build_unit_dependencies(
431437
&bcx,

0 commit comments

Comments
 (0)