diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-08 16:02:20 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-12 09:16:45 +1100 |
| commit | c35983a74817599ab363adf2a6ef6b4cf2e7c5b6 (patch) | |
| tree | 8f75cb752622ac62b586e0abaed8ced56b6d576c /compiler/rustc_llvm/llvm-wrapper/Linker.cpp | |
| parent | a166af7729d6f4e6570918701f79dfae750a00c4 (diff) | |
| download | rust-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
