about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorThe Miri Cronjob Bot <miri@cron.bot>2024-06-23 05:01:42 +0000
committerThe Miri Cronjob Bot <miri@cron.bot>2024-06-23 05:01:42 +0000
commitd5feca99d6d165233cfb52339ec0560a01f72413 (patch)
treecd43d510453fa46d8d7ec0fd38b93bbd22fa6400 /compiler/rustc_errors/src
parentf91411b5ff5335601aa5acde43302ddfce8d4b82 (diff)
parentdd545e148c0c1680be1555efcb02ece0a16ee3ef (diff)
downloadrust-d5feca99d6d165233cfb52339ec0560a01f72413.tar.gz
rust-d5feca99d6d165233cfb52339ec0560a01f72413.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/emitter.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs
index 245deda50d5..7405705dd33 100644
--- a/compiler/rustc_errors/src/emitter.rs
+++ b/compiler/rustc_errors/src/emitter.rs
@@ -1905,7 +1905,7 @@ impl HumanEmitter {
                     //
                     // LL | this line was highlighted
                     // LL | this line is just for context
-                    //   ...
+                    // ...
                     // LL | this line is just for context
                     // LL | this line was highlighted
                     _ => {
@@ -1926,7 +1926,7 @@ impl HumanEmitter {
                             )
                         }
 
-                        buffer.puts(row_num, max_line_num_len - 1, "...", Style::LineNumber);
+                        buffer.puts(row_num, 0, "...", Style::LineNumber);
                         row_num += 1;
 
                         if let Some((p, l)) = last_line {