diff options
| author | David Tolnay <dtolnay@gmail.com> | 2023-08-06 07:20:31 -0700 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2023-08-06 07:36:05 -0700 |
| commit | 704aa56ba0f3b42499f97b14b2f7a2bfb0761b0e (patch) | |
| tree | 43bb98183e51037ea2201f70b24044698454b33c /compiler/rustc_codegen_cranelift/src | |
| parent | bc720ad36b74c428b210c71c66e4490cec12b023 (diff) | |
| download | rust-704aa56ba0f3b42499f97b14b2f7a2bfb0761b0e.tar.gz rust-704aa56ba0f3b42499f97b14b2f7a2bfb0761b0e.zip | |
Generate better function argument names in global_allocator expansion
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/allocator.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/allocator.rs b/compiler/rustc_codegen_cranelift/src/allocator.rs index e92280b26b0..4e4c595de82 100644 --- a/compiler/rustc_codegen_cranelift/src/allocator.rs +++ b/compiler/rustc_codegen_cranelift/src/allocator.rs @@ -39,8 +39,8 @@ fn codegen_inner( if kind == AllocatorKind::Default { for method in ALLOCATOR_METHODS { let mut arg_tys = 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 => { arg_tys.push(usize_ty); // size arg_tys.push(usize_ty); // align |
