Commit e8fcc8e
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 4e3eed4 commit e8fcc8e
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1300 | 1300 | | |
1301 | 1301 | | |
1302 | 1302 | | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
1306 | 1303 | | |
1307 | 1304 | | |
1308 | 1305 | | |
1309 | 1306 | | |
1310 | | - | |
1311 | 1307 | | |
1312 | 1308 | | |
1313 | 1309 | | |
1314 | 1310 | | |
1315 | | - | |
| 1311 | + | |
1316 | 1312 | | |
1317 | 1313 | | |
1318 | 1314 | | |
| |||
0 commit comments