Skip to content

Commit a781c10

Browse files
committed
to span_delayed_bug
1 parent 74fd79b commit a781c10

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_borrowck/src/region_infer/opaque_types.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,11 @@ pub(crate) fn handle_opaque_type_uses<'tcx>(
224224
&opaque_types,
225225
);
226226

227-
if let Some((key, hidden_type)) = infcx
227+
for (key, hidden_type) in infcx
228228
.inner
229229
.borrow_mut()
230230
.opaque_types()
231231
.opaque_types_added_since(opaque_types_storage_num_entries)
232-
.next()
233232
{
234233
let opaque_type_string = tcx.def_path_str(key.def_id);
235234
let msg = format!("unexpected cyclic definition of `{opaque_type_string}`");

0 commit comments

Comments
 (0)