about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-08 16:02:20 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-12 09:16:45 +1100
commitc35983a74817599ab363adf2a6ef6b4cf2e7c5b6 (patch)
tree8f75cb752622ac62b586e0abaed8ced56b6d576c /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parenta166af7729d6f4e6570918701f79dfae750a00c4 (diff)
downloadrust-c35983a74817599ab363adf2a6ef6b4cf2e7c5b6.tar.gz
rust-c35983a74817599ab363adf2a6ef6b4cf2e7c5b6.zip
Reorder the diagnostic API methods.
The current order is almost perfectly random. This commit puts them into
a predictable order in their own impl block, going from the highest
level (`Block`) to the lowest (`Expect`). Within each level this is the
order:

- struct_err, err
- struct_span_err, span_err
- create_err, emit_err

The first one in each pair creates a diagnostic, the second one creates
*and* emits a diagnostic. Not every method is present for every level.

The diff is messy, but other than moving methods around, the only thing
it does is create the new `impl DiagCtxt` block with its own comment.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions