File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
compiler/rustc_hir_typeck/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -243,17 +243,17 @@ fn typeck_with_inspect<'tcx>(
243
243
244
244
debug ! ( pending_obligations = ?fcx. fulfillment_cx. borrow( ) . pending_obligations( ) ) ;
245
245
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
-
251
246
// We need to handle opaque types before emitting ambiguity errors as applying
252
247
// defining uses may guide type inference.
253
248
if fcx. next_trait_solver ( ) {
254
249
fcx. handle_opaque_type_uses_next ( ) ;
255
250
}
256
251
252
+ // This must be the last thing before `report_ambiguity_errors`.
253
+ fcx. resolve_coroutine_interiors ( ) ;
254
+
255
+ debug ! ( pending_obligations = ?fcx. fulfillment_cx. borrow( ) . pending_obligations( ) ) ;
256
+
257
257
fcx. select_obligations_where_possible ( |_| { } ) ;
258
258
if fcx. infcx . tainted_by_errors ( ) . is_none ( ) {
259
259
fcx. report_ambiguity_errors ( ) ;
You can’t perform that action at this time.
0 commit comments