Fix overcapturing, unsafe extern blocks, and new unsafe ops
This commit is contained in:
parent
7f6873f64c
commit
e1819a889a
7 changed files with 24 additions and 16 deletions
|
@ -308,7 +308,7 @@ impl<'tcx> UniversalRegions<'tcx> {
|
|||
|
||||
/// Returns an iterator over all the RegionVids corresponding to
|
||||
/// universally quantified free regions.
|
||||
pub(crate) fn universal_regions_iter(&self) -> impl Iterator<Item = RegionVid> {
|
||||
pub(crate) fn universal_regions_iter(&self) -> impl Iterator<Item = RegionVid> + use<> {
|
||||
(FIRST_GLOBAL_INDEX..self.num_universals).map(RegionVid::from_usize)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue