rust/compiler/rustc_errors/src
Oli Scherer bad2cb08de
Rollup merge of #121015 - nnethercote:opt-delayed-bug, r=oli-obk
Optimize `delayed_bug` handling.

Once we have emitted at least one error, delayed bugs won't be used. So we can (a) we can (a) discard any existing delayed bugs, and (b) stop recording any new delayed bugs.

This eliminates a longstanding `FIXME` comment. There should be no soundness issues because it's not possible to un-emit an error.

r? `@oli-obk`
2024-02-14 11:53:40 +01:00
..
json
markdown
annotate_snippet_emitter_writer.rs Remove good_path_delayed_bug. 2024-02-13 09:33:35 +11:00
codes.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
diagnostic_builder.rs Tighten up ErrorGuaranteed handling. 2024-02-07 18:57:47 +11:00
diagnostic_impls.rs Add SubdiagnosticMessageOp as a trait alias. 2024-02-08 13:02:44 +11:00
diagnostic.rs Remove good_path_delayed_bug. 2024-02-13 09:33:35 +11:00
emitter.rs Bump indexmap 2024-02-13 21:03:34 +00:00
error.rs
json.rs Make Emitter::emit_diagnostic consuming. 2024-02-05 21:27:01 +11:00
lib.rs Rollup merge of #121015 - nnethercote:opt-delayed-bug, r=oli-obk 2024-02-14 11:53:40 +01:00
lock.rs
registry.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
snippet.rs Rework StringPart. 2024-02-01 19:23:01 +11:00
styled_buffer.rs
tests.rs
translation.rs Remove the second lifetime from DiagnosticArg. 2024-01-30 18:46:08 +11:00