about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/asm.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-10 22:40:36 +0100
committerGitHub <noreply@github.com>2021-12-10 22:40:36 +0100
commit40988591ecd806fbbfe61db8b5cd05cff33e22d6 (patch)
tree5c5e486f63cb5c203d88fb5274b1639abf7a986f /compiler/rustc_codegen_llvm/src/asm.rs
parent6cfe9af6a074b842198176d21170e49ee0cc6add (diff)
parent15de4cbc4b49be2fbf082fe02f877d5f774569a5 (diff)
downloadrust-40988591ecd806fbbfe61db8b5cd05cff33e22d6.tar.gz
rust-40988591ecd806fbbfe61db8b5cd05cff33e22d6.zip
Rollup merge of #91625 - est31:remove_indexes, r=oli-obk
Remove redundant [..]s
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/asm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/asm.rs b/compiler/rustc_codegen_llvm/src/asm.rs
index f3c3a174908..ee31f2e60a9 100644
--- a/compiler/rustc_codegen_llvm/src/asm.rs
+++ b/compiler/rustc_codegen_llvm/src/asm.rs
@@ -477,7 +477,7 @@ pub(crate) fn inline_asm_call(
         .collect::<Vec<_>>();
 
     debug!("Asm Output Type: {:?}", output);
-    let fty = bx.cx.type_func(&argtys[..], output);
+    let fty = bx.cx.type_func(&argtys, output);
     unsafe {
         // Ask LLVM to verify that the constraints are well-formed.
         let constraints_ok = llvm::LLVMRustInlineAsmVerify(fty, cons.as_ptr().cast(), cons.len());