1
Fork 0

Make mir borrowck's use of opaque types independent of the typeck query's result

This commit is contained in:
Oli Scherer 2021-07-19 16:50:43 +00:00
parent d693a98f4e
commit 6d76002baf
20 changed files with 162 additions and 261 deletions

View file

@ -70,6 +70,10 @@ where
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&K, &mut V)> {
self.into_iter()
}
pub fn retain(&mut self, f: impl Fn(&(K, V)) -> bool) {
self.0.retain(f)
}
}
impl<K, V> Default for VecMap<K, V> {