@@ -109,7 +109,7 @@ use ops::Drop;
109109use option:: { None , Option , Some } ;
110110use ptr:: RawPtr ;
111111use ptr;
112- use rt:: heap:: { exchange_malloc, exchange_free } ;
112+ use rt:: heap:: { exchange_malloc, deallocate } ;
113113use unstable:: finally:: try_finally;
114114use vec:: Vec ;
115115
@@ -330,7 +330,7 @@ impl<'a, T: Clone> CloneableVector<T> for &'a [T] {
330330 ptr:: read ( & * p. offset ( j) ) ;
331331 }
332332 // FIXME: #13994 (should pass align and size here)
333- exchange_free ( ret as * mut u8 , 0 , 8 ) ;
333+ deallocate ( ret as * mut u8 , 0 , 8 ) ;
334334 } ) ;
335335 mem:: transmute ( ret)
336336 }
@@ -377,7 +377,7 @@ impl<'a, T: Clone> CloneableVector<T> for &'a [T] {
377377 ptr:: read ( & * p. offset ( j) ) ;
378378 }
379379 // FIXME: #13994 (should pass align and size here)
380- exchange_free ( ret as * mut u8 , 0 , 8 ) ;
380+ deallocate ( ret as * mut u8 , 0 , 8 ) ;
381381 } ) ;
382382 mem:: transmute ( ret)
383383 }
@@ -817,7 +817,7 @@ impl<T> Drop for MoveItems<T> {
817817 for _x in * self { }
818818 unsafe {
819819 // FIXME: #13994 (should pass align and size here)
820- exchange_free ( self . allocation , 0 , 8 )
820+ deallocate ( self . allocation , 0 , 8 )
821821 }
822822 }
823823}
0 commit comments