Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 1 addition & 2 deletions
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-
ifletSome((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)

AltStyle によって変換されたページ (->オリジナル) /