diff options
| -rw-r--r-- | src/librustc_data_structures/snapshot_map/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_data_structures/snapshot_map/mod.rs b/src/librustc_data_structures/snapshot_map/mod.rs index 2c36a549bac..6ad886625d8 100644 --- a/src/librustc_data_structures/snapshot_map/mod.rs +++ b/src/librustc_data_structures/snapshot_map/mod.rs @@ -106,7 +106,7 @@ impl<K, V> SnapshotMap<K, V> self.assert_open_snapshot(snapshot); if snapshot.len == 0 { // The root snapshot. - self.undo_log.truncate(0); + self.undo_log.clear(); } else { self.undo_log[snapshot.len] = UndoLog::CommittedSnapshot; } |
