about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-14 14:13:35 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-15 10:13:12 +1100
commit7045cad3307327adef735d4eecbbce25002b1ba2 (patch)
tree021bd78b04888cc2032a2f2fec25c5cd550b3c53 /tests/codegen/patchable-function-entry
parent948c9047d56e95a72c50f623b561b71b0d0ee9ae (diff)
downloadrust-7045cad3307327adef735d4eecbbce25002b1ba2.tar.gz
rust-7045cad3307327adef735d4eecbbce25002b1ba2.zip
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.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions