Skip to content

Commit 1c30987

Browse files
committed
Remove empty TRACK_DIAGNOSTIC calls.
They have no apparent effect.
1 parent b9bae52 commit 1c30987

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
@@ -1307,14 +1307,10 @@ impl DiagCtxtInner {
13071307
&& !self.flags.can_emit_warnings
13081308
&& !diagnostic.is_force_warn()
13091309
{
1310-
if diagnostic.has_future_breakage() {
1311-
(*TRACK_DIAGNOSTIC)(diagnostic, &mut |_| {});
1312-
}
13131310
return None;
13141311
}
13151312

13161313
if matches!(diagnostic.level, Expect(_) | Allow) {
1317-
(*TRACK_DIAGNOSTIC)(diagnostic, &mut |_| {});
13181314
return None;
13191315
}
13201316

0 commit comments

Comments
 (0)