Remove redundant delay_span_bug
This commit is contained in:
parent
9cacfae3e9
commit
66ae9998d5
@ -1170,16 +1170,10 @@ fn report_selection_error(
|
||||
}
|
||||
|
||||
// Already reported in the query.
|
||||
SelectionError::NotConstEvaluatable(NotConstEvaluatable::Error(_)) => {
|
||||
// FIXME(eddyb) remove this once `ErrorGuaranteed` becomes a proof token.
|
||||
self.tcx.sess.delay_span_bug(span, "`ErrorGuaranteed` without an error");
|
||||
return;
|
||||
}
|
||||
SelectionError::NotConstEvaluatable(NotConstEvaluatable::Error(_)) |
|
||||
// Already reported.
|
||||
Overflow(OverflowError::Error(_)) => {
|
||||
self.tcx.sess.delay_span_bug(span, "`OverflowError` has been reported");
|
||||
return;
|
||||
}
|
||||
Overflow(OverflowError::Error(_)) => return,
|
||||
|
||||
Overflow(_) => {
|
||||
bug!("overflow should be handled before the `report_selection_error` path");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user