rust/compiler/rustc_parse/src
Nicholas Nethercote 4752a923af Remove DiagnosticBuilder::delay_as_bug_without_consuming.
The existing uses are replaced in one of three ways.
- In a function that also has calls to `emit`, just rearrange the code
  so that exactly one of `delay_as_bug` or `emit` is called on every
  path.
- In a function returning a `DiagnosticBuilder`, use
  `downgrade_to_delayed_bug`. That's good enough because it will get
  emitted later anyway.
- In `unclosed_delim_err`, one set of errors is being replaced with
  another set, so just cancel the original errors.
2024-01-08 16:07:14 +11:00
..
lexer Remove DiagnosticBuilder::delay_as_bug_without_consuming. 2024-01-08 16:07:14 +11:00
parser Remove DiagnosticBuilder::delay_as_bug_without_consuming. 2024-01-08 16:07:14 +11:00
errors.rs Rollup merge of #119538 - nnethercote:cleanup-errors-5, r=compiler-errors 2024-01-05 10:57:21 -05:00
lib.rs Make DiagnosticBuilder::emit consuming. 2024-01-08 15:24:49 +11:00
validate_attr.rs Make DiagnosticBuilder::emit consuming. 2024-01-08 15:24:49 +11:00