[INFO] cloning repository https://github.com/thanakritju/reetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thanakritju/reetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthanakritju%2Freetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthanakritju%2Freetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 50b2c513627f0df758c08073dfe8b262723fd30b [INFO] checking thanakritju/reetcode against master#18a6d911caba59605eb03db1452848a85d2e5879 for pr-112743 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthanakritju%2Freetcode" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/thanakritju/reetcode on toolchain 18a6d911caba59605eb03db1452848a85d2e5879 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/thanakritju/reetcode [INFO] finished tweaking git repo https://github.com/thanakritju/reetcode [INFO] tweaked toml for git repo https://github.com/thanakritju/reetcode written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/thanakritju/reetcode 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" "+18a6d911caba59605eb03db1452848a85d2e5879" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded html2text v0.4.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9abd72a1a9575a432fa83250eeb891e0c6e8a26888fa495318f3f47a5ed8ddf1 [INFO] running `Command { std: "docker" "start" "-a" "9abd72a1a9575a432fa83250eeb891e0c6e8a26888fa495318f3f47a5ed8ddf1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9abd72a1a9575a432fa83250eeb891e0c6e8a26888fa495318f3f47a5ed8ddf1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9abd72a1a9575a432fa83250eeb891e0c6e8a26888fa495318f3f47a5ed8ddf1", kill_on_drop: false }` [INFO] [stdout] 9abd72a1a9575a432fa83250eeb891e0c6e8a26888fa495318f3f47a5ed8ddf1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+18a6d911caba59605eb03db1452848a85d2e5879" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ef55cb7e7047a3583f7ff6f4f17c47f9e3af578a85f6ddd02de35838605ad32 [INFO] running `Command { std: "docker" "start" "-a" "8ef55cb7e7047a3583f7ff6f4f17c47f9e3af578a85f6ddd02de35838605ad32", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.47 [INFO] [stderr] Compiling libc v0.2.135 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking once_cell v1.15.0 [INFO] [stderr] Compiling syn v1.0.103 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling serde v1.0.147 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling tokio v1.21.2 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking itoa v1.0.4 [INFO] [stderr] Compiling parking_lot_core v0.9.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.7 [INFO] [stderr] Compiling openssl-sys v0.9.76 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Compiling futures-task v0.3.25 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Checking tracing-core v0.1.30 [INFO] [stderr] Compiling futures-util v0.3.25 [INFO] [stderr] Compiling openssl v0.10.42 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Checking futf v0.1.5 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking futures-io v0.3.25 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking futures-sink v0.3.25 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking tendril v0.4.3 [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking string_cache v0.8.4 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking percent-encoding v2.2.0 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking form_urlencoded v1.1.0 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Compiling serde_json v1.0.87 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling serde_derive v1.0.147 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Checking os_str_bytes v6.3.1 [INFO] [stderr] Checking xml5ever v0.17.0 [INFO] [stderr] Checking tokio-util v0.7.4 [INFO] [stderr] Checking clap_lex v0.3.0 [INFO] [stderr] Checking url v2.3.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking ipnet v2.5.0 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking h2 v0.3.14 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Compiling clap_derive v4.0.18 [INFO] [stderr] Checking hyper v0.14.20 [INFO] [stderr] Checking html2text v0.4.3 [INFO] [stderr] Checking clap v4.0.18 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.12 [INFO] [stderr] Checking reetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `strs` [INFO] [stdout] --> src/solution/s0014_longest_common_prefix.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn longest_common_prefix(strs: Vec) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_strs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solution/s0014_longest_common_prefix.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut longest = String::from(""); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 20 | generate => { [INFO] [stdout] | -------- matches any value [INFO] [stdout] ... [INFO] [stdout] 24 | _ => { [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generate` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let generate = String::from("generate"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generate` [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | generate => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/solution/s0001_two_sum.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub 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/solution/s0001_two_sum.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | 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/solution/s0009_palindrome_number.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_palindrome` is never used [INFO] [stdout] --> src/solution/s0009_palindrome_number.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn is_palindrome(x: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/solution/s0013_roman_to_integer.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `roman_to_int` is never used [INFO] [stdout] --> src/solution/s0013_roman_to_integer.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn roman_to_int(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/solution/s0014_longest_common_prefix.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `longest_common_prefix` is never used [INFO] [stdout] --> src/solution/s0014_longest_common_prefix.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn longest_common_prefix(strs: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `strs` [INFO] [stdout] --> src/solution/s0014_longest_common_prefix.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn longest_common_prefix(strs: Vec) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_strs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/solution/s0014_longest_common_prefix.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut longest = String::from(""); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 20 | generate => { [INFO] [stdout] | -------- matches any value [INFO] [stdout] ... [INFO] [stdout] 24 | _ => { [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generate` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let generate = String::from("generate"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generate` [INFO] [stdout] --> src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | generate => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.68s [INFO] running `Command { std: "docker" "inspect" "8ef55cb7e7047a3583f7ff6f4f17c47f9e3af578a85f6ddd02de35838605ad32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ef55cb7e7047a3583f7ff6f4f17c47f9e3af578a85f6ddd02de35838605ad32", kill_on_drop: false }` [INFO] [stdout] 8ef55cb7e7047a3583f7ff6f4f17c47f9e3af578a85f6ddd02de35838605ad32