remove the unused exchange_malloc align parameter
`malloc` already returns memory correctly aligned for every possible type in standard C, and that's enough for all types in Rust too
This commit is contained in:
parent
5aa0ca9b2e
commit
a4af0960bd
2 changed files with 3 additions and 4 deletions
|
|
@ -76,11 +76,11 @@ pub unsafe fn exchange_malloc(td: *c_char, size: uintptr_t) -> *c_char {
|
|||
box as *c_char
|
||||
}
|
||||
|
||||
// FIXME #4942: Make these signatures agree with exchange_alloc's signatures
|
||||
/// The allocator for unique pointers without contained managed pointers.
|
||||
#[cfg(not(stage0), not(test))]
|
||||
#[lang="exchange_malloc"]
|
||||
#[inline]
|
||||
pub unsafe fn exchange_malloc(_align: u32, size: uintptr_t) -> *c_char {
|
||||
pub unsafe fn exchange_malloc(size: uintptr_t) -> *c_char {
|
||||
malloc_raw(size as uint) as *c_char
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue