Skip to content

Commit 3acea17

Browse files
authored
Rollup merge of rust-lang#50387 - phansch:remove_leftover_tab, r=alexcrichton
Remove leftover tab in libtest outputs This removes some tabs that were present in the output of libtest. Related rust-lang#19299 Closes rust-lang#50362
2 parents 97e82a3 + 4f2cfb5 commit 3acea17

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libtest/formatters/pretty.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl<T: Write> PrettyFormatter<T> {
101101
for &(ref f, ref stdout) in &state.not_failures {
102102
successes.push(f.name.to_string());
103103
if !stdout.is_empty() {
104-
stdouts.push_str(&format!("---- {} stdout ----\n\t", f.name));
104+
stdouts.push_str(&format!("---- {} stdout ----\n", f.name));
105105
let output = String::from_utf8_lossy(stdout);
106106
stdouts.push_str(&output);
107107
stdouts.push_str("\n");
@@ -127,7 +127,7 @@ impl<T: Write> PrettyFormatter<T> {
127127
for &(ref f, ref stdout) in &state.failures {
128128
failures.push(f.name.to_string());
129129
if !stdout.is_empty() {
130-
fail_out.push_str(&format!("---- {} stdout ----\n\t", f.name));
130+
fail_out.push_str(&format!("---- {} stdout ----\n", f.name));
131131
let output = String::from_utf8_lossy(stdout);
132132
fail_out.push_str(&output);
133133
fail_out.push_str("\n");

src/libtest/formatters/terse.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl<T: Write> TerseFormatter<T> {
105105
for &(ref f, ref stdout) in &state.not_failures {
106106
successes.push(f.name.to_string());
107107
if !stdout.is_empty() {
108-
stdouts.push_str(&format!("---- {} stdout ----\n\t", f.name));
108+
stdouts.push_str(&format!("---- {} stdout ----\n", f.name));
109109
let output = String::from_utf8_lossy(stdout);
110110
stdouts.push_str(&output);
111111
stdouts.push_str("\n");
@@ -131,7 +131,7 @@ impl<T: Write> TerseFormatter<T> {
131131
for &(ref f, ref stdout) in &state.failures {
132132
failures.push(f.name.to_string());
133133
if !stdout.is_empty() {
134-
fail_out.push_str(&format!("---- {} stdout ----\n\t", f.name));
134+
fail_out.push_str(&format!("---- {} stdout ----\n", f.name));
135135
let output = String::from_utf8_lossy(stdout);
136136
fail_out.push_str(&output);
137137
fail_out.push_str("\n");

0 commit comments

Comments
 (0)