diff options
Diffstat (limited to 'compiler/rustc_index/src/interval.rs')
| -rw-r--r-- | compiler/rustc_index/src/interval.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_index/src/interval.rs b/compiler/rustc_index/src/interval.rs index a3d87f59567..0225c5c4f32 100644 --- a/compiler/rustc_index/src/interval.rs +++ b/compiler/rustc_index/src/interval.rs @@ -51,7 +51,7 @@ impl<I: Idx> IntervalSet<I> { self.map.clear(); } - pub fn iter(&self) -> impl Iterator<Item = I> + '_ + pub fn iter(&self) -> impl Iterator<Item = I> where I: Step, { @@ -59,7 +59,7 @@ impl<I: Idx> IntervalSet<I> { } /// Iterates through intervals stored in the set, in order. - pub fn iter_intervals(&self) -> impl Iterator<Item = std::ops::Range<I>> + '_ + pub fn iter_intervals(&self) -> impl Iterator<Item = std::ops::Range<I>> where I: Step, { |
