about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-12 08:04:22 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-01-12 10:25:22 +1100
commit3330940f7f2ec6ce7babd53240702406efaf13d1 (patch)
treeadc9bab23470d1a66b332353a3ac56217b252c65 /compiler/rustc_interface/src/errors.rs
parent62d7ed4a6775c4490e493093ca98ef7c215b835b (diff)
downloadrust-3330940f7f2ec6ce7babd53240702406efaf13d1.tar.gz
rust-3330940f7f2ec6ce7babd53240702406efaf13d1.zip
Avoid repetition in `flush_delayed` calls.
There are two places that handle normal delayed bugs. This commit
factors out some repeated code.

Also, we can use `std::mem::take` instead of `std::mem::replace`.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions