diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2017-11-05 14:06:46 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2017-11-16 05:57:44 -0500 |
| commit | 524e23ae2e842a6f52d5fc4d5819473b73a335ef (patch) | |
| tree | b6bc8a23bb4589efb3d6176049fd2b909e000108 /src/librustc_data_structures | |
| parent | bea6b94273bc616f806b111c8f1f6b3d2e3e5380 (diff) | |
| download | rust-524e23ae2e842a6f52d5fc4d5819473b73a335ef.tar.gz rust-524e23ae2e842a6f52d5fc4d5819473b73a335ef.zip | |
make `RegionVid` implement `Idx` and use `IndexVec`
Diffstat (limited to 'src/librustc_data_structures')
| -rw-r--r-- | src/librustc_data_structures/indexed_vec.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustc_data_structures/indexed_vec.rs b/src/librustc_data_structures/indexed_vec.rs index a733e9de5a1..622e8c51bee 100644 --- a/src/librustc_data_structures/indexed_vec.rs +++ b/src/librustc_data_structures/indexed_vec.rs @@ -385,6 +385,11 @@ impl<I: Idx, T> IndexVec<I, T> { } #[inline] + pub fn pop(&mut self) -> Option<T> { + self.raw.pop() + } + + #[inline] pub fn len(&self) -> usize { self.raw.len() } |
