Red-knot: Track scopes per expression (#11754)

This commit is contained in:
Micha Reiser 2024-06-05 17:53:26 +02:00 committed by GitHub
parent a8cf7096ff
commit b0b4706e2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 118 additions and 26 deletions

View file

@ -69,6 +69,11 @@ impl<I: Idx, T> IndexVec<I, T> {
pub fn next_index(&self) -> I {
I::new(self.raw.len())
}
#[inline]
pub fn shrink_to_fit(&mut self) {
self.raw.shrink_to_fit();
}
}
impl<I, T> Debug for IndexVec<I, T>