Generate better function argument names in global_allocator expansion
This commit is contained in:
parent
bc720ad36b
commit
704aa56ba0
5 changed files with 37 additions and 30 deletions
|
@ -34,8 +34,8 @@ pub(crate) unsafe fn codegen(
|
|||
if kind == AllocatorKind::Default {
|
||||
for method in ALLOCATOR_METHODS {
|
||||
let mut args = Vec::with_capacity(method.inputs.len());
|
||||
for ty in method.inputs.iter() {
|
||||
match *ty {
|
||||
for input in method.inputs.iter() {
|
||||
match input.ty {
|
||||
AllocatorTy::Layout => {
|
||||
args.push(usize); // size
|
||||
args.push(usize); // align
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue