[INFO] cloning repository https://github.com/rusty-peep/Activity-2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rusty-peep/Activity-2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frusty-peep%2FActivity-2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frusty-peep%2FActivity-2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b2923ed0920b8f08ed0cfa89d249caabb999ce7a [INFO] checking rusty-peep/Activity-2 against master#f8f6997469237299c1d60814c7b9828602a1f8e4 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frusty-peep%2FActivity-2" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rusty-peep/Activity-2 [INFO] finished tweaking git repo https://github.com/rusty-peep/Activity-2 [INFO] tweaked toml for git repo https://github.com/rusty-peep/Activity-2 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rusty-peep/Activity-2 on toolchain f8f6997469237299c1d60814c7b9828602a1f8e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rusty-peep/Activity-2 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" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1c84173d323f7958611652839e17149823c222835661223cd1aeec15791bc4c7 [INFO] running `Command { std: "docker" "start" "-a" "1c84173d323f7958611652839e17149823c222835661223cd1aeec15791bc4c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1c84173d323f7958611652839e17149823c222835661223cd1aeec15791bc4c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c84173d323f7958611652839e17149823c222835661223cd1aeec15791bc4c7", kill_on_drop: false }` [INFO] [stdout] 1c84173d323f7958611652839e17149823c222835661223cd1aeec15791bc4c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 42f64ad01020322a09ec90cda01c5e72b77a89fc4462ab751999299458565022 [INFO] running `Command { std: "docker" "start" "-a" "42f64ad01020322a09ec90cda01c5e72b77a89fc4462ab751999299458565022", kill_on_drop: false }` [INFO] [stderr] Checking Activity-2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tests.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `account_number` [INFO] [stdout] --> src/main.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(account_number: u32, initial_balance: f64) -> BankAccount { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_account_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_balance` [INFO] [stdout] --> src/main.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(account_number: u32, initial_balance: f64) -> BankAccount { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/main.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | fn deposit(self, amount: f64) -> BankAccount { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/main.rs:25:23 [INFO] [stdout] | [INFO] [stdout] 25 | fn withdraw(self, amount: f64) -> BankAccount { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_account` [INFO] [stdout] --> src/main.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | fn transfer(self, to_account: BankAccount, amount: f64) -> (BankAccount, BankAccount) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/main.rs:30:48 [INFO] [stdout] | [INFO] [stdout] 30 | fn transfer(self, to_account: BankAccount, amount: f64) -> (BankAccount, BankAccount) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `account_number` is never read [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct BankAccount { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 4 | account_number: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `account_number` [INFO] [stdout] --> src/main.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(account_number: u32, initial_balance: f64) -> BankAccount { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_account_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_balance` [INFO] [stdout] --> src/main.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(account_number: u32, initial_balance: f64) -> BankAccount { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_balance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/main.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | fn deposit(self, amount: f64) -> BankAccount { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/main.rs:25:23 [INFO] [stdout] | [INFO] [stdout] 25 | fn withdraw(self, amount: f64) -> BankAccount { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to_account` [INFO] [stdout] --> src/main.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 30 | fn transfer(self, to_account: BankAccount, amount: f64) -> (BankAccount, BankAccount) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_to_account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/main.rs:30:48 [INFO] [stdout] | [INFO] [stdout] 30 | fn transfer(self, to_account: BankAccount, amount: f64) -> (BankAccount, BankAccount) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] running `Command { std: "docker" "inspect" "42f64ad01020322a09ec90cda01c5e72b77a89fc4462ab751999299458565022", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42f64ad01020322a09ec90cda01c5e72b77a89fc4462ab751999299458565022", kill_on_drop: false }` [INFO] [stdout] 42f64ad01020322a09ec90cda01c5e72b77a89fc4462ab751999299458565022