about summary refs log tree commit diff
path: root/src/libstd/slice.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-11 17:51:41 -0700
committerbors <bors@rust-lang.org>2014-05-11 17:51:41 -0700
commit72fc4a5eb72b8ba96dba66400c7eecac93b0b252 (patch)
treeb9bea326ff923ff3f5f54e8c57e4350203add0fb /src/libstd/slice.rs
parentb40c3e9d3dd0a6be4d048389d33435f82205d376 (diff)
parentf1735cefcfdee5260ea6961cf785f545a340ff85 (diff)
downloadrust-72fc4a5eb72b8ba96dba66400c7eecac93b0b252.tar.gz
rust-72fc4a5eb72b8ba96dba66400c7eecac93b0b252.zip
auto merge of #14119 : thestinger/rust/heap, r=cmr
Diffstat (limited to 'src/libstd/slice.rs')
-rw-r--r--src/libstd/slice.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/slice.rs b/src/libstd/slice.rs
index b0868dd0daf..3c0d0efa766 100644
--- a/src/libstd/slice.rs
+++ b/src/libstd/slice.rs
@@ -109,7 +109,7 @@ use ops::Drop;
 use option::{None, Option, Some};
 use ptr::RawPtr;
 use ptr;
-use rt::heap::{exchange_malloc, exchange_free};
+use rt::heap::{exchange_malloc, deallocate};
 use unstable::finally::try_finally;
 use vec::Vec;
 
@@ -330,7 +330,7 @@ impl<'a, T: Clone> CloneableVector<T> for &'a [T] {
                         ptr::read(&*p.offset(j));
                     }
                     // FIXME: #13994 (should pass align and size here)
-                    exchange_free(ret as *mut u8, 0, 8);
+                    deallocate(ret as *mut u8, 0, 8);
                 });
             mem::transmute(ret)
         }
@@ -377,7 +377,7 @@ impl<'a, T: Clone> CloneableVector<T> for &'a [T] {
                         ptr::read(&*p.offset(j));
                     }
                     // FIXME: #13994 (should pass align and size here)
-                    exchange_free(ret as *mut u8, 0, 8);
+                    deallocate(ret as *mut u8, 0, 8);
                 });
             mem::transmute(ret)
         }
@@ -817,7 +817,7 @@ impl<T> Drop for MoveItems<T> {
         for _x in *self {}
         unsafe {
             // FIXME: #13994 (should pass align and size here)
-            exchange_free(self.allocation, 0, 8)
+            deallocate(self.allocation, 0, 8)
         }
     }
 }