[INFO] cloning repository https://github.com/Yogaflre/leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Yogaflre/leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYogaflre%2Fleetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYogaflre%2Fleetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac5e9de106638c22b6866c00a7944bb6eedfad03 [INFO] checking Yogaflre/leetcode against try#b1cc2963e8346ba1f5afb1edb86dbcf3f9ef0c5f for pr-76104 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYogaflre%2Fleetcode" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Yogaflre/leetcode on toolchain b1cc2963e8346ba1f5afb1edb86dbcf3f9ef0c5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b1cc2963e8346ba1f5afb1edb86dbcf3f9ef0c5f" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Yogaflre/leetcode [INFO] finished tweaking git repo https://github.com/Yogaflre/leetcode [INFO] tweaked toml for git repo https://github.com/Yogaflre/leetcode written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/Yogaflre/leetcode already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b1cc2963e8346ba1f5afb1edb86dbcf3f9ef0c5f" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+b1cc2963e8346ba1f5afb1edb86dbcf3f9ef0c5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb812835c802d2fe3024d079ef1934c59cf37d342388b16d28eca6e20150e1e5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "fb812835c802d2fe3024d079ef1934c59cf37d342388b16d28eca6e20150e1e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb812835c802d2fe3024d079ef1934c59cf37d342388b16d28eca6e20150e1e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb812835c802d2fe3024d079ef1934c59cf37d342388b16d28eca6e20150e1e5", kill_on_drop: false }` [INFO] [stdout] fb812835c802d2fe3024d079ef1934c59cf37d342388b16d28eca6e20150e1e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+b1cc2963e8346ba1f5afb1edb86dbcf3f9ef0c5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 91e32ed12fcb86aafa9ed4d1a8795400dc1e4b50d8ff14156979d2018567d244 [INFO] running `Command { std: "docker" "start" "-a" "91e32ed12fcb86aafa9ed4d1a8795400dc1e4b50d8ff14156979d2018567d244", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/medium/counting_bits.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / /** [INFO] [stdout] 26 | | * 找规律 [INFO] [stdout] 27 | | * 0 1 2 3 4 5 6 7 [INFO] [stdout] 28 | | * 0 1 1 2 1 2 2 3 [INFO] [stdout] 29 | | * 当n/二进制整数==0时,res[n]=1,并且将除数设置为最新的二进制整数 [INFO] [stdout] 30 | | * 否则res[n]=res[余数] + 1 [INFO] [stdout] 31 | | */ [INFO] [stdout] | |___________^ [INFO] [stdout] 32 | let mut res: Vec = vec![0; num as usize + 1]; [INFO] [stdout] | -------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/medium/merge_intervals.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/medium/counting_bits.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / /** [INFO] [stdout] 26 | | * 找规律 [INFO] [stdout] 27 | | * 0 1 2 3 4 5 6 7 [INFO] [stdout] 28 | | * 0 1 1 2 1 2 2 3 [INFO] [stdout] 29 | | * 当n/二进制整数==0时,res[n]=1,并且将除数设置为最新的二进制整数 [INFO] [stdout] 30 | | * 否则res[n]=res[余数] + 1 [INFO] [stdout] 31 | | */ [INFO] [stdout] | |___________^ [INFO] [stdout] 32 | let mut res: Vec = vec![0; num as usize + 1]; [INFO] [stdout] | -------------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/medium/merge_intervals.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/base/bit_map.rs:76:23 [INFO] [stdout] | [INFO] [stdout] 76 | fn set(&mut self, n: usize) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/base/bit_map.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | fn get(&self, n: usize) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nums` [INFO] [stdout] --> src/base/heap.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | fn topN(nums: Vec, n: usize) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_nums` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/base/heap.rs:112:29 [INFO] [stdout] | [INFO] [stdout] 112 | fn topN(nums: Vec, n: usize) -> Vec { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nums` [INFO] [stdout] --> src/base/heap.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | fn find_mid(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_nums` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pre` is assigned to, but never used [INFO] [stdout] --> src/base/list_node.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut pre: &mut Option> = &mut None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_pre` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pre` is never read [INFO] [stdout] --> src/base/list_node.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | pre = temp; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mains` [INFO] [stdout] --> src/base/matchs.rs:107:16 [INFO] [stdout] | [INFO] [stdout] 107 | fn good_suffix(mains: &Vec, aims: &Vec, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_mains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aims` [INFO] [stdout] --> src/base/matchs.rs:107:35 [INFO] [stdout] | [INFO] [stdout] 107 | fn good_suffix(mains: &Vec, aims: &Vec, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_aims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/base/matchs.rs:107:53 [INFO] [stdout] | [INFO] [stdout] 107 | fn good_suffix(mains: &Vec, aims: &Vec, i: usize, j: usize) -> usize { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/base/matchs.rs:107:63 [INFO] [stdout] | [INFO] [stdout] 107 | fn good_suffix(mains: &Vec, aims: &Vec, i: usize, j: usize) -> usize { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/base/matchs.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | fn kmp(a: &str, b: &str) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/base/matchs.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | fn kmp(a: &str, b: &str) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/base/tree_node.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn create(nodes: Vec) -> Option>> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `heights` [INFO] [stdout] --> src/hard/largest_rectangle_in_histogram.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn largest_rectangle_area(heights: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `l` is never read [INFO] [stdout] --> src/hard/maximal_rectangle.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut l = i; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmp` [INFO] [stdout] --> src/hard/maximal_rectangle.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | let mut tmp = j; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metrix` [INFO] [stdout] --> src/medium/course_schedule.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let metrix: Vec> = vec![vec![0; num_courses as usize]; num_courses as usize]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prerequisites` [INFO] [stdout] --> src/medium/course_schedule.rs:73:42 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn can_finish2(num_courses: i32, prerequisites: Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prerequisites` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot borrow `count_table` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/base/huffman_coding.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 11 | match count_table.get(&i) { [INFO] [stdout] | ----------- immutable borrow occurs here [INFO] [stdout] 12 | Some(n) => count_table.insert(i, n + 1), [INFO] [stdout] | ^^^^^^^^^^^ - immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/base/sort_algo.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | fn merge(mut nums: Vec) -> Vec { [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/easy/reverse_linked_list.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | mut pre: Option>, [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/hard/maximal_rectangle.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | let mut tmp = j; [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/hard/regular_expression_matching.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | fn rmatch(s: &[char], mut si: usize, p: &[char], mut pi: usize) -> bool { [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/hard/regular_expression_matching.rs:59:54 [INFO] [stdout] | [INFO] [stdout] 59 | fn rmatch(s: &[char], mut si: usize, p: &[char], mut pi: usize) -> bool { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/base/bit_map.rs:76:23 [INFO] [stdout] | [INFO] [stdout] 76 | fn set(&mut self, n: usize) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/base/bit_map.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | fn get(&self, n: usize) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nums` [INFO] [stdout] --> src/base/heap.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | fn topN(nums: Vec, n: usize) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_nums` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/base/heap.rs:112:29 [INFO] [stdout] | [INFO] [stdout] 112 | fn topN(nums: Vec, n: usize) -> Vec { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nums` [INFO] [stdout] --> src/base/heap.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | fn find_mid(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_nums` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pre` is assigned to, but never used [INFO] [stdout] --> src/base/list_node.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut pre: &mut Option> = &mut None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_pre` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pre` is never read [INFO] [stdout] --> src/base/list_node.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | pre = temp; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mains` [INFO] [stdout] --> src/base/matchs.rs:107:16 [INFO] [stdout] | [INFO] [stdout] 107 | fn good_suffix(mains: &Vec, aims: &Vec, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_mains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `aims` [INFO] [stdout] --> src/base/matchs.rs:107:35 [INFO] [stdout] | [INFO] [stdout] 107 | fn good_suffix(mains: &Vec, aims: &Vec, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_aims` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/base/matchs.rs:107:53 [INFO] [stdout] | [INFO] [stdout] 107 | fn good_suffix(mains: &Vec, aims: &Vec, i: usize, j: usize) -> usize { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/base/matchs.rs:107:63 [INFO] [stdout] | [INFO] [stdout] 107 | fn good_suffix(mains: &Vec, aims: &Vec, i: usize, j: usize) -> usize { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/base/matchs.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | fn kmp(a: &str, b: &str) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/base/matchs.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | fn kmp(a: &str, b: &str) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nodes` [INFO] [stdout] --> src/base/tree_node.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn create(nodes: Vec) -> Option>> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nodes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `heights` [INFO] [stdout] --> src/hard/largest_rectangle_in_histogram.rs:18:35 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn largest_rectangle_area(heights: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `l` is never read [INFO] [stdout] --> src/hard/maximal_rectangle.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut l = i; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmp` [INFO] [stdout] --> src/hard/maximal_rectangle.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | let mut tmp = j; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `metrix` [INFO] [stdout] --> src/medium/course_schedule.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | let metrix: Vec> = vec![vec![0; num_courses as usize]; num_courses as usize]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_metrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prerequisites` [INFO] [stdout] --> src/medium/course_schedule.rs:73:42 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn can_finish2(num_courses: i32, prerequisites: Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prerequisites` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot borrow `count_table` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/base/huffman_coding.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 11 | match count_table.get(&i) { [INFO] [stdout] | ----------- immutable borrow occurs here [INFO] [stdout] 12 | Some(n) => count_table.insert(i, n + 1), [INFO] [stdout] | ^^^^^^^^^^^ - immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/base/sort_algo.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | fn merge(mut nums: Vec) -> Vec { [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/easy/reverse_linked_list.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | mut pre: Option>, [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/hard/maximal_rectangle.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | let mut tmp = j; [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/hard/regular_expression_matching.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | fn rmatch(s: &[char], mut si: usize, p: &[char], mut pi: usize) -> bool { [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/hard/regular_expression_matching.rs:59:54 [INFO] [stdout] | [INFO] [stdout] 59 | fn rmatch(s: &[char], mut si: usize, p: &[char], mut pi: usize) -> bool { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "91e32ed12fcb86aafa9ed4d1a8795400dc1e4b50d8ff14156979d2018567d244", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91e32ed12fcb86aafa9ed4d1a8795400dc1e4b50d8ff14156979d2018567d244", kill_on_drop: false }` [INFO] [stdout] 91e32ed12fcb86aafa9ed4d1a8795400dc1e4b50d8ff14156979d2018567d244