File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
compiler/rustc_hir_typeck/src Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -243,18 +243,17 @@ fn typeck_with_inspect<'tcx>(
243243
244244 debug ! ( pending_obligations = ?fcx. fulfillment_cx. borrow( ) . pending_obligations( ) ) ;
245245
246- // This must be the last thing before `report_ambiguity_errors`.
247- fcx. resolve_coroutine_interiors ( ) ;
248-
249- debug ! ( pending_obligations = ?fcx. fulfillment_cx. borrow( ) . pending_obligations( ) ) ;
250-
251246 // We need to handle opaque types before emitting ambiguity errors as applying
252247 // defining uses may guide type inference.
253248 if fcx. next_trait_solver ( ) {
254249 fcx. handle_opaque_type_uses_next ( ) ;
255250 }
256251
252+ // This must be the last thing before `report_ambiguity_errors` below except `select_obligations_where_possible`.
253+ fcx. resolve_coroutine_interiors ( ) ;
254+ // So don't put anything here.
257255 fcx. select_obligations_where_possible ( |_| { } ) ;
256+ // Or here, since the next operation is `report_ambiguity_errors`.
258257 if fcx. infcx . tainted_by_errors ( ) . is_none ( ) {
259258 fcx. report_ambiguity_errors ( ) ;
260259 }
You can’t perform that action at this time.
0 commit comments