[INFO] cloning repository https://github.com/canelhasmateus/algos [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/canelhasmateus/algos" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcanelhasmateus%2Falgos", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcanelhasmateus%2Falgos'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6d0cd19bb2615926ca1706fb24ffecc679c017ea [INFO] testing canelhasmateus/algos 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%2Fcanelhasmateus%2Falgos" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/canelhasmateus/algos 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/canelhasmateus/algos [INFO] finished tweaking git repo https://github.com/canelhasmateus/algos [INFO] tweaked toml for git repo https://github.com/canelhasmateus/algos written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/canelhasmateus/algos 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 131dc11f212e4233a202d8dd25f3ff729c214910ca4cc7bbd51260206b0c5e95 [INFO] running `Command { std: "docker" "start" "-a" "131dc11f212e4233a202d8dd25f3ff729c214910ca4cc7bbd51260206b0c5e95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "131dc11f212e4233a202d8dd25f3ff729c214910ca4cc7bbd51260206b0c5e95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "131dc11f212e4233a202d8dd25f3ff729c214910ca4cc7bbd51260206b0c5e95", kill_on_drop: false }` [INFO] [stdout] 131dc11f212e4233a202d8dd25f3ff729c214910ca4cc7bbd51260206b0c5e95 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e52c4e1c5a0522986f54815872ef784264d6f35845f2c024d9809a3e383401e5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e52c4e1c5a0522986f54815872ef784264d6f35845f2c024d9809a3e383401e5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling algos v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/chapter2/chapter2.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn random_vector(size: usize) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `input_length` [INFO] [stdout] --> src/chapter2/chapter2.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | input_length: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `SortingStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chapter2/chapter2.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[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: `n_assignments` [INFO] [stdout] --> src/chapter2/chapter2.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | n_assignments: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SortingStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chapter2/chapter2.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[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: `n_comparisons` [INFO] [stdout] --> src/chapter2/chapter2.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | n_comparisons: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SortingStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chapter2/chapter2.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[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: `n_indexings` [INFO] [stdout] --> src/chapter2/chapter2.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | n_indexings: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SortingStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chapter2/chapter2.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[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: `n_swaps` [INFO] [stdout] --> src/chapter2/chapter2.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | n_swaps: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SortingStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chapter2/chapter2.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[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: `time_elapsed` [INFO] [stdout] --> src/chapter2/chapter2.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | time_elapsed: u128, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SortingStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chapter2/chapter2.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[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/chapter2/chapter2.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn new(length: usize) -> SortingStatistics { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_vector` [INFO] [stdout] --> src/chapter2/chapter2.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn random_vector(size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insertion_sort` [INFO] [stdout] --> src/chapter2/chapter2.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn insertion_sort(array: &mut Vec) -> SortingStatistics { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.72s [INFO] running `Command { std: "docker" "inspect" "e52c4e1c5a0522986f54815872ef784264d6f35845f2c024d9809a3e383401e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e52c4e1c5a0522986f54815872ef784264d6f35845f2c024d9809a3e383401e5", kill_on_drop: false }` [INFO] [stdout] e52c4e1c5a0522986f54815872ef784264d6f35845f2c024d9809a3e383401e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1f784715827bb1f441ce4df8ddd67f837e20b64fcf0c5f41ff8e29e9de4ff22a [INFO] running `Command { std: "docker" "start" "-a" "1f784715827bb1f441ce4df8ddd67f837e20b64fcf0c5f41ff8e29e9de4ff22a", kill_on_drop: false }` [INFO] [stderr] Compiling algos v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/chapter2/chapter2.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn random_vector(size: usize) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `input_length` [INFO] [stdout] --> src/chapter2/chapter2.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | input_length: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `SortingStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/chapter2/chapter2.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.35s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/algos-31863a3f998b7e3f) [INFO] running `Command { std: "docker" "inspect" "1f784715827bb1f441ce4df8ddd67f837e20b64fcf0c5f41ff8e29e9de4ff22a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f784715827bb1f441ce4df8ddd67f837e20b64fcf0c5f41ff8e29e9de4ff22a", kill_on_drop: false }` [INFO] [stdout] 1f784715827bb1f441ce4df8ddd67f837e20b64fcf0c5f41ff8e29e9de4ff22a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] edb672492b3931938cf8934a55de6a3f67649e03e8519d61bff8fd142b9e9c5e [INFO] running `Command { std: "docker" "start" "-a" "edb672492b3931938cf8934a55de6a3f67649e03e8519d61bff8fd142b9e9c5e", 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] warning: unused variable: `size` [INFO] [stderr] --> src/chapter2/chapter2.rs:27:22 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn random_vector(size: usize) -> Vec { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `input_length` [INFO] [stderr] --> src/chapter2/chapter2.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | input_length: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `SortingStatistics` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/chapter2/chapter2.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `algos` (bin "algos" test) generated 2 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.95s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/algos-31863a3f998b7e3f) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test chapter2::chapter2::insertion ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 19.55s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "edb672492b3931938cf8934a55de6a3f67649e03e8519d61bff8fd142b9e9c5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edb672492b3931938cf8934a55de6a3f67649e03e8519d61bff8fd142b9e9c5e", kill_on_drop: false }` [INFO] [stdout] edb672492b3931938cf8934a55de6a3f67649e03e8519d61bff8fd142b9e9c5e