@@ -109,7 +109,7 @@ use ops::Drop;
109
109
use option:: { None , Option , Some } ;
110
110
use ptr:: RawPtr ;
111
111
use ptr;
112
- use rt:: heap:: { exchange_malloc, exchange_free } ;
112
+ use rt:: heap:: { exchange_malloc, deallocate } ;
113
113
use unstable:: finally:: try_finally;
114
114
use vec:: Vec ;
115
115
@@ -330,7 +330,7 @@ impl<'a, T: Clone> CloneableVector<T> for &'a [T] {
330
330
ptr:: read ( & * p. offset ( j) ) ;
331
331
}
332
332
// 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 ) ;
334
334
} ) ;
335
335
mem:: transmute ( ret)
336
336
}
@@ -377,7 +377,7 @@ impl<'a, T: Clone> CloneableVector<T> for &'a [T] {
377
377
ptr:: read ( & * p. offset ( j) ) ;
378
378
}
379
379
// 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 ) ;
381
381
} ) ;
382
382
mem:: transmute ( ret)
383
383
}
@@ -817,7 +817,7 @@ impl<T> Drop for MoveItems<T> {
817
817
for _x in * self { }
818
818
unsafe {
819
819
// FIXME: #13994 (should pass align and size here)
820
- exchange_free ( self . allocation , 0 , 8 )
820
+ deallocate ( self . allocation , 0 , 8 )
821
821
}
822
822
}
823
823
}
0 commit comments