about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-02-22 11:25:16 +0000
committerbors <bors@rust-lang.org>2018-02-22 11:25:16 +0000
commitb1f8e6fb06d7362eeb2065347a7db94e76b1cb2f (patch)
treeea754de87eb50d309210d6dbf8b9abf769b956b3 /src/librustc_data_structures
parent27a046e9338fb0455c33b13e8fe28da78212dedc (diff)
parent24c17cb1a878547191a206bae49a6dadf63df452 (diff)
downloadrust-b1f8e6fb06d7362eeb2065347a7db94e76b1cb2f.tar.gz
rust-b1f8e6fb06d7362eeb2065347a7db94e76b1cb2f.zip
Auto merge of #48399 - GuillaumeGomez:rollup, r=GuillaumeGomez
Rollup of 12 pull requests

- Successful merges: #47379, #47833, #48106, #48198, #48314, #48325, #48335, #48352, #48354, #48360, #48382, #48397
- Failed merges:
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/snapshot_map/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustc_data_structures/snapshot_map/mod.rs b/src/librustc_data_structures/snapshot_map/mod.rs
index cd7143ad3ce..cede6f14782 100644
--- a/src/librustc_data_structures/snapshot_map/mod.rs
+++ b/src/librustc_data_structures/snapshot_map/mod.rs
@@ -45,6 +45,11 @@ impl<K, V> SnapshotMap<K, V>
         }
     }
 
+    pub fn clear(&mut self) {
+        self.map.clear();
+        self.undo_log.clear();
+    }
+
     pub fn insert(&mut self, key: K, value: V) -> bool {
         match self.map.insert(key.clone(), value) {
             None => {