[INFO] cloning repository https://github.com/status-code-404/Leetcode_daily [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/status-code-404/Leetcode_daily" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstatus-code-404%2FLeetcode_daily", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstatus-code-404%2FLeetcode_daily'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b9009721b37fd152a402b473a64fbdd068d08962 [INFO] building status-code-404/Leetcode_daily against try#9b5e8b16bd1c4acf4cf8e6880368314cf021a987+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstatus-code-404%2FLeetcode_daily" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/status-code-404/Leetcode_daily on toolchain 9b5e8b16bd1c4acf4cf8e6880368314cf021a987 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/status-code-404/Leetcode_daily [INFO] finished tweaking git repo https://github.com/status-code-404/Leetcode_daily [INFO] tweaked toml for git repo https://github.com/status-code-404/Leetcode_daily written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/status-code-404/Leetcode_daily 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" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "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 [ERROR] error running command: no output for 300 seconds [INFO] building status-code-404/Leetcode_daily against try#9b5e8b16bd1c4acf4cf8e6880368314cf021a987+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstatus-code-404%2FLeetcode_daily" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/status-code-404/Leetcode_daily on toolchain 9b5e8b16bd1c4acf4cf8e6880368314cf021a987 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/status-code-404/Leetcode_daily [INFO] finished tweaking git repo https://github.com/status-code-404/Leetcode_daily [INFO] tweaked toml for git repo https://github.com/status-code-404/Leetcode_daily written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/status-code-404/Leetcode_daily 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" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f8e43e6810d9e82be0ef07a49c8aa92d0814266e75b340cd6be695c02ffc7842 [INFO] running `Command { std: "docker" "start" "-a" "f8e43e6810d9e82be0ef07a49c8aa92d0814266e75b340cd6be695c02ffc7842", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f8e43e6810d9e82be0ef07a49c8aa92d0814266e75b340cd6be695c02ffc7842", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8e43e6810d9e82be0ef07a49c8aa92d0814266e75b340cd6be695c02ffc7842", kill_on_drop: false }` [INFO] [stdout] f8e43e6810d9e82be0ef07a49c8aa92d0814266e75b340cd6be695c02ffc7842 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 087e044c6dc34975ec1d951629842f7785d0d80ea2eb8a744a1ad34c21881486 [INFO] running `Command { std: "docker" "start" "-a" "087e044c6dc34975ec1d951629842f7785d0d80ea2eb8a744a1ad34c21881486", kill_on_drop: false }` [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling Leetcode_daily v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/answer_1031.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | while (index < all_len - first_len - second_len + 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - while (index < all_len - first_len - second_len + 1){ [INFO] [stdout] 20 + while index < all_len - first_len - second_len + 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/answer_1031.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | while (index2 < all_len - second_len + 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - while (index2 < all_len - second_len + 1){ [INFO] [stdout] 23 + while index2 < all_len - second_len + 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` [INFO] [stdout] --> src/answer_1092.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[recursion_limit = "2000"] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/answer_1092.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 77 | return str; [INFO] [stdout] | ---------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 93 | return String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `max_` is never read [INFO] [stdout] --> src/answer_1626.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | let mut max_ = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `left_end_index` is never read [INFO] [stdout] --> src/answer_1638.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | let mut left_end_index = left_start_index.clone() + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/answer_1638.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut ss; [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: variable does not need to be mutable [INFO] [stdout] --> src/answer_1638.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut tt; [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/answer_1638.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | let mut left_str = &ss[left_start_index..left_end_index]; [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/answer_1092.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut s1_string = s1.get_mut().get_string(); [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/answer_1092.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let mut s2_string = s2.get_mut().get_string(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/main.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let q = h.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [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/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let mut a = 0; [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/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut h = String::from("ZHello world"); [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/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut t = &h[1..2]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solute` is never used [INFO] [stdout] --> src/answer_1574.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn solute(arr: Vec) -> i32{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/answer_1626.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn dfs(mut people: Vec<[i32; 2]>, score_limit:i32) ->i32{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `answer` is never used [INFO] [stdout] --> src/answer_1626.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn answer(scores: Vec, ages: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `answer` is never used [INFO] [stdout] --> src/answer_2395.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn answer(nums: Vec) -> bool{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_diff1` is never used [INFO] [stdout] --> src/answer_1638.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn string_diff1(a:&str, b:&str) ->bool{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `answer_easy` is never used [INFO] [stdout] --> src/answer_1638.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn answer_easy(s:String, t:String) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/answer_1092.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | struct S(String); [INFO] [stdout] | - ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `change` and `get_string` are never used [INFO] [stdout] --> src/answer_1092.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl S { [INFO] [stdout] | ------ methods in this implementation [INFO] [stdout] 13 | pub fn change(&mut self, a:String){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_string(&mut self) -> String{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/answer_1092.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn dfs(index_left: i32, index_right: i32) -> String{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `answer` is never used [INFO] [stdout] --> src/answer_1092.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn answer(a: String, b: String) -> String{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_answer` is never used [INFO] [stdout] --> src/answer_1637.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn get_answer(points: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/answer_1019.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | #[inline] [INFO] [stdout] 9 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_larger_nodes` is never used [INFO] [stdout] --> src/answer_1019.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn next_larger_nodes(head: Option>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `camel_match` is never used [INFO] [stdout] --> src/answer_1023.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn camel_match(queries: Vec, pattern: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum` is never used [INFO] [stdout] --> src/answer_1031.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn sum + std::ops::Sub + Copy> (a:&[T]) -> T{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_sum_two_no_overlap` is never used [INFO] [stdout] --> src/answer_1031.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn max_sum_two_no_overlap(nums: Vec, first_len: i32, second_len: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `answer1031` is never used [INFO] [stdout] --> src/answer_1031.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn answer1031(nums: Vec, first_len: i32, second_len: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `judge_two_words` is never used [INFO] [stdout] --> src/answer_1048.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn judge_two_words(word1:String, word2:String) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/answer_1048.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn dfs(word:String, round:i32) -> i32{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `answer1048` is never used [INFO] [stdout] --> src/answer_1048.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn answer1048(words: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `translate` is never used [INFO] [stdout] --> src/answer_1048.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn translate(a:Vec<&str>) -> Vec{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Hashmap` should have an upper case name [INFO] [stdout] --> src/answer_1626.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | static ref Hashmap: Mutex>> = Mutex::new(RefCell::new(HashMap::new())); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `HASHMAP` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/answer_1638.rs:53:45 [INFO] [stdout] | [INFO] [stdout] 53 | if string_diff1(left_str.clone(), &tt.clone()[right_index..right_index + str_size]){ [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Hashmap` should have an upper case name [INFO] [stdout] --> src/answer_1092.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | static ref Hashmap: Mutex>> = Mutex::new(RefCell::new(HashMap::new())); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `HASHMAP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `String1` should have an upper case name [INFO] [stdout] --> src/answer_1092.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | static ref String1:Mutex> = Mutex::new(RefCell::new(S(String::new()))); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `STRING1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `String2` should have an upper case name [INFO] [stdout] --> src/answer_1092.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | static ref String2:Mutex> = Mutex::new(RefCell::new(S(String::new()))); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `STRING2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/answer_1092.rs:54:80 [INFO] [stdout] | [INFO] [stdout] 54 | hash.get_mut().insert([index_left, index_right], String::from(value.clone())); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/answer_1092.rs:62:80 [INFO] [stdout] | [INFO] [stdout] 62 | hash.get_mut().insert([index_left, index_right], String::from(value.clone())); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `WordLen` should have an upper case name [INFO] [stdout] --> src/answer_1048.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | static ref WordLen:Mutex>>> = Mutex::new(RefCell::new(HashMap::new())); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `WORD_LEN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `WordLink` should have an upper case name [INFO] [stdout] --> src/answer_1048.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | static ref WordLink: Mutex>> = Mutex::new(RefCell::new(HashMap::new())); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `WORD_LINK` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "087e044c6dc34975ec1d951629842f7785d0d80ea2eb8a744a1ad34c21881486", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "087e044c6dc34975ec1d951629842f7785d0d80ea2eb8a744a1ad34c21881486", kill_on_drop: false }` [INFO] [stdout] 087e044c6dc34975ec1d951629842f7785d0d80ea2eb8a744a1ad34c21881486 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 941a959ff200905439257b880908f990307957e9e2c7f3992aa01392a497dfc0 [INFO] running `Command { std: "docker" "start" "-a" "941a959ff200905439257b880908f990307957e9e2c7f3992aa01392a497dfc0", kill_on_drop: false }` [INFO] [stderr] Compiling Leetcode_daily v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/answer_1031.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | while (index < all_len - first_len - second_len + 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 20 - while (index < all_len - first_len - second_len + 1){ [INFO] [stdout] 20 + while index < all_len - first_len - second_len + 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/answer_1031.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 23 | while (index2 < all_len - second_len + 1){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - while (index2 < all_len - second_len + 1){ [INFO] [stdout] 23 + while index2 < all_len - second_len + 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` [INFO] [stdout] --> src/answer_1092.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[recursion_limit = "2000"] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/answer_1092.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 77 | return str; [INFO] [stdout] | ---------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 93 | return String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `max_` is never read [INFO] [stdout] --> src/answer_1626.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | let mut max_ = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `left_end_index` is never read [INFO] [stdout] --> src/answer_1638.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | let mut left_end_index = left_start_index.clone() + 1; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/answer_1638.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut ss; [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: variable does not need to be mutable [INFO] [stdout] --> src/answer_1638.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut tt; [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/answer_1638.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | let mut left_str = &ss[left_start_index..left_end_index]; [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/answer_1092.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut s1_string = s1.get_mut().get_string(); [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/answer_1092.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let mut s2_string = s2.get_mut().get_string(); [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/answer_1023.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut a = Vec::from([false, true,false,false,false]); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `q` [INFO] [stdout] --> src/main.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let q = h.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_q` [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/main.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let mut a = 0; [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/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut h = String::from("ZHello world"); [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/main.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let mut t = &h[1..2]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_answer` is never used [INFO] [stdout] --> src/answer_1637.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn get_answer(points: Vec>) -> i32 { [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/answer_1019.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | #[inline] [INFO] [stdout] 9 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_larger_nodes` is never used [INFO] [stdout] --> src/answer_1019.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn next_larger_nodes(head: Option>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Hashmap` should have an upper case name [INFO] [stdout] --> src/answer_1626.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | static ref Hashmap: Mutex>> = Mutex::new(RefCell::new(HashMap::new())); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `HASHMAP` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/answer_1638.rs:53:45 [INFO] [stdout] | [INFO] [stdout] 53 | if string_diff1(left_str.clone(), &tt.clone()[right_index..right_index + str_size]){ [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `Hashmap` should have an upper case name [INFO] [stdout] --> src/answer_1092.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 23 | static ref Hashmap: Mutex>> = Mutex::new(RefCell::new(HashMap::new())); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `HASHMAP` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `String1` should have an upper case name [INFO] [stdout] --> src/answer_1092.rs:24:16 [INFO] [stdout] | [INFO] [stdout] 24 | static ref String1:Mutex> = Mutex::new(RefCell::new(S(String::new()))); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `STRING1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `String2` should have an upper case name [INFO] [stdout] --> src/answer_1092.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | static ref String2:Mutex> = Mutex::new(RefCell::new(S(String::new()))); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `STRING2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/answer_1092.rs:54:80 [INFO] [stdout] | [INFO] [stdout] 54 | hash.get_mut().insert([index_left, index_right], String::from(value.clone())); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/answer_1092.rs:62:80 [INFO] [stdout] | [INFO] [stdout] 62 | hash.get_mut().insert([index_left, index_right], String::from(value.clone())); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `WordLen` should have an upper case name [INFO] [stdout] --> src/answer_1048.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | static ref WordLen:Mutex>>> = Mutex::new(RefCell::new(HashMap::new())); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `WORD_LEN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `WordLink` should have an upper case name [INFO] [stdout] --> src/answer_1048.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | static ref WordLink: Mutex>> = Mutex::new(RefCell::new(HashMap::new())); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `WORD_LINK` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "941a959ff200905439257b880908f990307957e9e2c7f3992aa01392a497dfc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "941a959ff200905439257b880908f990307957e9e2c7f3992aa01392a497dfc0", kill_on_drop: false }` [INFO] [stdout] 941a959ff200905439257b880908f990307957e9e2c7f3992aa01392a497dfc0