about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/allocator.rs
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2023-08-06 07:20:31 -0700
committerDavid Tolnay <dtolnay@gmail.com>2023-08-06 07:36:05 -0700
commit704aa56ba0f3b42499f97b14b2f7a2bfb0761b0e (patch)
tree43bb98183e51037ea2201f70b24044698454b33c /compiler/rustc_codegen_llvm/src/allocator.rs
parentbc720ad36b74c428b210c71c66e4490cec12b023 (diff)
downloadrust-704aa56ba0f3b42499f97b14b2f7a2bfb0761b0e.tar.gz
rust-704aa56ba0f3b42499f97b14b2f7a2bfb0761b0e.zip
Generate better function argument names in global_allocator expansion
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/allocator.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/allocator.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/allocator.rs b/compiler/rustc_codegen_llvm/src/allocator.rs
index ca123334fca..8bb93025c45 100644
--- a/compiler/rustc_codegen_llvm/src/allocator.rs
+++ b/compiler/rustc_codegen_llvm/src/allocator.rs
@@ -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