diff --git a/src/cargo/core/shell.rs b/src/cargo/core/shell.rs index 4653f4507..4ec9883c2 100644 --- a/src/cargo/core/shell.rs +++ b/src/cargo/core/shell.rs @@ -405,6 +405,9 @@ impl Shell { /// Prints the passed in [`Report`] to stderr pub fn print_report(&mut self, report: Report<'_>) -> CargoResult<()> { + if self.needs_clear { + self.err_erase_line(); + } let term_width = self .err_width() .diagnostic_terminal_width()