about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-13 16:36:57 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-15 09:42:14 +1100
commitb0d5b442e952eb7b51361d4a3a6d11aff10d1cc0 (patch)
tree750a8b67ee85709a321a4503086b03d01fa2f99a /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent19d28a4f28ad8125775e73e97e8bab2b2229f4e1 (diff)
downloadrust-b0d5b442e952eb7b51361d4a3a6d11aff10d1cc0.tar.gz
rust-b0d5b442e952eb7b51361d4a3a6d11aff10d1cc0.zip
Avoid `DiagnosticBuilder::<T>::new` calls.
The `Handler` functions that directly emit diagnostics can be more
easily implemented using `struct_foo(msg).emit()`. This mirrors
`Handler::emit_err` which just does `create_err(err).emit()`.

`Handler::bug` is not converted because of weirdness involving
conflation bugs and fatal errors with `EmissionGuarantee`. I'll fix that
later.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions