Skip to content

Commit 56276b3

Browse files
committed
Remove empty TRACK_DIAGNOSTIC calls.
They have no apparent effect.
1 parent 032e5ef commit 56276b3

File tree

1 file changed

+0
-4
lines changed
  • compiler/rustc_errors/src

1 file changed

+0
-4
lines changed

compiler/rustc_errors/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,14 +1304,10 @@ impl DiagCtxtInner {
13041304
&& !self.flags.can_emit_warnings
13051305
&& !diagnostic.is_force_warn()
13061306
{
1307-
if diagnostic.has_future_breakage() {
1308-
(*TRACK_DIAGNOSTIC)(diagnostic, &mut |_| {});
1309-
}
13101307
return None;
13111308
}
13121309

13131310
if matches!(diagnostic.level, Expect(_) | Allow) {
1314-
(*TRACK_DIAGNOSTIC)(diagnostic, &mut |_| {});
13151311
return None;
13161312
}
13171313

0 commit comments

Comments
 (0)