File tree 1 file changed +3
-9
lines changed
compiler/rustc_trait_selection/src/traits/error_reporting
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1170,16 +1170,10 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
1170
1170
}
1171
1171
1172
1172
// 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 ( _) ) |
1178
1174
// 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
+
1183
1177
Overflow ( _) => {
1184
1178
bug ! ( "overflow should be handled before the `report_selection_error` path" ) ;
1185
1179
}
You can’t perform that action at this time.
0 commit comments