about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
AgeCommit message (Expand)AuthorLines
2024-01-08Make `emit_producing_{guarantee,nothing}` consuming.Nicholas Nethercote-9/+9
2024-01-08Remove `DiagnosticBuilder::delay_as_bug_without_consuming`.Nicholas Nethercote-7/+0
2024-01-08Remove `DiagnosticBuilder::emit_without_consuming`.Nicholas Nethercote-7/+1
2024-01-08Remove all eight `DiagnosticBuilder::*_with_code` methods.Nicholas Nethercote-94/+2
2024-01-08Use chaining in `DiagnosticBuilder` construction.Nicholas Nethercote-73/+34
2024-01-08Make `DiagnosticBuilder::emit` consuming.Nicholas Nethercote-93/+108
2024-01-08Remove `Clone` impl for `DiagnosticBuilder`.Nicholas Nethercote-1/+5
2024-01-05Rollup merge of #119601 - nnethercote:Emitter-cleanups, r=oli-obkMichael Goulet-19/+21
2024-01-05Rollup merge of #119567 - nnethercote:rm-Zreport-delayed-bugs, r=oli-obkMichael Goulet-13/+3
2024-01-05Rollup merge of #119538 - nnethercote:cleanup-errors-5, r=compiler-errorsMichael Goulet-107/+69
2024-01-05Add some comments to `Emitter`.Nicholas Nethercote-3/+5
2024-01-05Rename `AnnotateSnippetEmitterWriter` as `AnnotateSnippetEmitter`.Nicholas Nethercote-4/+4
2024-01-05Rename `EmitterWriter` as `HumanEmitter`.Nicholas Nethercote-12/+12
2024-01-04Remove `-Zreport-delayed-bugs`.Nicholas Nethercote-13/+3
2024-01-04Remove `is_lint` field from `Level::Error`.Nicholas Nethercote-22/+14
2024-01-04compiler: fix typosvuittont60-1/+1
2024-01-04Remove unused `DiagnosticBuilder::struct_almost_fatal`.Nicholas Nethercote-10/+0
2024-01-03Fix `forward!` so it doesn't require trailing commas in some cases.Nicholas Nethercote-4/+4
2024-01-03Fix up `forward!` decls.Nicholas Nethercote-32/+16
2024-01-03Remove forward for `downgrade_to_delayed_bug`.Nicholas Nethercote-8/+1
2024-01-03Rename some `Diagnostic` setters.Nicholas Nethercote-32/+35
2023-12-31rustc_lint: Make `LintLevelsProvider::current_specs()` return `&FxIndexMap`Martin Nordholts-4/+4
2023-12-24Remove `Session` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-4/+16
2023-12-24Remove `ParseSess` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-1/+12
2023-12-23Remove `DiagnosticBuilder::forget_guarantee`.Nicholas Nethercote-52/+24
2023-12-23Fix a comment.Nicholas Nethercote-1/+1
2023-12-23Use `pub(crate)` in a couple of places.Nicholas Nethercote-2/+2
2023-12-23Take full advantage of a `use Level::*;`.Nicholas Nethercote-35/+33
2023-12-23Remove `LabelKind`.Nicholas Nethercote-15/+2
2023-12-23Remove `SubDiagnostic::render_span`.Nicholas Nethercote-10/+3
2023-12-23Remove `render_span` args from `Diagnostic::{sub,sub_with_highlight}`.Nicholas Nethercote-21/+14
2023-12-23Improve some names.Nicholas Nethercote-33/+33
2023-12-23Remove `Diagnostic::new_with_code`.Nicholas Nethercote-21/+1
2023-12-23Remove `DiagCtxtInner::span_bug`.Nicholas Nethercote-13/+5
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