[INFO] cloning repository https://github.com/EleisonC/LeetCode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/EleisonC/LeetCode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEleisonC%2FLeetCode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEleisonC%2FLeetCode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b47cdf312572db654ce21dfb8cb03375d1b3a444 [INFO] checking EleisonC/LeetCode against 98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3 for pr-160235-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FEleisonC%2FLeetCode" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/EleisonC/LeetCode [INFO] finished tweaking git repo https://github.com/EleisonC/LeetCode [INFO] tweaked toml for git repo https://github.com/EleisonC/LeetCode written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/EleisonC/LeetCode on toolchain 98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/EleisonC/LeetCode 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" "+98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 6c2f7a576a435810eaeb8f17982d2abb47e420013b223788c7fc125b966ec1b7 [INFO] running `Command { std: "docker" "start" "6c2f7a576a435810eaeb8f17982d2abb47e420013b223788c7fc125b966ec1b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c2f7a576a435810eaeb8f17982d2abb47e420013b223788c7fc125b966ec1b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6c2f7a576a435810eaeb8f17982d2abb47e420013b223788c7fc125b966ec1b7" "/opt/rustwide/cargo-home/bin/cargo" "+98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c2f7a576a435810eaeb8f17982d2abb47e420013b223788c7fc125b966ec1b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6c2f7a576a435810eaeb8f17982d2abb47e420013b223788c7fc125b966ec1b7" "/opt/rustwide/cargo-home/bin/cargo" "+98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking leetcode-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `iter::once` and `path::Display` [INFO] [stdout] --> src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{iter::once, path::Display}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `hash` and `num` [INFO] [stdout] --> src/leetcode.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use core::{hash, num}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `iter::once` and `path::Display` [INFO] [stdout] --> src/main.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{iter::once, path::Display}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `hash` and `num` [INFO] [stdout] --> src/leetcode.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use core::{hash, num}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/leetcode.rs:292:10 [INFO] [stdout] | [INFO] [stdout] 292 | let (mut curr, mut prev) = (fruits[0], None); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/leetcode.rs:292:20 [INFO] [stdout] | [INFO] [stdout] 292 | let (mut curr, mut prev) = (fruits[0], None); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/leetcode.rs:292:10 [INFO] [stdout] | [INFO] [stdout] 292 | let (mut curr, mut prev) = (fruits[0], None); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/leetcode.rs:292:20 [INFO] [stdout] | [INFO] [stdout] 292 | let (mut curr, mut prev) = (fruits[0], None); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_palindrome` is never used [INFO] [stdout] --> src/leetcode.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn is_palindrome(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `three_sum` is never used [INFO] [stdout] --> src/leetcode.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn three_sum(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_sub_array_len` is never used [INFO] [stdout] --> src/leetcode.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn min_sub_array_len(target: i32, nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_of_longest_substring` is never used [INFO] [stdout] --> src/leetcode.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_area` is never used [INFO] [stdout] --> src/leetcode.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn max_area(height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `character_replacement` is never used [INFO] [stdout] --> src/leetcode.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn character_replacement (s: String, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum` is never used [INFO] [stdout] --> src/leetcode.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn two_sum(numbers: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_sum_subarray` is never used [INFO] [stdout] --> src/leetcode.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn max_sum_subarray(numbers: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_duplicates` is never used [INFO] [stdout] --> src/leetcode.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn remove_duplicates(nums: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_fruit` is never used [INFO] [stdout] --> src/leetcode.rs:264:8 [INFO] [stdout] | [INFO] [stdout] 264 | pub fn total_fruit(fruits: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_fruit_v2` is never used [INFO] [stdout] --> src/leetcode.rs:289:8 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn total_fruit_v2(fruits: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_inclusion` is never used [INFO] [stdout] --> src/leetcode.rs:307:8 [INFO] [stdout] | [INFO] [stdout] 307 | pub fn check_inclusion(s1: String, s2: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_colors` is never used [INFO] [stdout] --> src/leetcode.rs:343:8 [INFO] [stdout] | [INFO] [stdout] 343 | pub fn sort_colors(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_anagrams` is never used [INFO] [stdout] --> src/leetcode.rs:365:8 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn find_anagrams(s: String, p: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_ones` is never used [INFO] [stdout] --> src/leetcode.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | pub fn longest_ones(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subarrays_with_k_distinct` is never used [INFO] [stdout] --> src/leetcode.rs:423:8 [INFO] [stdout] | [INFO] [stdout] 423 | pub fn subarrays_with_k_distinct(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_zeroes` is never used [INFO] [stdout] --> src/leetcode.rs:456:8 [INFO] [stdout] | [INFO] [stdout] 456 | pub fn move_zeroes(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_palindrome` is never used [INFO] [stdout] --> src/leetcode.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn is_palindrome(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `three_sum` is never used [INFO] [stdout] --> src/leetcode.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn three_sum(nums: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_sub_array_len` is never used [INFO] [stdout] --> src/leetcode.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn min_sub_array_len(target: i32, nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_of_longest_substring` is never used [INFO] [stdout] --> src/leetcode.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_area` is never used [INFO] [stdout] --> src/leetcode.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn max_area(height: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `character_replacement` is never used [INFO] [stdout] --> src/leetcode.rs:164:8 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn character_replacement (s: String, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `two_sum` is never used [INFO] [stdout] --> src/leetcode.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn two_sum(numbers: Vec, target: i32) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_sum_subarray` is never used [INFO] [stdout] --> src/leetcode.rs:209:8 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn max_sum_subarray(numbers: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_duplicates` is never used [INFO] [stdout] --> src/leetcode.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn remove_duplicates(nums: &mut Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_fruit` is never used [INFO] [stdout] --> src/leetcode.rs:264:8 [INFO] [stdout] | [INFO] [stdout] 264 | pub fn total_fruit(fruits: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_fruit_v2` is never used [INFO] [stdout] --> src/leetcode.rs:289:8 [INFO] [stdout] | [INFO] [stdout] 289 | pub fn total_fruit_v2(fruits: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_inclusion` is never used [INFO] [stdout] --> src/leetcode.rs:307:8 [INFO] [stdout] | [INFO] [stdout] 307 | pub fn check_inclusion(s1: String, s2: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_colors` is never used [INFO] [stdout] --> src/leetcode.rs:343:8 [INFO] [stdout] | [INFO] [stdout] 343 | pub fn sort_colors(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_anagrams` is never used [INFO] [stdout] --> src/leetcode.rs:365:8 [INFO] [stdout] | [INFO] [stdout] 365 | pub fn find_anagrams(s: String, p: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_ones` is never used [INFO] [stdout] --> src/leetcode.rs:401:8 [INFO] [stdout] | [INFO] [stdout] 401 | pub fn longest_ones(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `subarrays_with_k_distinct` is never used [INFO] [stdout] --> src/leetcode.rs:423:8 [INFO] [stdout] | [INFO] [stdout] 423 | pub fn subarrays_with_k_distinct(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_zeroes` is never used [INFO] [stdout] --> src/leetcode.rs:456:8 [INFO] [stdout] | [INFO] [stdout] 456 | pub fn move_zeroes(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "6c2f7a576a435810eaeb8f17982d2abb47e420013b223788c7fc125b966ec1b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c2f7a576a435810eaeb8f17982d2abb47e420013b223788c7fc125b966ec1b7", kill_on_drop: false }` [INFO] [stdout] 6c2f7a576a435810eaeb8f17982d2abb47e420013b223788c7fc125b966ec1b7