about summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-03-30 17:07:19 +0000
committerbors <bors@rust-lang.org>2021-03-30 17:07:19 +0000
commit926ec1cb8b81ac47ba2e5b8a6780e95d39241afa (patch)
tree0c129ef23845acbccd2d4acbe3609a9c4191aa8c /compiler/rustc_errors
parent7b6fc5a3dd73a341010bd51a19008ed679cd1475 (diff)
parent8d7432af7bd82ae5a9c06983d51a03438cf1b625 (diff)
downloadrust-926ec1cb8b81ac47ba2e5b8a6780e95d39241afa.tar.gz
rust-926ec1cb8b81ac47ba2e5b8a6780e95d39241afa.zip
Auto merge of #83639 - osa1:issue83638, r=estebank
Replace tabs in err messages before rendering

This is done in other call sites, but was missing in one place.

Fixes #83638
Diffstat (limited to 'compiler/rustc_errors')
-rw-r--r--compiler/rustc_errors/src/emitter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs
index 633c64af3c5..8ec06feb5bf 100644
--- a/compiler/rustc_errors/src/emitter.rs
+++ b/compiler/rustc_errors/src/emitter.rs
@@ -1258,7 +1258,7 @@ impl EmitterWriter {
                 buffer.append(0, ": ", header_style);
             }
             for &(ref text, _) in msg.iter() {
-                buffer.append(0, text, header_style);
+                buffer.append(0, &replace_tabs(text), header_style);
             }
         }