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.
insert_all
1 parent 7e19015 commit 65a5b08Copy full SHA for 65a5b08
compiler/rustc_index/src/interval.rs
@@ -203,7 +203,9 @@ impl<I: Idx> IntervalSet<I> {
203
204
pub fn insert_all(&mut self) {
205
self.clear();
206
- self.map.push((0, self.domain.try_into().unwrap()));
+ if let Some(end) = self.domain.checked_sub(1) {
207
+ self.map.push((0, end.try_into().unwrap()));
208
+ }
209
debug_assert!(self.check_invariants());
210
}
211
0 commit comments