rust/compiler/rustc_query_system/src
Nicholas Nethercote c1ffb0b675 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.
2024-02-14 07:51:53 +11:00
..
dep_graph Remove dead args from functions 2024-02-02 22:47:26 +00:00
ich Simplify BodyId hashing. 2024-01-16 23:52:30 +00:00
query Remove force_print_diagnostic. 2024-02-14 07:51:53 +11:00
cache.rs Remove a fishy Clone impl 2023-04-04 09:01:44 +00:00
error.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
lib.rs Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
values.rs Value recovery can take the whole CycleError 2024-01-08 20:30:10 +00:00