[INFO] cloning repository https://github.com/VeyronSakai/my_leetcode_submits [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/VeyronSakai/my_leetcode_submits" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVeyronSakai%2Fmy_leetcode_submits", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVeyronSakai%2Fmy_leetcode_submits'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7cf544642e921ce6c51146e69c318dfada67e243 [INFO] building VeyronSakai/my_leetcode_submits against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVeyronSakai%2Fmy_leetcode_submits" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/VeyronSakai/my_leetcode_submits on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/VeyronSakai/my_leetcode_submits [INFO] finished tweaking git repo https://github.com/VeyronSakai/my_leetcode_submits [INFO] tweaked toml for git repo https://github.com/VeyronSakai/my_leetcode_submits written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/VeyronSakai/my_leetcode_submits 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded test-macro v0.1.9 [INFO] [stderr] Downloaded test-case v2.0.0-rc2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fc070f2b07bd3b1f4846d9c2ca6a6333ec1c61243645491c85e63773447d4e3a [INFO] running `Command { std: "docker" "start" "-a" "fc070f2b07bd3b1f4846d9c2ca6a6333ec1c61243645491c85e63773447d4e3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc070f2b07bd3b1f4846d9c2ca6a6333ec1c61243645491c85e63773447d4e3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc070f2b07bd3b1f4846d9c2ca6a6333ec1c61243645491c85e63773447d4e3a", kill_on_drop: false }` [INFO] [stdout] fc070f2b07bd3b1f4846d9c2ca6a6333ec1c61243645491c85e63773447d4e3a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 223480a7abeb731c223f3fbf2f1a69ea8939bf47743fdba7c33fbb4c79231d5f [INFO] running `Command { std: "docker" "start" "-a" "223480a7abeb731c223f3fbf2f1a69ea8939bf47743fdba7c33fbb4c79231d5f", kill_on_drop: false }` [INFO] [stderr] Compiling my_leetcode_submits v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `macos` in `os` [INFO] [stdout] --> src/problem232.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::macos::raw::stat; [INFO] [stdout] | ^^^^^ could not find `macos` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/std/src/os/mod.rs:155:9 [INFO] [stdout] note: the item is gated behind the `macos` feature [INFO] [stdout] --> /rustc/11663cd3bfefef7d34e8f0892c250bf698049392/library/std/src/os/mod.rs:154:7 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/problem1038.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/problem104.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::var` [INFO] [stdout] --> src/problem15.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::var; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/problem1592.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | ((total_spaces_num / (words.len() - 1), total_spaces_num % (words.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] 10 - ((total_spaces_num / (words.len() - 1), total_spaces_num % (words.len() - 1))) [INFO] [stdout] 10 + (total_spaces_num / (words.len() - 1), total_spaces_num % (words.len() - 1)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeMap` [INFO] [stdout] --> src/problem1636.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/problem168.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | let char_num = (t + ('A' as u8)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - let char_num = (t + ('A' as u8)); [INFO] [stdout] 11 + let char_num = t + ('A' as u8); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/problem169.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/problem1791.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/problem1971.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::problem1305::TreeNode` [INFO] [stdout] --> src/problem2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::problem1305::TreeNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> src/problem2073.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/problem219.rs:22:45 [INFO] [stdout] | [INFO] [stdout] 22 | let c = mp.get_mut(&nums[max(0, (i as i32 - k - 1)) as usize]).unwrap(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - let c = mp.get_mut(&nums[max(0, (i as i32 - k - 1)) as usize]).unwrap(); [INFO] [stdout] 22 + let c = mp.get_mut(&nums[max(0, i as i32 - k - 1) as usize]).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::swap` [INFO] [stdout] --> src/problem246.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::mem::swap; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/problem387.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Reverse` [INFO] [stdout] --> src/problem506.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Reverse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BinaryHeap` [INFO] [stdout] --> src/problem506.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{BinaryHeap, HashMap}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/problem101.rs:39:23 [INFO] [stdout] | [INFO] [stdout] 39 | (Some(n), None) | (None, Some(n)) => { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 39 | (Some(_n), None) | (None, Some(_n)) => { [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/problem1022.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 57 | (Some(l), Some(r)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/problem1022.rs:57:36 [INFO] [stdout] | [INFO] [stdout] 57 | (Some(l), Some(r)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem1025.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | fn get_divs(mut num: i32) -> HashSet { [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/problem1100.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut count = cur_mp.entry(c).or_insert(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/problem1100.rs:25:21 [INFO] [stdout] | [INFO] [stdout] 25 | let mut count = cur_mp.get_mut(&chars[i]).unwrap(); [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/problem1100.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | let mut count = cur_mp.entry(c).or_insert(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/problem1160.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | let mut count = char_mp.entry(c).or_insert(0); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cur_dp` is never read [INFO] [stdout] --> src/problem119.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | let mut cur_dp: Vec = Vec::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/problem1232.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut coordinates = coordinates; [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/problem1502.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let mut gap = arr[1] - bef; [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/problem155.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut count = self.mp.entry(val).or_insert(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/problem155.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let mut count = self.mp.get_mut(&val).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/problem159.rs:19:69 [INFO] [stdout] | [INFO] [stdout] 19 | let (&del_key, &del_val) = mp.iter().min_by_key(|&(&c, &pos)| pos).unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem1790.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut s1 = s1; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/problem1791.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | let mut x = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem1791.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut x = 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/problem1852.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | let mut count = cur_mp.entry(nums[i]).or_insert(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/problem1852.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | let mut i_count = cur_mp.entry(nums[i + k]).or_insert(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/problem1852.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut j_count = cur_mp.get_mut(&nums[i]).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set` [INFO] [stdout] --> src/problem1876.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | let mut set: HashSet = HashSet::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem1876.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut set: HashSet = HashSet::new(); [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/problem1971.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | let mut v1 = graph.entry(vec[0]).or_insert(Vec::new()); [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/problem1971.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | let mut v2 = graph.entry(vec[1]).or_insert(Vec::new()); [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/problem205.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut s_chars = s.chars().collect::>(); [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/problem205.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut t_chars = t.chars().collect::>(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cur` is never read [INFO] [stdout] --> src/problem206.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut cur: Option> = None; [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/problem206.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut node = ListNode { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/problem2099.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | vec.sort_by_key(|&(x, i)| i); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problem2099.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | vec.iter().map(|&(x, i)| x).collect::>() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem2099.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut k = k as usize; [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/problem21.rs:44:24 [INFO] [stdout] | [INFO] [stdout] 44 | while let Some(mut cur) = tail { [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/problem219.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | let mut count = mp.entry(nums[i]).or_insert(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/problem219.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let mut count = mp.entry(nums[i]).or_insert(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/problem246.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | let mut rotated_char_1 = match Solution::rotate_single_num(&tmp[i]) { [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/problem246.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut rotated_char_2 = match Solution::rotate_single_num(&tmp[num.len() - i - 1]) { [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/problem340.rs:20:69 [INFO] [stdout] | [INFO] [stdout] 20 | let (&del_key, &del_val) = mp.iter().min_by_key(|&(&c, &pos)| pos).unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem345.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut s = s; [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/problem383.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | let mut count = magazine_map.entry(char).or_insert(0); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/problem501.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | mp.iter().filter(|&(&key, &val)| val == max_val).map(|x| *x.0).collect() [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem501.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let mut count = mp.entry(n.borrow().val).or_insert(0); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/problem567.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | let mut left = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/problem567.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | let mut right = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem567.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut left = 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/problem567.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut right = 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/problem637.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut cur_level = 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/problem637.rs:49:21 [INFO] [stdout] | [INFO] [stdout] 49 | let mut vec = map.entry(cur_level).or_insert(vec![]); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret` is never read [INFO] [stdout] --> src/problem643.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | let mut ret: f64 = f64::MIN; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/problem703.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | fn add(&self, val: i32) -> i32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem709.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | let mut s = s; [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/problem914.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut deck = deck; [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/problem914.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | let mut count = mp.entry(*val).or_insert(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/problem917.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut s = s; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root` [INFO] [stdout] --> src/problem993.rs:26:23 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn is_cousins(root: Option>>, x: i32, y: i32) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/problem993.rs:26:60 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn is_cousins(root: Option>>, x: i32, y: i32) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/problem993.rs:26:68 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn is_cousins(root: Option>>, x: i32, y: i32) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem997.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | let mut count = mp.entry(x[1] - 1).or_insert(0); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `my_leetcode_submits` (lib) due to 1 previous error; 73 warnings emitted [INFO] running `Command { std: "docker" "inspect" "223480a7abeb731c223f3fbf2f1a69ea8939bf47743fdba7c33fbb4c79231d5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "223480a7abeb731c223f3fbf2f1a69ea8939bf47743fdba7c33fbb4c79231d5f", kill_on_drop: false }` [INFO] [stdout] 223480a7abeb731c223f3fbf2f1a69ea8939bf47743fdba7c33fbb4c79231d5f