[INFO] cloning repository https://github.com/jhessin/rust-calc
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jhessin/rust-calc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjhessin%2Frust-calc", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjhessin%2Frust-calc'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c4e2527f1814c2879c0425c07b9c6e6983f8ab76
[INFO] checking jhessin/rust-calc against 1.55.0 for beta-1.56-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjhessin%2Frust-calc" "/workspace/builds/worker-75/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-75/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/jhessin/rust-calc on toolchain 1.55.0
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/jhessin/rust-calc
[INFO] finished tweaking git repo https://github.com/jhessin/rust-calc
[INFO] tweaked toml for git repo https://github.com/jhessin/rust-calc written to /workspace/builds/worker-75/source/Cargo.toml
[INFO] crate git repo https://github.com/jhessin/rust-calc already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded ncurses v5.101.0
[INFO] [stderr]   Downloaded youchoose v0.1.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-75/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-75/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 18c008cc73ab55e31e871d71bbaeacb777225f5575a3dd9db5d44ec7e08c9413
[INFO] running `Command { std: "docker" "start" "-a" "18c008cc73ab55e31e871d71bbaeacb777225f5575a3dd9db5d44ec7e08c9413", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "18c008cc73ab55e31e871d71bbaeacb777225f5575a3dd9db5d44ec7e08c9413", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "18c008cc73ab55e31e871d71bbaeacb777225f5575a3dd9db5d44ec7e08c9413", kill_on_drop: false }`
[INFO] [stdout] 18c008cc73ab55e31e871d71bbaeacb777225f5575a3dd9db5d44ec7e08c9413
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-75/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-75/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 18305704d03b30827d47cce5c4e2a48a6dcebefdc6af410145b394b8f0c48ad5
[INFO] running `Command { std: "docker" "start" "-a" "18305704d03b30827d47cce5c4e2a48a6dcebefdc6af410145b394b8f0c48ad5", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling cc v1.0.70
[INFO] [stderr]    Compiling pkg-config v0.3.20
[INFO] [stderr]    Compiling libc v0.2.103
[INFO] [stderr]    Compiling ncurses v5.101.0
[INFO] [stderr]     Checking youchoose v0.1.1
[INFO] [stderr]     Checking rust-calc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0594]: cannot assign to data in an index of `HashMap<i32, f64>`
[INFO] [stdout]   --> src/report_wages/wage_calculator.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 |     self.wages[name][&day] += value;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout]    = help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `HashMap<i32, f64>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-calc` due to 5 previous errors; 1 warning emitted
[INFO] [stdout] error[E0594]: cannot assign to data in an index of `HashMap<i32, f64>`
[INFO] [stdout]   --> src/report_wages/wage_calculator.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 |     self.wages[name][&day] += value;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign
[INFO] [stdout]    |
[INFO] [stdout]    = help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `HashMap<i32, f64>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0507]: cannot move out of index of `HashMap<String, HashMap<i32, f64>>`
[INFO] [stdout]   --> src/report_wages/wage_calculator.rs:23:25
[INFO] [stdout]    |
[INFO] [stdout] 23 |       for (_, value) in self.wages[name].into_iter() {
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^ move occurs because value has type `HashMap<i32, f64>`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/report_wages/wage_calculator.rs:35:13
[INFO] [stdout]    |
[INFO] [stdout] 35 |         let mut entry = result.entry(key).or_insert(0.0);
[INFO] [stdout]    |             ----^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of index of `HashMap<String, HashMap<i32, f64>>`
[INFO] [stdout]   --> src/report_wages/wage_calculator.rs:23:25
[INFO] [stdout]    |
[INFO] [stdout] 23 |       for (_, value) in self.wages[name].into_iter() {
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^ move occurs because value has type `HashMap<i32, f64>`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/report_wages/wage_calculator.rs:35:13
[INFO] [stdout]    |
[INFO] [stdout] 35 |         let mut entry = result.entry(key).or_insert(0.0);
[INFO] [stdout]    |             ----^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.wages` which is behind a shared reference
[INFO] [stdout]   --> src/report_wages/wage_calculator.rs:32:26
[INFO] [stdout]    |
[INFO] [stdout] 32 |     for (name, wages) in self.wages.into_iter() {
[INFO] [stdout]    |                          ^^^^^^^^^^ move occurs because `self.wages` has type `HashMap<String, HashMap<i32, f64>>`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `self.wages` which is behind a shared reference
[INFO] [stdout]   --> src/report_wages/wage_calculator.rs:32:26
[INFO] [stdout]    |
[INFO] [stdout] 32 |     for (name, wages) in self.wages.into_iter() {
[INFO] [stdout]    |                          ^^^^^^^^^^ move occurs because `self.wages` has type `HashMap<String, HashMap<i32, f64>>`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing temporary value
[INFO] [stdout]   --> src/report_wages/wage_calculator.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let key = &format!("{}-{}", name, day);
[INFO] [stdout]    |                    --------------------------- temporary value created here
[INFO] [stdout] ...
[INFO] [stdout] 39 |     result
[INFO] [stdout]    |     ^^^^^^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing temporary value
[INFO] [stdout]   --> src/report_wages/wage_calculator.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let key = &format!("{}-{}", name, day);
[INFO] [stdout]    |                    --------------------------- temporary value created here
[INFO] [stdout] ...
[INFO] [stdout] 39 |     result
[INFO] [stdout]    |     ^^^^^^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0507, E0515, E0594.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0507`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0507, E0515, E0594.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0507`.
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "18305704d03b30827d47cce5c4e2a48a6dcebefdc6af410145b394b8f0c48ad5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "18305704d03b30827d47cce5c4e2a48a6dcebefdc6af410145b394b8f0c48ad5", kill_on_drop: false }`
[INFO] [stdout] 18305704d03b30827d47cce5c4e2a48a6dcebefdc6af410145b394b8f0c48ad5
