File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
compiler/rustc_hir_analysis/src/check Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -119,16 +119,7 @@ where
119119
120120 let errors = wfcx. select_all_or_error ( ) ;
121121 if !errors. is_empty ( ) {
122- let err = infcx. err_ctxt ( ) . report_fulfillment_errors ( errors) ;
123- if tcx. dcx ( ) . has_errors ( ) . is_some ( ) {
124- return Err ( err) ;
125- } else {
126- // HACK(oli-obk): tests/ui/specialization/min_specialization/specialize_on_type_error.rs
127- // causes an delayed bug during normalization, without reporting an error, so we need
128- // to act as if no error happened, in order to let our callers continue and report an
129- // error later in check_impl_items_against_trait.
130- return Ok ( ( ) ) ;
131- }
122+ return Err ( infcx. err_ctxt ( ) . report_fulfillment_errors ( errors) ) ;
132123 }
133124
134125 debug ! ( ?assumed_wf_types) ;
You can’t perform that action at this time.
0 commit comments