[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] checking PavelVavruska/hacker-code/dac4ed8541cf90fa2aa6992111a93d6bca1158c7 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPavelVavruska%2Fhacker-code" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PavelVavruska/hacker-code on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "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-6-tc1/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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4905667e36c51e3f64dd9b987ed2a4904381f4e9d948137628d9f948ef1f590b [INFO] running `Command { std: "docker" "start" "-a" "4905667e36c51e3f64dd9b987ed2a4904381f4e9d948137628d9f948ef1f590b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4905667e36c51e3f64dd9b987ed2a4904381f4e9d948137628d9f948ef1f590b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4905667e36c51e3f64dd9b987ed2a4904381f4e9d948137628d9f948ef1f590b", kill_on_drop: false }` [INFO] [stdout] 4905667e36c51e3f64dd9b987ed2a4904381f4e9d948137628d9f948ef1f590b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e68b2052e29fbf278b862b65fff0b7e95a9bc266ff89f769c1e5911d50463bbd [INFO] running `Command { std: "docker" "start" "-a" "e68b2052e29fbf278b862b65fff0b7e95a9bc266ff89f769c1e5911d50463bbd", kill_on_drop: false }` [INFO] [stderr] Checking 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: 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: struct `Counter` is never constructed [INFO] [stdout] --> src/rust_book/iterators.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Counter { [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: 29 warnings emitted [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 `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "e68b2052e29fbf278b862b65fff0b7e95a9bc266ff89f769c1e5911d50463bbd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e68b2052e29fbf278b862b65fff0b7e95a9bc266ff89f769c1e5911d50463bbd", kill_on_drop: false }` [INFO] [stdout] e68b2052e29fbf278b862b65fff0b7e95a9bc266ff89f769c1e5911d50463bbd