diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-13 08:19:55 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-14 07:51:53 +1100 |
| commit | c1ffb0b675c5bb7fb5d91c19fcb9171f873511d0 (patch) | |
| tree | 33cb984f927b12bf3b66d37af6b1c4b7588ee559 /compiler/rustc_interface/src/errors.rs | |
| parent | bdc6d82f9ac21a9c0b8a5e3f5728a5cbb50a09e2 (diff) | |
| download | rust-c1ffb0b675c5bb7fb5d91c19fcb9171f873511d0.tar.gz rust-c1ffb0b675c5bb7fb5d91c19fcb9171f873511d0.zip | |
Remove `force_print_diagnostic`.
There are a couple of places where we call `inner.emitter.emit_diagnostic` directly rather than going through `inner.emit_diagnostic`, to guarantee the diagnostic is printed. This feels dubious to me, particularly the bypassing of `TRACK_DIAGNOSTIC`. This commit removes those. - In `print_error_count`, it uses `ForceWarning` instead of `Warning`. - It removes `DiagCtxtInner::failure_note`, because it only has three uses and direct use of `emit_diagnostic` is consistent with other similar locations. - It removes `force_print_diagnostic`, and adds `struct_failure_note`, and updates `print_query_stack` accordingly, which makes it more normal. That location doesn't seem to need forced printing anyway.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
