We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74fd79b commit a781c10Copy full SHA for a781c10
compiler/rustc_borrowck/src/region_infer/opaque_types.rs
@@ -224,12 +224,11 @@ pub(crate) fn handle_opaque_type_uses<'tcx>(
224
&opaque_types,
225
);
226
227
- if let Some((key, hidden_type)) = infcx
+ for (key, hidden_type) in infcx
228
.inner
229
.borrow_mut()
230
.opaque_types()
231
.opaque_types_added_since(opaque_types_storage_num_entries)
232
- .next()
233
{
234
let opaque_type_string = tcx.def_path_str(key.def_id);
235
let msg = format!("unexpected cyclic definition of `{opaque_type_string}`");
0 commit comments