about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-06-30 17:38:46 +1000
committerZalathar <Zalathar@users.noreply.github.com>2023-06-30 17:41:34 +1000
commit115cfda6c2de05cb48b11cf01146b4c612899810 (patch)
tree8eb11030b3e0f15a8071a5c90ac36dbbcae8fa7e
parent97279e91d8d3973da9c1fc606a2b773213ed54e5 (diff)
downloadrust-115cfda6c2de05cb48b11cf01146b4c612899810.tar.gz
rust-115cfda6c2de05cb48b11cf01146b4c612899810.zip
compiletest: Only trim the end of process output
-rw-r--r--src/tools/compiletest/src/runtest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index 8bdc2d65d27..fddfbac78d5 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -4374,7 +4374,7 @@ impl ProcRes {
     pub fn print_info(&self) {
         fn render(name: &str, contents: &str) -> String {
             let contents = json::extract_rendered(contents);
-            let contents = contents.trim();
+            let contents = contents.trim_end();
             if contents.is_empty() {
                 format!("{name}: none")
             } else {