diff options
| author | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2021-03-29 12:24:18 +0300 |
|---|---|---|
| committer | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2021-03-29 13:38:36 +0300 |
| commit | 8d7432af7bd82ae5a9c06983d51a03438cf1b625 (patch) | |
| tree | db42db7379f138f39210e396105eede6cefbc26d /compiler/rustc_errors/src | |
| parent | cc4103089f40a163f6d143f06359cba7043da29b (diff) | |
| download | rust-8d7432af7bd82ae5a9c06983d51a03438cf1b625.tar.gz rust-8d7432af7bd82ae5a9c06983d51a03438cf1b625.zip | |
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/src')
| -rw-r--r-- | compiler/rustc_errors/src/emitter.rs | 2 |
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); } } |
