[INFO] cloning repository https://github.com/madd86/algorithms_in_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/madd86/algorithms_in_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmadd86%2Falgorithms_in_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmadd86%2Falgorithms_in_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2beac3ab02f8cf76cd8025be98bcb90bd0e4f7b7 [INFO] testing madd86/algorithms_in_rust against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmadd86%2Falgorithms_in_rust" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/madd86/algorithms_in_rust on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/madd86/algorithms_in_rust [INFO] finished tweaking git repo https://github.com/madd86/algorithms_in_rust [INFO] tweaked toml for git repo https://github.com/madd86/algorithms_in_rust written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/madd86/algorithms_in_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e6d317ef9495ec2c469900e66f69eff8efb5271acfd91cf57c136ce51bebfe1 [INFO] running `Command { std: "docker" "start" "-a" "3e6d317ef9495ec2c469900e66f69eff8efb5271acfd91cf57c136ce51bebfe1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e6d317ef9495ec2c469900e66f69eff8efb5271acfd91cf57c136ce51bebfe1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e6d317ef9495ec2c469900e66f69eff8efb5271acfd91cf57c136ce51bebfe1", kill_on_drop: false }` [INFO] [stdout] 3e6d317ef9495ec2c469900e66f69eff8efb5271acfd91cf57c136ce51bebfe1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 023be9f7ae7e5695a92c07167a53ce80ee1f6c589815deb8a93c1d89e527c5e0 [INFO] running `Command { std: "docker" "start" "-a" "023be9f7ae7e5695a92c07167a53ce80ee1f6c589815deb8a93c1d89e527c5e0", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling algorithms_in_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function is never used: `find_missing_number` [INFO] [stdout] --> src/bitwise_xor/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn find_missing_number(arr: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_non_duplicate` [INFO] [stdout] --> src/bitwise_xor/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn find_non_duplicate(arr: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cyclic_sort` [INFO] [stdout] --> src/cyclic_sort/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn cyclic_sort(nums: &mut Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fruits_basket` [INFO] [stdout] --> src/sliding_window/mod.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn fruits_basket(arr: Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_max_sum_window` [INFO] [stdout] --> src/sliding_window/mod.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn find_max_sum_window(k: i32, arr: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_smallest_sum_window` [INFO] [stdout] --> src/sliding_window/mod.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn find_smallest_sum_window(target_sum: i32, arr: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/binary_tree/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | value: T, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BinaryTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/binary_tree/mod.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `left` [INFO] [stdout] --> src/binary_tree/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | left: Option>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BinaryTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/binary_tree/mod.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `right` [INFO] [stdout] --> src/binary_tree/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | right: Option>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `BinaryTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/binary_tree/mod.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/binary_tree/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn new(value: T) -> BinaryTree { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/binary_tree/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn add(&mut self, value: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `search` [INFO] [stdout] --> src/binary_tree/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn search(&self, target: T) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.30s [INFO] running `Command { std: "docker" "inspect" "023be9f7ae7e5695a92c07167a53ce80ee1f6c589815deb8a93c1d89e527c5e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "023be9f7ae7e5695a92c07167a53ce80ee1f6c589815deb8a93c1d89e527c5e0", kill_on_drop: false }` [INFO] [stdout] 023be9f7ae7e5695a92c07167a53ce80ee1f6c589815deb8a93c1d89e527c5e0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94c9ce0a784a4308082e3682a4abcb1fb2b9e766ea6461a19337623f8471f1fd [INFO] running `Command { std: "docker" "start" "-a" "94c9ce0a784a4308082e3682a4abcb1fb2b9e766ea6461a19337623f8471f1fd", kill_on_drop: false }` [INFO] [stderr] Compiling algorithms_in_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.48s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/algorithms_in_rust-17863dafa5090495) [INFO] running `Command { std: "docker" "inspect" "94c9ce0a784a4308082e3682a4abcb1fb2b9e766ea6461a19337623f8471f1fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94c9ce0a784a4308082e3682a4abcb1fb2b9e766ea6461a19337623f8471f1fd", kill_on_drop: false }` [INFO] [stdout] 94c9ce0a784a4308082e3682a4abcb1fb2b9e766ea6461a19337623f8471f1fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 052b4b5c2f59fad24f07b88571f445dac8562ff778ac837b611bbfc7449d0d37 [INFO] running `Command { std: "docker" "start" "-a" "052b4b5c2f59fad24f07b88571f445dac8562ff778ac837b611bbfc7449d0d37", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/algorithms_in_rust-17863dafa5090495) [INFO] [stdout] running 10 tests [INFO] [stdout] test binary_search::tests::found_number_larger_array ... ok [INFO] [stdout] test bitwise_xor::tests::find_non_duplicate_number ... ok [INFO] [stdout] test cyclic_sort::tests::sort_numbers ... ok [INFO] [stdout] test sliding_window::tests::get_smallest_window_size ... ok [INFO] [stdout] test binary_search::tests::no_number ... ok [INFO] [stdout] test binary_search::tests::found_number ... ok [INFO] [stdout] test bitwise_xor::tests::find_number ... ok [INFO] [stdout] test sliding_window::tests::get_fruits ... ok [INFO] [stdout] test binary_tree::tests::basics ... ok [INFO] [stdout] test sliding_window::tests::get_max_window_size ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "052b4b5c2f59fad24f07b88571f445dac8562ff778ac837b611bbfc7449d0d37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "052b4b5c2f59fad24f07b88571f445dac8562ff778ac837b611bbfc7449d0d37", kill_on_drop: false }` [INFO] [stdout] 052b4b5c2f59fad24f07b88571f445dac8562ff778ac837b611bbfc7449d0d37