Commit 7bf52a3
committed
Remove useless
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.TRACK_DIAGNOSTIC calls.1 parent 6894f43 commit 7bf52a3
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1295 | 1295 | | |
1296 | 1296 | | |
1297 | 1297 | | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | 1298 | | |
1302 | 1299 | | |
1303 | 1300 | | |
1304 | | - | |
1305 | 1301 | | |
1306 | 1302 | | |
1307 | 1303 | | |
1308 | 1304 | | |
1309 | 1305 | | |
1310 | 1306 | | |
1311 | | - | |
| 1307 | + | |
1312 | 1308 | | |
1313 | 1309 | | |
1314 | 1310 | | |
| |||
0 commit comments