diff options
| author | Ralf Jung <post@ralfj.de> | 2024-11-21 07:25:52 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-21 07:25:52 +0000 |
| commit | 12ac750f9bf4ecfb45e44773ca4dd5c414d9bd7b (patch) | |
| tree | 4c4fbb89bcbcdfb75627bf0ce9255f124944e664 /compiler/rustc_data_structures/src | |
| parent | 7e6c8d21c61b1b6471c316df98cd119e5cb5fe46 (diff) | |
| parent | ec6fe118d9f11c236288a589113db887cade703c (diff) | |
| download | rust-12ac750f9bf4ecfb45e44773ca4dd5c414d9bd7b.tar.gz rust-12ac750f9bf4ecfb45e44773ca4dd5c414d9bd7b.zip | |
Merge pull request #4044 from RalfJung/rustup
Rustup
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/unord.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/unord.rs b/compiler/rustc_data_structures/src/unord.rs index bafb16a8b5e..34895d3efe6 100644 --- a/compiler/rustc_data_structures/src/unord.rs +++ b/compiler/rustc_data_structures/src/unord.rs @@ -602,6 +602,11 @@ impl<K: Eq + Hash, V> UnordMap<K, V> { .into_iter() .map(|(_, v)| v) } + + #[inline] + pub fn clear(&mut self) { + self.inner.clear() + } } impl<K, Q: ?Sized, V> Index<&Q> for UnordMap<K, V> |
