rust/compiler/rustc_query_system/src/query
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
..
caches.rs Cache local DefId-keyed queries without hashing 2024-01-15 17:16:45 -05:00
config.rs Value recovery can take the whole CycleError 2024-01-08 20:30:10 +00:00
job.rs Remove force_print_diagnostic. 2024-02-14 07:51:53 +11:00
mod.rs Avoid code generation for ThinVec<Diagnostic>'s destructor in the query system 2024-01-20 13:43:05 +01:00
plumbing.rs Avoid code generation for ThinVec<Diagnostic>'s destructor in the query system 2024-01-20 13:43:05 +01:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00

For more information about how the query system works, see the rustc dev guide.