about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-12-30 22:49:26 +0900
committerGitHub <noreply@github.com>2020-12-30 22:49:26 +0900
commit41fa0dba2767d62fc1b5f66e1b3bdf7d4a1c6d2f (patch)
tree17587cb0c791e4db06ea92113f0b56846667b636 /compiler/rustc_codegen_ssa/src
parent07083739fb2b971fa174d5443ab3e675d363fa1a (diff)
parentbdc9291ed9dd0501a0d25a87463212ad5ec5d87a (diff)
downloadrust-41fa0dba2767d62fc1b5f66e1b3bdf7d4a1c6d2f.tar.gz
rust-41fa0dba2767d62fc1b5f66e1b3bdf7d4a1c6d2f.zip
Rollup merge of #80509 - matthiaskrgr:ptr_arg, r=varkor
where possible, pass slices instead of &Vec or &String (clippy::ptr_arg)
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/mir/block.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/block.rs b/compiler/rustc_codegen_ssa/src/mir/block.rs
index ce56f163549..ecac05fd955 100644
--- a/compiler/rustc_codegen_ssa/src/mir/block.rs
+++ b/compiler/rustc_codegen_ssa/src/mir/block.rs
@@ -522,7 +522,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
         mut bx: Bx,
         terminator: &mir::Terminator<'tcx>,
         func: &mir::Operand<'tcx>,
-        args: &Vec<mir::Operand<'tcx>>,
+        args: &[mir::Operand<'tcx>],
         destination: &Option<(mir::Place<'tcx>, mir::BasicBlock)>,
         cleanup: Option<mir::BasicBlock>,
         fn_span: Span,