diff options
| author | kennytm <kennytm@gmail.com> | 2018-10-26 18:25:12 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-10-26 23:06:49 +0800 |
| commit | 626b49666fd36c78ab401c4066655c6eb2b51142 (patch) | |
| tree | aa29d97aee9b08161c240158bb2768a9acbd7baf /src/bootstrap | |
| parent | 9c55a4a8139bce312b832294a764012816e4fc44 (diff) | |
| parent | 3878d24ef6922c133539fe67e0c907166f6261cb (diff) | |
| download | rust-626b49666fd36c78ab401c4066655c6eb2b51142.tar.gz rust-626b49666fd36c78ab401c4066655c6eb2b51142.zip | |
Rollup merge of #55358 - sinkuu:redundant_clone2, r=estebank
Remove redundant clone (2)
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/dist.rs | 4 | ||||
| -rw-r--r-- | src/bootstrap/test.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 4de899ee2d5..fea6302d0a1 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -1447,8 +1447,8 @@ impl Step for Extended { tarballs.extend(rls_installer.clone()); tarballs.extend(clippy_installer.clone()); tarballs.extend(rustfmt_installer.clone()); - tarballs.extend(llvm_tools_installer.clone()); - tarballs.extend(lldb_installer.clone()); + tarballs.extend(llvm_tools_installer); + tarballs.extend(lldb_installer); tarballs.push(analysis_installer); tarballs.push(std_installer); if builder.config.docs { diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index fe04a91011e..f6032eb9931 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -1052,7 +1052,7 @@ impl Step for Compiletest { let hostflags = flags.clone(); cmd.arg("--host-rustcflags").arg(hostflags.join(" ")); - let mut targetflags = flags.clone(); + let mut targetflags = flags; targetflags.push(format!( "-Lnative={}", builder.test_helpers_out(target).display() |
