Skip to content

Commit

Permalink
Reorder the diagnostic API methods.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nnethercote committed Feb 8, 2024
1 parent 6894f43 commit 0e4b55b
Showing 1 changed file with 312 additions and 306 deletions.
Loading

0 comments on commit 0e4b55b

Please sign in to comment.