mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00
Red-knot: Track scopes per expression (#11754)
This commit is contained in:
parent
a8cf7096ff
commit
b0b4706e2d
5 changed files with 118 additions and 26 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue