Skip to content

Commit fe6a477

Browse files
committed
Generate better function argument names in global_allocator expansion
1 parent 7ebcd4d commit fe6a477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/allocator.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ pub(crate) unsafe fn codegen(tcx: TyCtxt<'_>, mods: &mut GccContext, _module_nam
2727
if kind == AllocatorKind::Default {
2828
for method in ALLOCATOR_METHODS {
2929
let mut types = Vec::with_capacity(method.inputs.len());
30-
for ty in method.inputs.iter() {
31-
match *ty {
30+
for input in method.inputs.iter() {
31+
match input.ty {
3232
AllocatorTy::Layout => {
3333
types.push(usize);
3434
types.push(usize);

0 commit comments

Comments
 (0)