Skip to content

Commit 7d29193

Browse files
committed
:<
1 parent 10cee1a commit 7d29193

File tree

1 file changed

+6
-1
lines changed
  • compiler/rustc_borrowck/src

1 file changed

+6
-1
lines changed

compiler/rustc_borrowck/src/nll.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,12 @@ fn for_each_region_constraint<'tcx>(
379379
))
380380
}
381381
};
382-
with_msg(format!("where {}: {:?}", subject, req.outlived_free_region,))?;
382+
with_msg(format!("where {}: {:?}", subject, req.outlived_free_region))?;
383+
}
384+
385+
for data in &closure_requirements.opaque_types {
386+
let (key, hidden_ty) = data.instantiate(tcx, |vid| ty::Region::new_var(tcx, vid));
387+
with_msg(format!("where {key:?} = {hidden_ty:?}"))?;
383388
}
384389
Ok(())
385390
}

0 commit comments

Comments
 (0)