about summary refs log tree commit diff
path: root/src/librustc/util/snapshot_vec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc/util/snapshot_vec.rs')
-rw-r--r--src/librustc/util/snapshot_vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/util/snapshot_vec.rs b/src/librustc/util/snapshot_vec.rs
index 7a7c8f8d94f..8885d86d4da 100644
--- a/src/librustc/util/snapshot_vec.rs
+++ b/src/librustc/util/snapshot_vec.rs
@@ -148,7 +148,7 @@ impl<T,U,D:SnapshotVecDelegate<T,U>> SnapshotVec<T,U,D> {
             match self.undo_log.pop().unwrap() {
                 OpenSnapshot => {
                     // This indicates a failure to obey the stack discipline.
-                    fail!("Cannot rollback an uncommitted snapshot");
+                    panic!("Cannot rollback an uncommitted snapshot");
                 }
 
                 CommittedSnapshot => {