about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/emitter.rs
AgeCommit message (Collapse)AuthorLines
2021-03-26Use iter::zip in compiler/Josh Stone-3/+1
2021-03-24small cleanups in rustc_errors / emitterAndre Bogus-20/+14
2021-02-27Even faster counting of digits for error line numbersAndre Bogus-12/+26
2021-02-18nhwn: optimize counting digits in line numbersNathan Nguyen-1/+12
2021-02-03Reduce tab formatting assertions to debug onlyJ. Ryan Stinnett-1/+1
The tab replacement for diagnostics added in #79757 included a few assertions to ensure all tab characters are handled appropriately. We've started getting reports of these assertions firing (#81614). Since it's only a cosmetic issue, this downgrades the assertions to debug only, so we at least continue compiling even if the diagnostics might be a tad wonky. Fixes #81614
2020-12-09Replace tabs earlier in diagnosticsJ. Ryan Stinnett-5/+20
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.
2020-11-17Simplfy color availability checkGuillaume Gomez-0/+17
2020-11-03Auto merge of #76931 - oli-obk:const_prop_inline_lint_madness, r=wesleywiserbors-2/+5
Properly handle lint spans after MIR inlining The first commit shows what happens when we apply mir inlining and then cause lints on the inlined MIR. The second commit fixes that. r? `@wesleywiser`
2020-10-30Implement rustc side of report-future-incompatAaron Hill-3/+6
2020-10-29Fix typosDániel Buga-2/+2
2020-10-27Address review commentoli-1/+2
2020-10-27Show the inline stack of MIR lints that only occur after inliningOliver Scherer-2/+4
2020-10-14Remove unused code from remaining compiler cratesest31-2/+0
2020-09-17Remove redundant to_stringJuan Aguilar Santillana-14/+8
2020-09-11replacing sub's that can wrap by saturating_sub'sAurélien Deharbe-3/+3
2020-08-30mv compiler to compiler/mark-0/+2177