about summary refs log tree commit diff
diff options
context:
space:
mode:
authorScott Schafer <schaferjscott@gmail.com>2025-07-29 03:41:09 -0600
committerScott Schafer <schaferjscott@gmail.com>2025-07-31 07:26:39 -0600
commit935fdb6980f0f4133a26a91aefe81b4e2cea01c9 (patch)
tree8614e46e51726c5bc769c634b92684205a6a4c9a
parent64ca23b6235732fa61c0a2b957c5d7e591e7c972 (diff)
downloadrust-935fdb6980f0f4133a26a91aefe81b4e2cea01c9.tar.gz
rust-935fdb6980f0f4133a26a91aefe81b4e2cea01c9.zip
fix: Match width of ascii and unicode secondary file start
-rw-r--r--compiler/rustc_errors/src/emitter.rs2
-rw-r--r--tests/ui/error-emitter/close_window.unicode.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs
index 3fe525df94f..8794bf930fd 100644
--- a/compiler/rustc_errors/src/emitter.rs
+++ b/compiler/rustc_errors/src/emitter.rs
@@ -2988,7 +2988,7 @@ impl HumanEmitter {
     fn secondary_file_start(&self) -> &'static str {
         match self.theme {
             OutputTheme::Ascii => "::: ",
-            OutputTheme::Unicode => " ⸬ ",
+            OutputTheme::Unicode => " ⸬  ",
         }
     }
 
diff --git a/tests/ui/error-emitter/close_window.unicode.stderr b/tests/ui/error-emitter/close_window.unicode.stderr
index 56ab6daa278..b4aa78a5ac9 100644
--- a/tests/ui/error-emitter/close_window.unicode.stderr
+++ b/tests/ui/error-emitter/close_window.unicode.stderr
@@ -4,7 +4,7 @@ error[E0624]: method `method` is private
 LL │     s.method();
    │       ━━━━━━ private method

-   ⸬ $DIR/auxiliary/close_window.rs:3:5
+   ⸬  $DIR/auxiliary/close_window.rs:3:5

 LL │     fn method(&self) {}
    ╰╴    ──────────────── private method defined here