Skip to content

Commit 66ae999

Browse files
committed
Remove redundant delay_span_bug
1 parent 9cacfae commit 66ae999

File tree

1 file changed

+3
-9
lines changed
  • compiler/rustc_trait_selection/src/traits/error_reporting

1 file changed

+3
-9
lines changed

compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs

+3-9
Original file line numberDiff line numberDiff line change
@@ -1170,16 +1170,10 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
11701170
}
11711171

11721172
// Already reported in the query.
1173-
SelectionError::NotConstEvaluatable(NotConstEvaluatable::Error(_)) => {
1174-
// FIXME(eddyb) remove this once `ErrorGuaranteed` becomes a proof token.
1175-
self.tcx.sess.delay_span_bug(span, "`ErrorGuaranteed` without an error");
1176-
return;
1177-
}
1173+
SelectionError::NotConstEvaluatable(NotConstEvaluatable::Error(_)) |
11781174
// Already reported.
1179-
Overflow(OverflowError::Error(_)) => {
1180-
self.tcx.sess.delay_span_bug(span, "`OverflowError` has been reported");
1181-
return;
1182-
}
1175+
Overflow(OverflowError::Error(_)) => return,
1176+
11831177
Overflow(_) => {
11841178
bug!("overflow should be handled before the `report_selection_error` path");
11851179
}

0 commit comments

Comments
 (0)