[INFO] cloning repository https://github.com/hasanmubarok9/bank
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hasanmubarok9/bank" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhasanmubarok9%2Fbank", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhasanmubarok9%2Fbank'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 05d79cc17804aba0567c5f9ee0bf172a4b99d825
[INFO] checking hasanmubarok9/bank against fa2e5c134b37481738d46002dfb836237332dd9a for pr-164277
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhasanmubarok9%2Fbank" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/hasanmubarok9/bank
[INFO] finished tweaking git repo https://github.com/hasanmubarok9/bank
[INFO] tweaked toml for git repo https://github.com/hasanmubarok9/bank written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/hasanmubarok9/bank on toolchain fa2e5c134b37481738d46002dfb836237332dd9a
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fa2e5c134b37481738d46002dfb836237332dd9a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/hasanmubarok9/bank already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fa2e5c134b37481738d46002dfb836237332dd9a" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c0af3998e971868164375a7dfb646c9933ddd1a3bdb00fa2041266763dc1eeab" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] e6f6b5ca0540e3eb976e340e46a5688094a98e00716cf310a091b2831718137c
[INFO] running `Command { std: "docker" "start" "e6f6b5ca0540e3eb976e340e46a5688094a98e00716cf310a091b2831718137c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e6f6b5ca0540e3eb976e340e46a5688094a98e00716cf310a091b2831718137c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e6f6b5ca0540e3eb976e340e46a5688094a98e00716cf310a091b2831718137c" "/opt/rustwide/cargo-home/bin/cargo" "+fa2e5c134b37481738d46002dfb836237332dd9a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e6f6b5ca0540e3eb976e340e46a5688094a98e00716cf310a091b2831718137c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e6f6b5ca0540e3eb976e340e46a5688094a98e00716cf310a091b2831718137c" "/opt/rustwide/cargo-home/bin/cargo" "+fa2e5c134b37481738d46002dfb836237332dd9a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking bank v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0382]: use of moved value: `account`
[INFO] [stdout]   --> src/main.rs:41:19
[INFO] [stdout]    |
[INFO] [stdout] 37 |     let account = Account::new(1, String::from("Alice"));
[INFO] [stdout]    |         ------- move occurs because `account` has type `Account`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 40 |     print_account(account);
[INFO] [stdout]    |                   ------- value moved here
[INFO] [stdout] 41 |     print_account(account);
[INFO] [stdout]    |                   ^^^^^^^ value used here after move
[INFO] [stdout]    |
[INFO] [stdout] note: consider changing this parameter type in function `print_account` to borrow instead if owning the value isn't necessary
[INFO] [stdout]   --> src/main.rs:31:27
[INFO] [stdout]    |
[INFO] [stdout] 31 | fn print_account(account: Account) {
[INFO] [stdout]    |    -------------          ^^^^^^^ this parameter takes ownership of the value
[INFO] [stdout]    |    |
[INFO] [stdout]    |    in this function
[INFO] [stdout] note: if `Account` implemented `Clone`, you could clone the value
[INFO] [stdout]   --> src/main.rs:2:1
[INFO] [stdout]    |
[INFO] [stdout]  2 | struct Account {
[INFO] [stdout]    | ^^^^^^^^^^^^^^ consider implementing `Clone` for this type
[INFO] [stdout] ...
[INFO] [stdout] 40 |     print_account(account);
[INFO] [stdout]    |                   ------- you could clone this value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bank`
[INFO] [stdout]   --> src/main.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let bank = Bank::new();
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_bank`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `account`
[INFO] [stdout]   --> src/main.rs:41:19
[INFO] [stdout]    |
[INFO] [stdout] 37 |     let account = Account::new(1, String::from("Alice"));
[INFO] [stdout]    |         ------- move occurs because `account` has type `Account`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 40 |     print_account(account);
[INFO] [stdout]    |                   ------- value moved here
[INFO] [stdout] 41 |     print_account(account);
[INFO] [stdout]    |                   ^^^^^^^ value used here after move
[INFO] [stdout]    |
[INFO] [stdout] note: consider changing this parameter type in function `print_account` to borrow instead if owning the value isn't necessary
[INFO] [stdout]   --> src/main.rs:31:27
[INFO] [stdout]    |
[INFO] [stdout] 31 | fn print_account(account: Account) {
[INFO] [stdout]    |    -------------          ^^^^^^^ this parameter takes ownership of the value
[INFO] [stdout]    |    |
[INFO] [stdout]    |    in this function
[INFO] [stdout] note: if `Account` implemented `Clone`, you could clone the value
[INFO] [stdout]   --> src/main.rs:2:1
[INFO] [stdout]    |
[INFO] [stdout]  2 | struct Account {
[INFO] [stdout]    | ^^^^^^^^^^^^^^ consider implementing `Clone` for this type
[INFO] [stdout] ...
[INFO] [stdout] 40 |     print_account(account);
[INFO] [stdout]    |                   ------- you could clone this value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bank`
[INFO] [stdout]   --> src/main.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let bank = Bank::new();
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_bank`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bank` (bin "bank") due to 1 previous error; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `bank` (bin "bank" test) due to 1 previous error; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "e6f6b5ca0540e3eb976e340e46a5688094a98e00716cf310a091b2831718137c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e6f6b5ca0540e3eb976e340e46a5688094a98e00716cf310a091b2831718137c", kill_on_drop: false }`
[INFO] [stdout] e6f6b5ca0540e3eb976e340e46a5688094a98e00716cf310a091b2831718137c
