[INFO] cloning repository https://github.com/Failte21/krpsim_check [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Failte21/krpsim_check" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFailte21%2Fkrpsim_check", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFailte21%2Fkrpsim_check'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 689c0ed06ca277ef64a2852fed3268cd954258e1 [INFO] testing Failte21/krpsim_check against beta-2021-09-08 for beta-1.56-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFailte21%2Fkrpsim_check" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Failte21/krpsim_check on toolchain beta-2021-09-08 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Failte21/krpsim_check [INFO] finished tweaking git repo https://github.com/Failte21/krpsim_check [INFO] tweaked toml for git repo https://github.com/Failte21/krpsim_check written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/Failte21/krpsim_check already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "+beta-2021-09-08" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aa41f7a99dc05aec0e7ad77df4e5f23ffebfb08271e25e3b464058d31b554074 [INFO] running `Command { std: "docker" "start" "-a" "aa41f7a99dc05aec0e7ad77df4e5f23ffebfb08271e25e3b464058d31b554074", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aa41f7a99dc05aec0e7ad77df4e5f23ffebfb08271e25e3b464058d31b554074", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa41f7a99dc05aec0e7ad77df4e5f23ffebfb08271e25e3b464058d31b554074", kill_on_drop: false }` [INFO] [stdout] aa41f7a99dc05aec0e7ad77df4e5f23ffebfb08271e25e3b464058d31b554074 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "+beta-2021-09-08" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3019fbcc4bb25fcf0e30ac4883682cdc661e4603550a40e055275eb1fc71087e [INFO] running `Command { std: "docker" "start" "-a" "3019fbcc4bb25fcf0e30ac4883682cdc661e4603550a40e055275eb1fc71087e", kill_on_drop: false }` [INFO] [stderr] Compiling krpsim_check v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.33s [INFO] running `Command { std: "docker" "inspect" "3019fbcc4bb25fcf0e30ac4883682cdc661e4603550a40e055275eb1fc71087e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3019fbcc4bb25fcf0e30ac4883682cdc661e4603550a40e055275eb1fc71087e", kill_on_drop: false }` [INFO] [stdout] 3019fbcc4bb25fcf0e30ac4883682cdc661e4603550a40e055275eb1fc71087e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "+beta-2021-09-08" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9fa35bd40dccb19643a034e941dc42bfe1772955d1f4364493e39c74479f514c [INFO] running `Command { std: "docker" "start" "-a" "9fa35bd40dccb19643a034e941dc42bfe1772955d1f4364493e39c74479f514c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling krpsim_check v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: cannot borrow `inventory` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/check.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 11 | match inventory.get(&resource_needed.name) { [INFO] [stdout] | --------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 16 | inventory.insert(resource_needed.name.clone(), n_items - resource_needed.quantity); [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here ------- immutable borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `inventory` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/check.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | match inventory.get(&resource_created.name) { [INFO] [stdout] | --------- immutable borrow occurs here [INFO] [stdout] 25 | Some (n_items) => { [INFO] [stdout] 26 | inventory.insert(resource_created.name.clone(), n_items + resource_created.quantity); [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here ------- immutable borrow later used here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `display_inventory` [INFO] [stdout] --> src/ast.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn display_inventory(inventory: &Inventory) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 9.96s [INFO] running `Command { std: "docker" "inspect" "9fa35bd40dccb19643a034e941dc42bfe1772955d1f4364493e39c74479f514c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fa35bd40dccb19643a034e941dc42bfe1772955d1f4364493e39c74479f514c", kill_on_drop: false }` [INFO] [stdout] 9fa35bd40dccb19643a034e941dc42bfe1772955d1f4364493e39c74479f514c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "+beta-2021-09-08" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ac09086762b6faad07c9c9a142595e54e8a4cd3ce7db4767425a94a0141797e2 [INFO] running `Command { std: "docker" "start" "-a" "ac09086762b6faad07c9c9a142595e54e8a4cd3ce7db4767425a94a0141797e2", kill_on_drop: false }` [INFO] [stderr] warning: cannot borrow `inventory` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/check.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 11 | match inventory.get(&resource_needed.name) { [INFO] [stderr] | --------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 16 | inventory.insert(resource_needed.name.clone(), n_items - resource_needed.quantity); [INFO] [stderr] | ^^^^^^^^^ mutable borrow occurs here ------- immutable borrow later used here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: cannot borrow `inventory` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/check.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 24 | match inventory.get(&resource_created.name) { [INFO] [stderr] | --------- immutable borrow occurs here [INFO] [stderr] 25 | Some (n_items) => { [INFO] [stderr] 26 | inventory.insert(resource_created.name.clone(), n_items + resource_created.quantity); [INFO] [stderr] | ^^^^^^^^^ mutable borrow occurs here ------- immutable borrow later used here [INFO] [stderr] | [INFO] [stderr] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stderr] = note: for more information, see issue #59159 [INFO] [stderr] [INFO] [stderr] warning: function is never used: `display_inventory` [INFO] [stderr] --> src/ast.rs:26:8 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn display_inventory(inventory: &Inventory) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `krpsim_check` (lib test) generated 3 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/krpsim_check-c9f34428b528980d) [INFO] [stdout] running 1 test [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/krpsim_check-ec7525c3544c2eee) [INFO] [stdout] test check_tests::happy_path ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests krpsim_check [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ac09086762b6faad07c9c9a142595e54e8a4cd3ce7db4767425a94a0141797e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac09086762b6faad07c9c9a142595e54e8a4cd3ce7db4767425a94a0141797e2", kill_on_drop: false }` [INFO] [stdout] ac09086762b6faad07c9c9a142595e54e8a4cd3ce7db4767425a94a0141797e2