diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-30 16:25:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-30 16:25:47 +0200 |
| commit | 9b10f985f91db1ac8fde12d3774e2795286ce391 (patch) | |
| tree | 61821fb5f59d8820a18940333defd49b9f220ee7 | |
| parent | eae208eef672118ff4b4fda92f695c3e78b5ca55 (diff) | |
| parent | 489925fcaf94fa194e213954d4e9860f2ddf7ba5 (diff) | |
| download | rust-9b10f985f91db1ac8fde12d3774e2795286ce391.tar.gz rust-9b10f985f91db1ac8fde12d3774e2795286ce391.zip | |
Rollup merge of #110996 - loongarch-rs:fix-bootstrap, r=ozkanonur
bootstrap: Fix compile error: unused-mut
Compile errors:
```
Compiling bootstrap v0.0.0 (/home/hev/rust/rust/src/bootstrap)
error: variable does not need to be mutable
--> config.rs:1312:17
|
1312 | let mut build_target = config
| ----^^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `-D unused-mut` implied by `-D warnings`
error: could not compile `bootstrap` (lib) due to previous error
```
| -rw-r--r-- | src/bootstrap/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index ca6dcaf4957..4ef95b3370f 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -1309,7 +1309,7 @@ impl Config { if config.llvm_from_ci { let triple = &config.build.triple; let ci_llvm_bin = config.ci_llvm_root().join("bin"); - let mut build_target = config + let build_target = config .target_config .entry(config.build) .or_insert_with(|| Target::from_triple(&triple)); |
