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 2b84e44 commit ea9d5c9Copy full SHA for ea9d5c9
src/liballoc/heap.rs
@@ -142,14 +142,13 @@ mod imp {
142
}
143
144
#[inline]
145
- pub unsafe fn reallocate_inplace(ptr: *mut u8, old_size: uint, size: uint,
146
- align: uint) -> uint {
147
- 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)
148
149
150
151
- pub unsafe fn deallocate(ptr: *mut u8, old_size: uint, align: uint) {
152
- 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)
153
154
155
0 commit comments