[INFO] cloning repository https://github.com/hugefiver/leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hugefiver/leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhugefiver%2Fleetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhugefiver%2Fleetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2e633adc21e3fc2e3e593d91c72679f6def46454 [INFO] building hugefiver/leetcode 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%2Fhugefiver%2Fleetcode" "/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/hugefiver/leetcode 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/hugefiver/leetcode [INFO] finished tweaking git repo https://github.com/hugefiver/leetcode [INFO] tweaked toml for git repo https://github.com/hugefiver/leetcode written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hugefiver/leetcode already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 08c98262bacd891414dfc63066d2060093ef5f7651e23eebd53e4aa0ed23e7af [INFO] running `Command { std: "docker" "start" "-a" "08c98262bacd891414dfc63066d2060093ef5f7651e23eebd53e4aa0ed23e7af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "08c98262bacd891414dfc63066d2060093ef5f7651e23eebd53e4aa0ed23e7af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08c98262bacd891414dfc63066d2060093ef5f7651e23eebd53e4aa0ed23e7af", kill_on_drop: false }` [INFO] [stdout] 08c98262bacd891414dfc63066d2060093ef5f7651e23eebd53e4aa0ed23e7af [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 -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] eeec993723e4814acd5a19420da519330846b439a63b4968c0538da388892cba [INFO] running `Command { std: "docker" "start" "-a" "eeec993723e4814acd5a19420da519330846b439a63b4968c0538da388892cba", kill_on_drop: false }` [INFO] [stderr] Compiling leetcode-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/p557-reverse-words-in-a-string-iii.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn reverse_words(mut s: String) -> String { [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: associated function `reverse_words` is never used [INFO] [stdout] --> src/bin/p557-reverse-words-in-a-string-iii.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 1 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn reverse_words(mut s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p557-reverse-words-in-a-string-iii.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_skyline` is never used [INFO] [stdout] --> src/bin/p218-the-skyline-problem-2-priorite-queue.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn get_skyline(buildings: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::BorrowMut` and `rc::Rc` [INFO] [stdout] --> src/bin/p24-swap-nodes-in-pairs.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{rc::Rc, borrow::BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Sum` [INFO] [stdout] --> src/bin/p18-4sum.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::Sum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p218-the-skyline-problem-2-priorite-queue.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `min_cost` is never used [INFO] [stdout] --> src/bin/p1578-minimum-time-to-make-rope-colorful.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 1 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 2 | pub fn min_cost(colors: String, needed_time: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `vertical_traversal` and `travel` are never used [INFO] [stdout] --> src/bin/p987-vertical-order-traversal.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 23 | pub fn vertical_traversal(root: Option>>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn travel( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `divide` is never used [INFO] [stdout] --> src/bin/p29-divide-two-integers.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 1 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 2 | pub fn divide(dividend: i32, divisor: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `four_sum` is never used [INFO] [stdout] --> src/bin/p18-4sum.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn four_sum(nums: Vec, target: i32) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p18-4sum.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p1578-minimum-time-to-make-rope-colorful.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p29-divide-two-integers.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p987-vertical-order-traversal.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution1` is never constructed [INFO] [stdout] --> src/bin/p1770-maximum-score-from-performing-multiplication-operations.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Solution1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `maximum_score` is never used [INFO] [stdout] --> src/bin/p1770-maximum-score-from-performing-multiplication-operations.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution1 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 4 | pub fn maximum_score(nums: Vec, multipliers: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution2` is never constructed [INFO] [stdout] --> src/bin/p1770-maximum-score-from-performing-multiplication-operations.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Solution2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `maximum_score` is never used [INFO] [stdout] --> src/bin/p1770-maximum-score-from-performing-multiplication-operations.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Solution2 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 20 | pub fn maximum_score(nums: Vec, multipliers: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution3` is never constructed [INFO] [stdout] --> src/bin/p1770-maximum-score-from-performing-multiplication-operations.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct Solution3; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `swap_pairs` and `foo` are never used [INFO] [stdout] --> src/bin/p24-swap-nodes-in-pairs.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 20 | pub fn swap_pairs(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn foo(mut head: Option>) -> Option> { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `dp` and `maximum_score` are never used [INFO] [stdout] --> src/bin/p1770-maximum-score-from-performing-multiplication-operations.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Solution3 { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 40 | fn dp(nums: &[i32], multipliers: &[i32], left: usize, right: usize, memo: &mut HashMap<(usize, usize), i32>) -> i32 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn maximum_score(nums: Vec, multipliers: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution4` is never constructed [INFO] [stdout] --> src/bin/p1770-maximum-score-from-performing-multiplication-operations.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct Solution4; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `dp` and `maximum_score` are never used [INFO] [stdout] --> src/bin/p1770-maximum-score-from-performing-multiplication-operations.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 61 | impl Solution4 { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 62 | fn dp(nums: &[i32], multipliers: &[i32], left: usize, right: usize, memo: &mut [Vec>]) -> i32 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn maximum_score(nums: Vec, multipliers: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution5` is never constructed [INFO] [stdout] --> src/bin/p1770-maximum-score-from-performing-multiplication-operations.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | struct Solution5; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `maximum_score` is never used [INFO] [stdout] --> src/bin/p1770-maximum-score-from-performing-multiplication-operations.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl Solution5 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 131 | pub fn maximum_score(nums: Vec, multipliers: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/p24-swap-nodes-in-pairs.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 43 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 44 | #[inline] [INFO] [stdout] 45 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p24-swap-nodes-in-pairs.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `contains_nearby_duplicate` is never used [INFO] [stdout] --> src/bin/p219-contains-duplicate-ii.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 5 | pub fn contains_nearby_duplicate(nums: Vec, k: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `contains_nearby_duplicate` is never used [INFO] [stdout] --> src/bin/p219-contains-duplicate-ii.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Solution1 { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 31 | pub fn contains_nearby_duplicate(nums: Vec, k: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p219-contains-duplicate-ii.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution1` is never constructed [INFO] [stdout] --> src/bin/p219-contains-duplicate-ii.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | struct Solution1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `average_of_levels` and `travel` are never used [INFO] [stdout] --> src/bin/p637-average-level-binary-tree.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 22 | pub fn average_of_levels(root: Option>>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn travel( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p637-average-level-binary-tree.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `length_of_longest_substring` is never used [INFO] [stdout] --> src/bin/p3-longest-substring-without-repeating-characters.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 1 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 2 | pub fn length_of_longest_substring(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p3-longest-substring-without-repeating-characters.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y2` is never read [INFO] [stdout] --> src/bin/p218-the-skyline-problem-1.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | let mut y2 = 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: struct `SkyLine` is never constructed [INFO] [stdout] --> src/bin/p218-the-skyline-problem-1.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct SkyLine { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_skyline` is never used [INFO] [stdout] --> src/bin/p218-the-skyline-problem-1.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 29 | pub fn get_skyline(buildings: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p218-the-skyline-problem-1.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/p623-add-one-row-to-tree.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | mut root: Option>>, [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: associated function `add_one_row` is never used [INFO] [stdout] --> src/bin/p623-add-one-row-to-tree.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 22 | pub fn add_one_row( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p623-add-one-row-to-tree.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find_ball` is never used [INFO] [stdout] --> src/bin/p1706-where-will-the-ball-fall.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 1 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 2 | pub fn find_ball(grid: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p1706-where-will-the-ball-fall.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_valid_sudoku` is never used [INFO] [stdout] --> src/bin/p36-valid-sudoku.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 1 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 2 | pub fn is_valid_sudoku(board: Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p36-valid-sudoku.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `drain_filter` [INFO] [stdout] --> src/bin/p27-remove-element.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(drain_filter)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `find_ball` is never used [INFO] [stdout] --> src/bin/p1706-where-will-the-ball-fall-1.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 1 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 2 | pub fn find_ball(grid: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p1706-where-will-the-ball-fall-1.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p10-regular-readable-nfa.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_match` is never used [INFO] [stdout] --> src/bin/p10-regular-readable-nfa.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 4 | pub fn is_match(s: String, p: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pattern` is never constructed [INFO] [stdout] --> src/bin/p10-regular-readable-nfa.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | struct Pattern(Vec); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `matches`, `is_repeat`, `next_state`, `insert_all_reachable`, and `at_final_state` are never used [INFO] [stdout] --> src/bin/p10-regular-readable-nfa.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl Pattern { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 49 | fn new(p: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn matches(&self, state: usize, ch: u8) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn is_repeat(&self, state: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn next_state(&self, state: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn insert_all_reachable(&self, states: &mut HashSet, mut state: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn at_final_state(&self, state: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `drain_filter` found for mutable reference `&mut Vec` in the current scope [INFO] [stdout] --> src/bin/p27-remove-element.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | (nums.len() - nums.drain_filter(|x| *x == val).count()) as i32 [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `&mut Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] warning: associated function `find_duplicate` is never used [INFO] [stdout] --> src/bin/p609-find-duplicate-file-in-system.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 1 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 2 | pub fn find_duplicate(paths: Vec) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p609-find-duplicate-file-in-system.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode-rs` (bin "p27-remove-element") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/p1996-num-of-weak-characters.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut max_att = properties.iter().map(|prop| prop[0]).max().unwrap(); [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: associated functions `generate_parenthesis` and `foo` are never used [INFO] [stdout] --> src/bin/p22-generate-parentheses.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 5 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | fn foo(left: i32, right: i32) -> HashSet { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `generate_parenthesis`, `generate_parenthesis_2`, and `generate_parenthesis_3` are never used [INFO] [stdout] --> src/bin/p22-generate-parentheses.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Solution2 { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 31 | pub fn generate_parenthesis(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn generate_parenthesis_2(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn generate_parenthesis_3(n: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p22-generate-parentheses.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution2` is never constructed [INFO] [stdout] --> src/bin/p22-generate-parentheses.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | struct Solution2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `number_of_weak_characters1`, `number_of_weak_characters_fold`, and `number_of_weak_characters2` are never used [INFO] [stdout] --> src/bin/p1996-num-of-weak-characters.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 1 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 2 | pub fn number_of_weak_characters1(properties: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn number_of_weak_characters_fold(mut properties: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn number_of_weak_characters2(properties: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_skyline`, `update`, and `find` are never used [INFO] [stdout] --> src/bin/p218-the-skyline-problem-2-segment-tree.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 5 | pub fn get_skyline(buildings: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn find(u: usize, left: usize, right: usize, i: usize, tree: &mut Vec<(i32, i32)>) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p218-the-skyline-problem-2-segment-tree.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `min_mutation` and `adjacent` are never used [INFO] [stdout] --> src/bin/p433-minimum-genetic-mutation-2.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 4 | pub fn min_mutation(start: String, end: String, bank: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn adjacent(a: &str, b: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p433-minimum-genetic-mutation-2.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `merge_k_lists` and `merge` are never used [INFO] [stdout] --> src/bin/p23-merge-k-sorted-lists.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Solution { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 18 | pub fn merge_k_lists(lists: Vec>>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn merge(pre: &mut Box, lists: &mut Vec>>) { [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/bin/p23-merge-k-sorted-lists.rs:64:6 [INFO] [stdout] | [INFO] [stdout] 62 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 63 | #[inline] [INFO] [stdout] 64 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/bin/p23-merge-k-sorted-lists.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "eeec993723e4814acd5a19420da519330846b439a63b4968c0538da388892cba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eeec993723e4814acd5a19420da519330846b439a63b4968c0538da388892cba", kill_on_drop: false }` [INFO] [stdout] eeec993723e4814acd5a19420da519330846b439a63b4968c0538da388892cba