about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
AgeCommit message (Expand)AuthorLines
2023-12-23Introduce `DiagCtxt::treat_next_err_as_bug`.Nicholas Nethercote-7/+8
2023-12-23Remove unnecessary line breaks from two string literals.Nicholas Nethercote-4/+2
2023-12-23Tweak `flush_delayed`.Nicholas Nethercote-10/+11
2023-12-23Give `DiagnosticBuilder` a default type.Nicholas Nethercote-14/+8
2023-12-23Fix a couple of left-over references to `Handler`.Nicholas Nethercote-2/+2
2023-12-23Improve `use` items in `compiler/rustc_errors/src/lib.rs`.Nicholas Nethercote-30/+27
2023-12-23Streamline `struct_lint_level`.Nicholas Nethercote-53/+0
2023-12-23Add comments to `Level`.Nicholas Nethercote-5/+59
2023-12-19Remove unused `DiagCtxt::span_bug_no_panic`.Nicholas Nethercote-7/+0
2023-12-19De-weirdify `fatally_break_rust`.Nicholas Nethercote-0/+13
2023-12-19Introduce `DiagCtxt::struct_bug`.Nicholas Nethercote-1/+9
2023-12-19Factor out common `emit_producing_guarantee` code.Nicholas Nethercote-43/+21
2023-12-19Add `EmitResult` associated type to `EmissionGuarantee`.Nicholas Nethercote-54/+46
2023-12-19Remove `struct_diagnostic` and `G::make_diagnostic_builder`.Nicholas Nethercote-65/+0
2023-12-19Add `level` arg to `into_diagnostic`.Nicholas Nethercote-37/+42
2023-12-18Use `.into_diagnostic()` less.Nicholas Nethercote-0/+1
2023-12-18Rename many `DiagCtxt` and `EarlyDiagCtxt` locals.Nicholas Nethercote-23/+23
2023-12-18Rename many `DiagCtxt` arguments.Nicholas Nethercote-30/+30
2023-12-18Rename `SilentEmitter::fatal_handler` as `SilentEmitter::fatal_dcx`.Nicholas Nethercote-3/+3
2023-12-18Rename `DiagnosticBuilder::handler` as `DiagnosticBuilder::dcx`.Nicholas Nethercote-1/+1
2023-12-18Rename `HandlerFlags` as `DiagCtxtFlags`.Nicholas Nethercote-5/+5
2023-12-18Rename `HandlerInner` as `DiagCtxtInner`.Nicholas Nethercote-9/+9
2023-12-18Rename `Handler` as `DiagCtxt`.Nicholas Nethercote-40/+40
2023-12-15Rollup merge of #118993 - jyn514:cfg-color, r=WaffleLapkin,NilstriebJubilee-4/+1
2023-12-16Simplify lint decorator derive tooMichael Goulet-4/+1
2023-12-15use `if cfg` instead of `#[cfg]`jyn-4/+1
2023-12-15Rollup merge of #118888 - compiler-errors:uplift-more-things, r=jackh726Matthias Krüger-0/+6
2023-12-15Split `Handler::emit_diagnostic` in two.Nicholas Nethercote-26/+47
2023-12-15Remove `Handler::emit_diag_at_span`.Nicholas Nethercote-23/+9
2023-12-15Avoid `DiagnosticBuilder::<T>::new` calls.Nicholas Nethercote-4/+4
2023-12-15Change `msg: impl Into<String>` for bug diagnostics.Nicholas Nethercote-7/+7
2023-12-14Avoid `struct_diagnostic` where possible.Nicholas Nethercote-2/+17
2023-12-14Inline and remove `HandlerInner::emit_diag_at_span`.Nicholas Nethercote-5/+1
2023-12-14Remove unused `Handler::treat_err_as_bug`.Nicholas Nethercote-5/+0
2023-12-12Uplift ClosureKindMichael Goulet-0/+6
2023-12-12Rollup merge of #118756 - jyn514:colors, r=estebankMatthias Krüger-11/+11
2023-12-10remove redundant importssurechen-7/+3
2023-12-09Rollup merge of #118057 - bvanjoi:fix-118048, r=cjgillotGuillaume Gomez-4/+5
2023-12-08use magenta instead of bold for highlightingjyn-1/+1
2023-12-08Simplify and comment the special-casing for Windows colorsjyn-10/+10
2023-12-04Inline and remove `fatal_no_raise`.Nicholas Nethercote-10/+3
2023-12-04Make `Handler::{err,bug}` more like `Handler::{warn,note}`.Nicholas Nethercote-10/+3
2023-12-04Remove `HandlerInner::emit`.Nicholas Nethercote-12/+12
2023-12-04Move some `HandlerInner` functions to `Handler`.Nicholas Nethercote-212/+164
2023-12-04Use `DiagnosticBuilder::new` more.Nicholas Nethercote-68/+36
2023-12-04Remove some unused code, and downgrade some `pub`s.Nicholas Nethercote-44/+6
2023-12-04Avoid `Diagnostic::new_with_code(..., None, ...)`.Nicholas Nethercote-5/+5
2023-12-04Always use `G` for `EmissionGuarantee` type variables.Nicholas Nethercote-6/+6
2023-12-04Inline and remove more `DiagnosticBuilder::new_diagnostic_*` functions.Nicholas Nethercote-83/+28
2023-12-04Inline and remove `DiagnosticBuilder::new_diagnostic_*` functions.Nicholas Nethercote-24/+0