[INFO] cloning repository https://github.com/htoopyaelinn56/leet_code_exercise [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/htoopyaelinn56/leet_code_exercise" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhtoopyaelinn56%2Fleet_code_exercise", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhtoopyaelinn56%2Fleet_code_exercise'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1738dcea10d3dcba7be2f66cd2eaca9547c7c612 [INFO] testing htoopyaelinn56/leet_code_exercise against try#17092ad00ed8fe1e7f81a7e38238ff70779034b1 for pr-140985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhtoopyaelinn56%2Fleet_code_exercise" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/htoopyaelinn56/leet_code_exercise on toolchain 17092ad00ed8fe1e7f81a7e38238ff70779034b1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/htoopyaelinn56/leet_code_exercise [INFO] finished tweaking git repo https://github.com/htoopyaelinn56/leet_code_exercise [INFO] tweaked toml for git repo https://github.com/htoopyaelinn56/leet_code_exercise written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/htoopyaelinn56/leet_code_exercise 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" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 47d13f36fdb0950004bf2b5eb7eff36f9ef784ac89f4813da1ba8a0af2d5dab1 [INFO] running `Command { std: "docker" "start" "-a" "47d13f36fdb0950004bf2b5eb7eff36f9ef784ac89f4813da1ba8a0af2d5dab1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "47d13f36fdb0950004bf2b5eb7eff36f9ef784ac89f4813da1ba8a0af2d5dab1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47d13f36fdb0950004bf2b5eb7eff36f9ef784ac89f4813da1ba8a0af2d5dab1", kill_on_drop: false }` [INFO] [stdout] 47d13f36fdb0950004bf2b5eb7eff36f9ef784ac89f4813da1ba8a0af2d5dab1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 440c7e4b1ad07e89a8a4fcacd5ff6ccfe0d265d67be67e97b563ccf1ddc504ab [INFO] running `Command { std: "docker" "start" "-a" "440c7e4b1ad07e89a8a4fcacd5ff6ccfe0d265d67be67e97b563ccf1ddc504ab", kill_on_drop: false }` [INFO] [stderr] Compiling leet_code_exercise v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::Binary` [INFO] [stdout] --> src/top_k_frequent_elements.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Binary; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/top_k_frequent_elements.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | /// store (frequency, item) pair in max_heap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 59 | let mut my_binary_heap: BinaryHeap<(u32, i32)> = BinaryHeap::new(); [INFO] [stdout] | ------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/product_of_array_except_self.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/product_of_array_except_self.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/top_k_frequent_elements.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | for (key, value) in &item_with_frequency { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/two_sum.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/two_sum.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/contains_duplicate.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `contains_duplicate` is never used [INFO] [stdout] --> src/contains_duplicate.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn contains_duplicate(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/valid_anagram.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_anagram` is never used [INFO] [stdout] --> src/valid_anagram.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn is_anagram(s: String, t: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/group_anagrams.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `ASCII_SMALL_A` and `group_anagrams` are never used [INFO] [stdout] --> src/group_anagrams.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 6 | const ASCII_SMALL_A: u32 = 97; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 7 | pub fn group_anagrams(strs: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/top_k_frequent_elements.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `top_k_frequent_using_hashmap_only`, `top_k_frequent_using_binary_heap`, and `top_k_frequent_using_buckets` are never used [INFO] [stdout] --> src/top_k_frequent_elements.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 9 | pub fn top_k_frequent_using_hashmap_only(nums: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn top_k_frequent_using_binary_heap(nums: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn top_k_frequent_using_buckets(nums: Vec, k: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/product_of_array_except_self.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `product_except_self` and `product_except_self_optimized` are never used [INFO] [stdout] --> src/product_of_array_except_self.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 7 | pub fn product_except_self(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn product_except_self_optimized(nums: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/valid_sudoku.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid_sudoku` is never used [INFO] [stdout] --> src/valid_sudoku.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 8 | pub fn is_valid_sudoku(board: Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/longest_consecutive.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `longest_consecutive` is never used [INFO] [stdout] --> src/longest_consecutive.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 8 | pub fn longest_consecutive(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/is_palindrome.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_palindrome` is never used [INFO] [stdout] --> src/is_palindrome.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 6 | pub fn is_palindrome(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/two_sum_2.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/two_sum_2.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn two_sum(numbers: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/three_sum.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `three_sum` is never used [INFO] [stdout] --> src/three_sum.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn three_sum(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "440c7e4b1ad07e89a8a4fcacd5ff6ccfe0d265d67be67e97b563ccf1ddc504ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "440c7e4b1ad07e89a8a4fcacd5ff6ccfe0d265d67be67e97b563ccf1ddc504ab", kill_on_drop: false }` [INFO] [stdout] 440c7e4b1ad07e89a8a4fcacd5ff6ccfe0d265d67be67e97b563ccf1ddc504ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81524f865ec3c353e8e986310779279f789201d4d3170c499f2cc8d6195f11d7 [INFO] running `Command { std: "docker" "start" "-a" "81524f865ec3c353e8e986310779279f789201d4d3170c499f2cc8d6195f11d7", kill_on_drop: false }` [INFO] [stderr] Compiling leet_code_exercise v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::Binary` [INFO] [stdout] --> src/top_k_frequent_elements.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::Binary; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/top_k_frequent_elements.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | /// store (frequency, item) pair in max_heap [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 59 | let mut my_binary_heap: BinaryHeap<(u32, i32)> = BinaryHeap::new(); [INFO] [stdout] | ------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/product_of_array_except_self.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/product_of_array_except_self.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/top_k_frequent_elements.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | for (key, value) in &item_with_frequency { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/two_sum.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `two_sum` is never used [INFO] [stdout] --> src/two_sum.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/contains_duplicate.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `contains_duplicate` is never used [INFO] [stdout] --> src/contains_duplicate.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 6 | pub fn contains_duplicate(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.73s [INFO] running `Command { std: "docker" "inspect" "81524f865ec3c353e8e986310779279f789201d4d3170c499f2cc8d6195f11d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81524f865ec3c353e8e986310779279f789201d4d3170c499f2cc8d6195f11d7", kill_on_drop: false }` [INFO] [stdout] 81524f865ec3c353e8e986310779279f789201d4d3170c499f2cc8d6195f11d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e87f699d0afb72c4ebef245c2e3f0bae5ea1c9ccaa301ece72c645025ca134d8 [INFO] running `Command { std: "docker" "start" "-a" "e87f699d0afb72c4ebef245c2e3f0bae5ea1c9ccaa301ece72c645025ca134d8", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::fmt::Binary` [INFO] [stderr] --> src/top_k_frequent_elements.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::fmt::Binary; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/top_k_frequent_elements.rs:58:9 [INFO] [stderr] | [INFO] [stderr] 58 | /// store (frequency, item) pair in max_heap [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 59 | let mut my_binary_heap: BinaryHeap<(u32, i32)> = BinaryHeap::new(); [INFO] [stderr] | ------------------------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stderr] | [INFO] [stderr] = help: use `//` for a plain comment [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] [INFO] [stdout] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stdout] running 13 tests [INFO] [stderr] --> src/product_of_array_except_self.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::hash::Hash` [INFO] [stderr] --> src/product_of_array_except_self.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::hash::Hash; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `key` [INFO] [stderr] --> src/top_k_frequent_elements.rs:24:14 [INFO] [stderr] | [INFO] [stderr] 24 | for (key, value) in &item_with_frequency { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Solution` is never constructed [INFO] [stderr] --> src/two_sum.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `two_sum` is never used [INFO] [stderr] --> src/two_sum.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 5 | impl Solution { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 6 | pub fn two_sum(nums: Vec, target: i32) -> Vec { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Solution` is never constructed [INFO] [stderr] --> src/contains_duplicate.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | struct Solution; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `contains_duplicate` is never used [INFO] [stderr] --> src/contains_duplicate.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 5 | impl Solution { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 6 | pub fn contains_duplicate(nums: Vec) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `leet_code_exercise` (bin "leet_code_exercise" test) generated 9 warnings (run `cargo fix --bin "leet_code_exercise" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/leet_code_exercise-b6d7369438217220) [INFO] [stdout] test is_palindrome::tests::test_is_palindrome ... ok [INFO] [stdout] test group_anagrams::tests::test_group_anagrams ... ok [INFO] [stdout] test longest_consecutive::tests::it_works ... ok [INFO] [stdout] test product_of_array_except_self::tests::it_works_with_optimized ... ok [INFO] [stdout] test product_of_array_except_self::tests::it_works ... ok [INFO] [stdout] test three_sum::tests::it_works ... ok [INFO] [stdout] test top_k_frequent_elements::tests::it_works_bucket_sorting ... ok [INFO] [stdout] test top_k_frequent_elements::tests::it_works_hash_map ... ok [INFO] [stdout] test valid_sudoku::tests::test_is_valid_sudoku_true ... ok [INFO] [stdout] test valid_anagram::tests::it_works ... ok [INFO] [stdout] test valid_sudoku::tests::test_is_valid_sudoku_false ... ok [INFO] [stdout] test top_k_frequent_elements::tests::it_works_binary_heap ... ok [INFO] [stdout] test two_sum_2::tests::test ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- two_sum_2::tests::test stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'two_sum_2::tests::test' panicked at src/two_sum_2.rs:28:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: [1, 2] [INFO] [stdout] right: [0, 1] [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x60ff87719582 - std::backtrace_rs::backtrace::libunwind::trace::h2bdbdb423cc746ad [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x60ff87719582 - std::backtrace_rs::backtrace::trace_unsynchronized::h876081fa48c0856a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x60ff87719582 - std::sys::backtrace::_print_fmt::h744638bebbff2806 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x60ff87719582 - ::fmt::he6e74fa9d0076b5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x60ff8773e183 - core::fmt::rt::Argument::fmt::hf88a3177e76af877 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x60ff8773e183 - core::fmt::write::h6442196e41589522 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/mod.rs:1446:25 [INFO] [stdout] 6: 0x60ff877165a3 - std::io::default_write_fmt::h19b804dc75596022 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x60ff877165a3 - std::io::Write::write_fmt::h561df7c669043671 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:1914:13 [INFO] [stdout] 8: 0x60ff877193d2 - std::sys::backtrace::BacktraceLock::print::h25e1ce4c29150054 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x60ff8771ab0c - std::panicking::default_hook::{{closure}}::h36663bdaae83f2bb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:300:22 [INFO] [stdout] 10: 0x60ff8771a962 - std::panicking::default_hook::hb9d7c40580cf1835 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x60ff876e40f4 - as core::ops::function::Fn>::call::h53bdf3f1ac68020f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 12: 0x60ff876e40f4 - test::test_main_with_exit_callback::{{closure}}::h3ae9af1665ff5b7d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x60ff8771b603 - as core::ops::function::Fn>::call::ha3a705c6ebc0f8fb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 14: 0x60ff8771b603 - std::panicking::rust_panic_with_hook::h2d703857e4ba629f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x60ff8771b2ba - std::panicking::begin_panic_handler::{{closure}}::h53dd12a17ad784b1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x60ff87719a89 - std::sys::backtrace::__rust_end_short_backtrace::hf54a874920d38937 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x60ff8771af4d - __rustc[22d03d94d4da23d0]::rust_begin_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x60ff8773cc20 - core::panicking::panic_fmt::hb74c170c8276d1d6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x60ff8773cf43 - core::panicking::assert_failed_inner::h1a3c526c7717b97a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:432:17 [INFO] [stdout] 20: 0x60ff87699861 - core::panicking::assert_failed::h83a3a7ffeb643287 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:387:5 [INFO] [stdout] 21: 0x60ff87699fc0 - leet_code_exercise::two_sum_2::tests::test::h00ead031d30f7b5e [INFO] [stdout] at /opt/rustwide/workdir/src/two_sum_2.rs:28:9 [INFO] [stdout] 22: 0x60ff87699db7 - leet_code_exercise::two_sum_2::tests::test::{{closure}}::he69c71adf539be62 [INFO] [stdout] at /opt/rustwide/workdir/src/two_sum_2.rs:27:14 [INFO] [stdout] 23: 0x60ff87692376 - core::ops::function::FnOnce::call_once::h4a88b640d8f6d6bc [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x60ff876e98eb - core::ops::function::FnOnce::call_once::h0c81d2c7e362685a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x60ff876e98eb - test::__rust_begin_short_backtrace::hc62049913de4b9c6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x60ff876e8b02 - test::run_test_in_process::{{closure}}::h906d61461feea06d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:671:60 [INFO] [stdout] 27: 0x60ff876e8b02 - as core::ops::function::FnOnce<()>>::call_once::h962d8c24a3ec06f1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x60ff876e8b02 - std::panicking::try::do_call::h88e304055018b07f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x60ff876e8b02 - std::panicking::try::h34046f0780b49f58 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x60ff876e8b02 - std::panic::catch_unwind::h7d7ad4d133a51a76 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x60ff876e8b02 - test::run_test_in_process::h0871d7f888d1f41c [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x60ff876e8b02 - test::run_test::{{closure}}::h696f8114d8bae20e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x60ff876abef4 - test::run_test::{{closure}}::h632082d0bd36bde1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x60ff876abef4 - std::sys::backtrace::__rust_begin_short_backtrace::hf4db03c672d46ea2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 35: 0x60ff876af9ca - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h571ce7b4ea6fba0e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x60ff876af9ca - as core::ops::function::FnOnce<()>>::call_once::h79478c2f2b0b4ed6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x60ff876af9ca - std::panicking::try::do_call::hdfb524d8b1c5ea5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x60ff876af9ca - std::panicking::try::hb57ee69084fa6c6a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x60ff876af9ca - std::panic::catch_unwind::h1fcc7dadd90dd47c [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x60ff876af9ca - std::thread::Builder::spawn_unchecked_::{{closure}}::h7201710e36d47c29 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x60ff876af9ca - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha75b12b48ae5b3d2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x60ff8771ceab - as core::ops::function::FnOnce>::call_once::h02517bb8c2b8e279 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 43: 0x60ff8771ceab - as core::ops::function::FnOnce>::call_once::h760bb73d54d4c118 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 44: 0x60ff8771ceab - std::sys::pal::unix::thread::Thread::new::thread_start::h91ff250566269b77 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] 45: 0x7c35347c7aa4 - [INFO] [stdout] 46: 0x7c3534854a34 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] two_sum_2::tests::test [INFO] [stdout] [INFO] [stdout] test result: FAILED. 12 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin leet_code_exercise` [INFO] running `Command { std: "docker" "inspect" "e87f699d0afb72c4ebef245c2e3f0bae5ea1c9ccaa301ece72c645025ca134d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e87f699d0afb72c4ebef245c2e3f0bae5ea1c9ccaa301ece72c645025ca134d8", kill_on_drop: false }` [INFO] [stdout] e87f699d0afb72c4ebef245c2e3f0bae5ea1c9ccaa301ece72c645025ca134d8