Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove useless
TRACK_DIAGNOSTIC
calls.
There are two calls to `TRACK_DIAGNOSTIC` in `DiagCtxtInner::emit_diagnostic` for cases where we don't emit anything and the closure does nothing. The only effect these calls have is to add a diagnostic to `ImplicitCtxt::diagnostics`, which then gets added to `QuerySideEffects::diagnostics`, which eventually gets handled by `DepGraphData::emit_side_effects`, which calls `emit_diagnostic` on the diagnostic, and again `emit_diagnostic` doesn't emit anything. It's a big, complicate no-op. This commit removes it.
- Loading branch information