rust/compiler
Nicholas Nethercote 9a78412511 Split Handler::emit_diagnostic in two.
Currently, `emit_diagnostic` takes `&mut self`.

This commit changes it so `emit_diagnostic` takes `self` and the new
`emit_diagnostic_without_consuming` function takes `&mut self`.

I find the distinction useful. The former case is much more common, and
avoids a bunch of `mut` and `&mut` occurrences. We can also restrict the
latter with `pub(crate)` which is nice.
2023-12-15 10:13:12 +11:00
..
2023-12-05 17:52:51 -08:00
2023-12-12 14:52:05 +01:00
2023-12-12 12:28:54 +00:00
2023-12-10 10:56:22 +08:00
2023-12-10 10:56:22 +08:00
2023-12-09 09:30:32 +11:00
2023-12-10 10:56:22 +08:00
2023-12-11 12:53:01 +01:00