about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2024-08-11 15:02:13 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2024-08-25 22:17:51 +0000
commit7963beda2481deb5bd01286b61386d599536a3b5 (patch)
treef2d8ee244b6d4657ae052b235f76fcf691e21e0f /src
parent62c8c693bdda3932dbb049f8a2707f2f616d29eb (diff)
downloadrust-7963beda2481deb5bd01286b61386d599536a3b5.tar.gz
rust-7963beda2481deb5bd01286b61386d599536a3b5.zip
strip whitespace for ignored tests reason comments
Diffstat (limited to 'src')
-rw-r--r--src/tools/compiletest/src/header/needs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/header/needs.rs b/src/tools/compiletest/src/header/needs.rs
index e04abea0bf9..72b1b9c6d48 100644
--- a/src/tools/compiletest/src/header/needs.rs
+++ b/src/tools/compiletest/src/header/needs.rs
@@ -174,7 +174,7 @@ pub(super) fn handle_needs(
             } else {
                 return IgnoreDecision::Ignore {
                     reason: if let Some(comment) = comment {
-                        format!("{} ({comment})", need.ignore_reason)
+                        format!("{} ({})", need.ignore_reason, comment.trim())
                     } else {
                         need.ignore_reason.into()
                     },