]> git.lizzy.rs Git - rust.git/commit
Replace tabs earlier in diagnostics
authorJ. Ryan Stinnett <jryans@gmail.com>
Sun, 6 Dec 2020 00:39:07 +0000 (00:39 +0000)
committerJ. Ryan Stinnett <jryans@gmail.com>
Wed, 9 Dec 2020 10:12:15 +0000 (10:12 +0000)
commit3537bd80ff1ef12c9fa994133969d8cfcaa356d3
tree1797cfc244e96590fe3f061b961a63a3b64d74cd
parent8ca8b7724f753e71f26cb442e11bb1f1c40ebf0a
Replace tabs earlier in diagnostics

This replaces tabs earlier in the diagnostics emitting process, which allows
various margin calculations to ignore the existence of tabs. It does add a
string copy for the source lines that are emitted.
compiler/rustc_errors/src/emitter.rs
compiler/rustc_errors/src/styled_buffer.rs