File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
compiler/rustc_trait_selection/src/traits/error_reporting Expand file tree Collapse file tree 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> {
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 }
You can’t perform that action at this time.
0 commit comments