diff --git a/src/cargo/core/shell.rs b/src/cargo/core/shell.rs index 860d35d107a..c0c9b13907a 100644 --- a/src/cargo/core/shell.rs +++ b/src/cargo/core/shell.rs @@ -464,7 +464,13 @@ mod imp { } } -#[cfg(any(all(unix, not(any(target_os = "linux", target_os = "macos"))), windows,))] +#[cfg(any( + all( + unix, + not(any(target_os = "linux", target_os = "macos", target_os = "freebsd")) + ), + windows, +))] fn default_err_erase_line(shell: &mut Shell) { if let Some(max_width) = imp::stderr_width() { let blank = " ".repeat(max_width);