We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c93a5c commit 08504e0Copy full SHA for 08504e0
src/liballoc/heap.rs
@@ -141,14 +141,13 @@ mod imp {
141
}
142
143
#[inline]
144
- pub unsafe fn reallocate_inplace(ptr: *mut u8, old_size: uint, size: uint,
145
- align: uint) -> uint {
146
- rust_reallocate_inplace(ptr, old_size, size, align)
+ pub unsafe fn deallocate(ptr: *mut u8, old_size: uint, align: uint) {
+ rust_deallocate(ptr, old_size, align)
147
148
149
150
- pub unsafe fn deallocate(ptr: *mut u8, old_size: uint, align: uint) {
151
- rust_deallocate(ptr, old_size, align)
+ pub unsafe fn reallocate(ptr: *mut u8, old_size: uint, size: uint, align: uint) -> *mut u8 {
+ rust_reallocate(ptr, old_size, size, align)
152
153
154
0 commit comments