[INFO] cloning repository https://github.com/PavelVavruska/hacker-code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PavelVavruska/hacker-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPavelVavruska%2Fhacker-code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPavelVavruska%2Fhacker-code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dac4ed8541cf90fa2aa6992111a93d6bca1158c7 [INFO] testing PavelVavruska/hacker-code against try#ecd7b559f89c73ac8f1d318f7501006f37b944b2 for pr-112849 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPavelVavruska%2Fhacker-code" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PavelVavruska/hacker-code on toolchain ecd7b559f89c73ac8f1d318f7501006f37b944b2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ecd7b559f89c73ac8f1d318f7501006f37b944b2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PavelVavruska/hacker-code [INFO] finished tweaking git repo https://github.com/PavelVavruska/hacker-code [INFO] tweaked toml for git repo https://github.com/PavelVavruska/hacker-code written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/PavelVavruska/hacker-code 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" "+ecd7b559f89c73ac8f1d318f7501006f37b944b2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+ecd7b559f89c73ac8f1d318f7501006f37b944b2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d1949d775699470ef602f82e2de755e396fce37418208c7684a32092a93b6b65 [INFO] running `Command { std: "docker" "start" "-a" "d1949d775699470ef602f82e2de755e396fce37418208c7684a32092a93b6b65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d1949d775699470ef602f82e2de755e396fce37418208c7684a32092a93b6b65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1949d775699470ef602f82e2de755e396fce37418208c7684a32092a93b6b65", kill_on_drop: false }` [INFO] [stdout] d1949d775699470ef602f82e2de755e396fce37418208c7684a32092a93b6b65 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+ecd7b559f89c73ac8f1d318f7501006f37b944b2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d3f048cbae60bc3d7cd3c6d7968aa70a88325255ce11b89d50f51dfcc5195c6 [INFO] running `Command { std: "docker" "start" "-a" "0d3f048cbae60bc3d7cd3c6d7968aa70a88325255ce11b89d50f51dfcc5195c6", kill_on_drop: false }` [INFO] [stderr] Compiling hacker-code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `Cacher_u32` should have an upper camel case name [INFO] [stdout] --> src/rust_book/closures_cacher.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Cacher_u32 u32> { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `CacherU32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/questions/palindrome_linked_list.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/questions/palindrome_linked_list.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | #[inline] [INFO] [stdout] 13 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_palindrome` is never used [INFO] [stdout] --> src/questions/palindrome_linked_list.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 18 | pub fn is_palindrome(head: Option>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/questions/palindrome_number.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_palindrome`, `is_palindrome_i64_hack`, and `is_palindrome_string_version` are never used [INFO] [stdout] --> src/questions/palindrome_number.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 7 | pub fn is_palindrome(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_palindrome_i64_hack(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn is_palindrome_string_version(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/questions/reverse_linked_list.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/questions/reverse_linked_list.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 11 | #[inline] [INFO] [stdout] 12 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `reverse_list` is never used [INFO] [stdout] --> src/questions/reverse_linked_list.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 17 | pub fn reverse_list(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/questions/roman_to_integer.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `roman_to_int` is never used [INFO] [stdout] --> src/questions/roman_to_integer.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | pub fn roman_to_int(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_number_of_pairs` is never used [INFO] [stdout] --> src/questions/socks.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn get_number_of_pairs(_number: i8, color_array: &[i8]) -> i8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/questions/two_sums.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/questions/two_sums.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_employee_to_department` is never used [INFO] [stdout] --> src/rust_book/collections_hashmap.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn add_employee_to_department( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_employees_from_department` is never used [INFO] [stdout] --> src/rust_book/collections_hashmap.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_employees_from_department( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_employees_from_company` is never used [INFO] [stdout] --> src/rust_book/collections_hashmap.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn get_all_employees_from_company(company: &HashMap>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_pig_latin` is never used [INFO] [stdout] --> src/rust_book/collections_string.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_pig_latin(input_str: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_median` is never used [INFO] [stdout] --> src/rust_book/collections_vec.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_median(int_list: &mut Vec) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest` is never used [INFO] [stdout] --> src/rust_book/traits.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn largest(list: &[T]) -> &T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/rust_book/traits.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cacher_u32` is never constructed [INFO] [stdout] --> src/rust_book/closures_cacher.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Cacher_u32 u32> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/rust_book/closures_cacher.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl u32> Cacher_u32 { [INFO] [stdout] | ------------------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(computation: T) -> Cacher_u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn value(&mut self, number: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cacher` is never constructed [INFO] [stdout] --> src/rust_book/closures_cacher.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Cacher U, U: Copy> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/rust_book/closures_cacher.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl U, U: Copy> Cacher { [INFO] [stdout] | ----------------------------------------- associated items in this implementation [INFO] [stdout] 35 | pub fn new(computation: T) -> Cacher { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn value(&mut self, input_value: U) -> U { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CacherHash` is never constructed [INFO] [stdout] --> src/rust_book/closures_cacher.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct CacherHash V, K: Eq+Hash, V: Copy+Eq+Hash > { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/rust_book/closures_cacher.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl V, K: Clone+Eq+Hash, V: Copy+Eq+Hash> CacherHash { [INFO] [stdout] | -------------------------------------------------------------------------- associated items in this implementation [INFO] [stdout] 62 | pub fn new(computation: T) -> CacherHash { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn value(&mut self, input_value: K) -> V { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/rust_book/iterators.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 6 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "0d3f048cbae60bc3d7cd3c6d7968aa70a88325255ce11b89d50f51dfcc5195c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d3f048cbae60bc3d7cd3c6d7968aa70a88325255ce11b89d50f51dfcc5195c6", kill_on_drop: false }` [INFO] [stdout] 0d3f048cbae60bc3d7cd3c6d7968aa70a88325255ce11b89d50f51dfcc5195c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+ecd7b559f89c73ac8f1d318f7501006f37b944b2" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b700a306ea4120c4df45514ac30c84b79e99e094800fe09c9ce84e118988509e [INFO] running `Command { std: "docker" "start" "-a" "b700a306ea4120c4df45514ac30c84b79e99e094800fe09c9ce84e118988509e", kill_on_drop: false }` [INFO] [stderr] Compiling hacker-code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `Cacher_u32` should have an upper camel case name [INFO] [stdout] --> src/rust_book/closures_cacher.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Cacher_u32 u32> { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `CacherU32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust_book/closures_cacher.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | for i in 1..1000 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_palindrome_i64_hack` and `is_palindrome_string_version` are never used [INFO] [stdout] --> src/questions/palindrome_number.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_palindrome_i64_hack(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn is_palindrome_string_version(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_employees_from_department` is never used [INFO] [stdout] --> src/rust_book/collections_hashmap.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_employees_from_department( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/rust_book/traits.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/rust_book/ref_weak_strong.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 5 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | parent: RefCell>, [INFO] [stdout] 7 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "b700a306ea4120c4df45514ac30c84b79e99e094800fe09c9ce84e118988509e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b700a306ea4120c4df45514ac30c84b79e99e094800fe09c9ce84e118988509e", kill_on_drop: false }` [INFO] [stdout] b700a306ea4120c4df45514ac30c84b79e99e094800fe09c9ce84e118988509e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+ecd7b559f89c73ac8f1d318f7501006f37b944b2" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] be06312d7f22e9294f9bddb763ad6bc8054cbca427a1d1a755aaed7e92f43ebc [INFO] running `Command { std: "docker" "start" "-a" "be06312d7f22e9294f9bddb763ad6bc8054cbca427a1d1a755aaed7e92f43ebc", kill_on_drop: false }` [INFO] [stderr] warning: type `Cacher_u32` should have an upper camel case name [INFO] [stderr] --> src/rust_book/closures_cacher.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | struct Cacher_u32 u32> { [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `CacherU32` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/rust_book/closures_cacher.rs:178:17 [INFO] [stderr] | [INFO] [stderr] 178 | for i in 1..1000 { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated functions `is_palindrome_i64_hack` and `is_palindrome_string_version` are never used [INFO] [stderr] --> src/questions/palindrome_number.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 3 | impl Solution { [INFO] [stderr] | ------------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 46 | pub fn is_palindrome_i64_hack(x: i32) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 78 | pub fn is_palindrome_string_version(x: i32) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `get_employees_from_department` is never used [INFO] [stderr] --> src/rust_book/collections_hashmap.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn get_employees_from_department( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `main` is never used [INFO] [stderr] --> src/rust_book/traits.rs:13:4 [INFO] [stderr] | [INFO] [stderr] 13 | fn main() { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `value` and `children` are never read [INFO] [stderr] --> src/rust_book/ref_weak_strong.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 4 | struct Node { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 5 | value: i32, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 6 | parent: RefCell>, [INFO] [stderr] 7 | children: RefCell>>, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `hacker-code` (bin "hacker-code" test) generated 6 warnings (run `cargo fix --bin "hacker-code" --tests` to apply 1 suggestion) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.00s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/hacker_code-bdda3a1c5438f6f0) [INFO] [stdout] [INFO] [stdout] running 29 tests [INFO] [stdout] test questions::palindrome_linked_list::tests::test_example_1 ... ok [INFO] [stdout] test questions::palindrome_number::tests::test_example_1 ... ok [INFO] [stdout] test questions::palindrome_linked_list::tests::test_example_3 ... ok [INFO] [stdout] test questions::palindrome_linked_list::tests::test_example_2 ... ok [INFO] [stdout] test questions::palindrome_number::tests::test_example_3 ... ok [INFO] [stdout] test questions::reverse_linked_list::tests::test_example_1 ... ok [INFO] [stdout] test questions::palindrome_number::tests::test_example_4 ... ok [INFO] [stdout] test questions::palindrome_number::tests::test_example_2 ... ok [INFO] [stdout] test questions::roman_to_integer::tests::test_example_1 ... ok [INFO] [stdout] test questions::roman_to_integer::tests::test_example_2 ... ok [INFO] [stdout] test questions::roman_to_integer::tests::test_example_3 ... ok [INFO] [stdout] test questions::roman_to_integer::tests::test_example_4 ... ok [INFO] [stdout] test questions::socks::tests::test_number_of_pairs_1 ... ok [INFO] [stdout] test questions::socks::tests::test_number_of_pairs_2 ... ok [INFO] [stdout] test questions::socks::tests::test_number_of_pairs_3 ... ok [INFO] [stdout] test questions::two_sums::tests::test_two_sum_1 ... ok [INFO] [stdout] test rust_book::closures_cacher::tests::test_generic_hashmap_usize ... ok [INFO] [stdout] test rust_book::closures_cacher::tests::test_generic_i32 ... ok [INFO] [stdout] test rust_book::closures_cacher::tests::test_generic_usize ... ok [INFO] [stdout] test rust_book::closures_cacher::tests::test_u32 ... ok [INFO] [stdout] test rust_book::closures_cacher::tests::test_generic_hashmap_usize_string_slice ... ok [INFO] [stdout] test rust_book::collections_string::tests::test_get_consonant ... ok [INFO] [stdout] test rust_book::collections_string::tests::test_get_vowel ... ok [INFO] [stdout] test rust_book::collections_vec::tests::test_get_median_even ... ok [INFO] [stdout] test rust_book::iterators::tests::calling_next_directly ... ok [INFO] [stdout] test rust_book::collections_vec::tests::test_get_median_odd ... ok [INFO] [stdout] test rust_book::ref_weak_strong::tests::test_scopes ... ok [INFO] [stdout] test rust_book::traits::tests::test_main ... ok [INFO] [stdout] test rust_book::collections_hashmap::tests::test_get_consonant ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- rust_book::collections_hashmap::tests::test_get_consonant stdout ---- [INFO] [stdout] thread 'rust_book::collections_hashmap::tests::test_get_consonant' panicked at src/rust_book/collections_hashmap.rs:87:9: [INFO] [stdout] assertion failed: `(left == right)` [INFO] [stdout] left: `["department: Engineering employees: Sally, Pavel", "department: Sales employees: Amir, George"]`, [INFO] [stdout] right: `["department: Sales employees: Amir, George", "department: Engineering employees: Sally, Pavel"]` [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x561b709d9e11 - std::backtrace_rs::backtrace::libunwind::trace::he8a34e6ab80996f5 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x561b709d9e11 - std::backtrace_rs::backtrace::trace_unsynchronized::h864fca907db5bdc0 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x561b709d9e11 - std::sys_common::backtrace::_print_fmt::h47ceae78d0af5160 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/sys_common/backtrace.rs:65:5 [INFO] [stdout] 3: 0x561b709d9e11 - ::fmt::ha55bd40a5f3054c8 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stdout] 4: 0x561b70a00a6f - core::fmt::rt::Argument::fmt::h68717a843c94b5b7 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/core/src/fmt/rt.rs:138:9 [INFO] [stdout] 5: 0x561b70a00a6f - core::fmt::write::h44d9b1700d264e6b [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/core/src/fmt/mod.rs:1094:21 [INFO] [stdout] 6: 0x561b709d71b7 - std::io::Write::write_fmt::h2bc437010a25187b [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/io/mod.rs:1714:15 [INFO] [stdout] 7: 0x561b709d9c25 - std::sys_common::backtrace::_print::h80fb8a1d71a9c116 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stdout] 8: 0x561b709d9c25 - std::sys_common::backtrace::print::hb5e6b1168a97b5e0 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stdout] 9: 0x561b709db883 - std::panicking::default_hook::{{closure}}::hfa26065dde38d5ba [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/panicking.rs:269:22 [INFO] [stdout] 10: 0x561b709db5a0 - std::panicking::default_hook::hc3edde983cbecd4a [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/panicking.rs:285:9 [INFO] [stdout] 11: 0x561b709ac392 - as core::ops::function::Fn>::call::hb2676498aafe47fd [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/alloc/src/boxed.rs:2007:9 [INFO] [stdout] 12: 0x561b709ac392 - test::test_main::{{closure}}::h3b4c1c68a391ceb5 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/test/src/lib.rs:134:21 [INFO] [stdout] 13: 0x561b709dbf7e - as core::ops::function::Fn>::call::h59fc42576a57a440 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/alloc/src/boxed.rs:2007:9 [INFO] [stdout] 14: 0x561b709dbf7e - std::panicking::rust_panic_with_hook::h7c2fe713408ebcf7 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/panicking.rs:709:13 [INFO] [stdout] 15: 0x561b709dbd07 - std::panicking::begin_panic_handler::{{closure}}::h48279992bc735ca2 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/panicking.rs:597:13 [INFO] [stdout] 16: 0x561b709da246 - std::sys_common::backtrace::__rust_end_short_backtrace::he5478f246a8d15b1 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/sys_common/backtrace.rs:151:18 [INFO] [stdout] 17: 0x561b709dba52 - rust_begin_unwind [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/panicking.rs:593:5 [INFO] [stdout] 18: 0x561b70949403 - core::panicking::panic_fmt::hbf1ad618a5d5d708 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/core/src/panicking.rs:67:14 [INFO] [stdout] 19: 0x561b709497bb - core::panicking::assert_failed_inner::h18e415515a67b411 [INFO] [stdout] 20: 0x561b7095b71a - core::panicking::assert_failed::h16b2499ef0c320ee [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/core/src/panicking.rs:229:5 [INFO] [stdout] 21: 0x561b70976fe3 - hacker_code::rust_book::collections_hashmap::tests::test_get_consonant::h00a8ab4e3c16e8e7 [INFO] [stdout] at /opt/rustwide/workdir/src/rust_book/collections_hashmap.rs:87:9 [INFO] [stdout] 22: 0x561b70976597 - hacker_code::rust_book::collections_hashmap::tests::test_get_consonant::{{closure}}::h69f517cb92fd0ee1 [INFO] [stdout] at /opt/rustwide/workdir/src/rust_book/collections_hashmap.rs:55:29 [INFO] [stdout] 23: 0x561b7096dab5 - core::ops::function::FnOnce::call_once::h812ae60092574175 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x561b709b17af - core::ops::function::FnOnce::call_once::h2e81c07a49b3b328 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x561b709b17af - test::__rust_begin_short_backtrace::h8b9d25b555f3d8a5 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/test/src/lib.rs:655:18 [INFO] [stdout] 26: 0x561b7097d4ac - test::run_test::{{closure}}::ha116a177a18a7684 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/test/src/lib.rs:646:30 [INFO] [stdout] 27: 0x561b7097d4ac - core::ops::function::FnOnce::call_once{{vtable.shim}}::h4d49cffa35c98788 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 28: 0x561b709b0779 - as core::ops::function::FnOnce>::call_once::h50a863ea26164a61 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/alloc/src/boxed.rs:1993:9 [INFO] [stdout] 29: 0x561b709b0779 - as core::ops::function::FnOnce<()>>::call_once::h04f5ba1d9599b1e6 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 30: 0x561b709b0779 - std::panicking::try::do_call::he78089d143b4ae0d [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/panicking.rs:500:40 [INFO] [stdout] 31: 0x561b709b0779 - std::panicking::try::hc41cda2a57fa64b6 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/panicking.rs:464:19 [INFO] [stdout] 32: 0x561b709b0779 - std::panic::catch_unwind::he34d2e069a507d06 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/panic.rs:142:14 [INFO] [stdout] 33: 0x561b709b0779 - test::run_test_in_process::h1a9933ec65bf150e [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/test/src/lib.rs:678:27 [INFO] [stdout] 34: 0x561b709b0779 - test::run_test::run_test_inner::{{closure}}::h6a77ac48c621de22 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/test/src/lib.rs:572:39 [INFO] [stdout] 35: 0x561b709774a8 - test::run_test::run_test_inner::{{closure}}::h2278556ce7b127e9 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/test/src/lib.rs:599:37 [INFO] [stdout] 36: 0x561b709774a8 - std::sys_common::backtrace::__rust_begin_short_backtrace::h6f81324b35a0a8bd [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/sys_common/backtrace.rs:135:18 [INFO] [stdout] 37: 0x561b7097d36f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h6666d0b48280a852 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/thread/mod.rs:529:17 [INFO] [stdout] 38: 0x561b7097d36f - as core::ops::function::FnOnce<()>>::call_once::h903f46438f50fa4d [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 39: 0x561b7097d36f - std::panicking::try::do_call::hd168f55adbd68cdd [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/panicking.rs:500:40 [INFO] [stdout] 40: 0x561b7097d36f - std::panicking::try::hdc44cc99c1165c34 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/panicking.rs:464:19 [INFO] [stdout] 41: 0x561b7097d36f - std::panic::catch_unwind::haffe820e5b950777 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/panic.rs:142:14 [INFO] [stdout] 42: 0x561b7097d36f - std::thread::Builder::spawn_unchecked_::{{closure}}::h2713c936ff1f9048 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/thread/mod.rs:528:30 [INFO] [stdout] 43: 0x561b7097d36f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h4caeb7de1ff31552 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 44: 0x561b709e0435 - as core::ops::function::FnOnce>::call_once::hdc3286f51b5f0d41 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/alloc/src/boxed.rs:1993:9 [INFO] [stdout] 45: 0x561b709e0435 - as core::ops::function::FnOnce>::call_once::h2ed120d54908b9bc [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/alloc/src/boxed.rs:1993:9 [INFO] [stdout] 46: 0x561b709e0435 - std::sys::unix::thread::Thread::new::thread_start::h8f96ea8d36a51f46 [INFO] [stdout] at /rustc/ecd7b559f89c73ac8f1d318f7501006f37b944b2/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 47: 0x7f6b2df68b43 - [INFO] [stdout] 48: 0x7f6b2dff9bb4 - __clone [INFO] [stdout] 49: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] rust_book::collections_hashmap::tests::test_get_consonant [INFO] [stdout] [INFO] [stdout] test result: FAILED. 28 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin hacker-code` [INFO] running `Command { std: "docker" "inspect" "be06312d7f22e9294f9bddb763ad6bc8054cbca427a1d1a755aaed7e92f43ebc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be06312d7f22e9294f9bddb763ad6bc8054cbca427a1d1a755aaed7e92f43ebc", kill_on_drop: false }` [INFO] [stdout] be06312d7f22e9294f9bddb763ad6bc8054cbca427a1d1a755aaed7e92f43ebc