[INFO] cloning repository https://github.com/lsill/leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lsill/leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flsill%2Fleetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flsill%2Fleetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a8e3b3d256ff83b4523d061851a164f9b4c79aa3 [INFO] checking lsill/leetcode against master#9c3064e131f4939cc95a29bb11413c49bbda1491 for pr-144098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flsill%2Fleetcode" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lsill/leetcode [INFO] finished tweaking git repo https://github.com/lsill/leetcode [INFO] tweaked toml for git repo https://github.com/lsill/leetcode written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lsill/leetcode on toolchain 9c3064e131f4939cc95a29bb11413c49bbda1491 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lsill/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" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [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] checking lsill/leetcode against master#9c3064e131f4939cc95a29bb11413c49bbda1491 for pr-144098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flsill%2Fleetcode" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lsill/leetcode [INFO] finished tweaking git repo https://github.com/lsill/leetcode [INFO] tweaked toml for git repo https://github.com/lsill/leetcode written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lsill/leetcode on toolchain 9c3064e131f4939cc95a29bb11413c49bbda1491 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lsill/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" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6c784e949b4649f639b19325bb360b572bd5a2211a409ba36249b8a8b6816392 [INFO] running `Command { std: "docker" "start" "-a" "6c784e949b4649f639b19325bb360b572bd5a2211a409ba36249b8a8b6816392", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c784e949b4649f639b19325bb360b572bd5a2211a409ba36249b8a8b6816392", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c784e949b4649f639b19325bb360b572bd5a2211a409ba36249b8a8b6816392", kill_on_drop: false }` [INFO] [stdout] 6c784e949b4649f639b19325bb360b572bd5a2211a409ba36249b8a8b6816392 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64d2971e5fae3c61be92dab8a437421c56c0e7c8b2ef1b4a200f3ea8bb7c12c8 [INFO] running `Command { std: "docker" "start" "-a" "64d2971e5fae3c61be92dab8a437421c56c0e7c8b2ef1b4a200f3ea8bb7c12c8", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Checking double_ptr v0.1.0 (/opt/rustwide/workdir/double_ptr) [INFO] [stderr] Checking dfs_and_bfs v0.1.0 (/opt/rustwide/workdir/dfs_and_bfs) [INFO] [stderr] Checking str_demo v0.1.0 (/opt/rustwide/workdir/str_demo) [INFO] [stderr] Checking arr_demo v0.1.0 (/opt/rustwide/workdir/arr_demo) [INFO] [stderr] Checking graphics_demo v0.1.0 (/opt/rustwide/workdir/graphics_demo) [INFO] [stderr] Checking matrix_demo v0.1.0 (/opt/rustwide/workdir/matrix_demo) [INFO] [stderr] Checking simulation_demo v0.1.0 (/opt/rustwide/workdir/simulation_demo) [INFO] [stderr] Checking tree_demo v0.1.0 (/opt/rustwide/workdir/tree_demo) [INFO] [stderr] Checking math_demo v0.1.0 (/opt/rustwide/workdir/math_demo) [INFO] [stderr] Checking send_point v0.1.0 (/opt/rustwide/workdir/send_point) [INFO] [stderr] Checking list_demo v0.1.0 (/opt/rustwide/workdir/list_demo) [INFO] [stderr] Checking dp_demo v0.1.0 (/opt/rustwide/workdir/dp_demo) [INFO] [stdout] error[E0432]: unresolved import `std::arch::aarch64` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::arch::aarch64::{vaba_s8, veor_s8}; [INFO] [stdout] | ^^^^^^^ could not find `aarch64` in `arch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::arch::aarch64` [INFO] [stdout] --> str_demo/src/char_demo.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::arch::aarch64::{int32x2_t, int32x2x2_t, vsubw_u32}; [INFO] [stdout] | ^^^^^^^ could not find `aarch64` in `arch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::arch::aarch64` [INFO] [stdout] --> simulation_demo/src/simulation_mid.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::arch::aarch64::vaddlv_s16; [INFO] [stdout] | ^^^^^^^ could not find `aarch64` in `arch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::escape_default` [INFO] [stdout] --> arr_demo/src/simple_demo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ascii::escape_default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::raw::gid_t` [INFO] [stdout] --> arr_demo/src/simple_demo.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::unix::raw::gid_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::escape_default` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::escape_default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::VacantEntry` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::hash_map::VacantEntry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::from_fn` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::iter::from_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic::resume_unwind` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::panic::resume_unwind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::abort` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::process::abort; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::Reverse` [INFO] [stdout] --> simulation_demo/src/simulation_mid.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cmp::Reverse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BinaryHeap` and `HashSet` [INFO] [stdout] --> simulation_demo/src/simulation_mid.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{BinaryHeap, BTreeSet, HashSet}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::swap` [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::mem::swap; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x2` [INFO] [stdout] --> graphics_demo/src/twoD_coordinates.rs:13:85 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn check_overlap_1(radius: i32, x_center: i32, y_center: i32, x1: i32, y1: i32, x2: i32, y2: i32) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_overlap` is never used [INFO] [stdout] --> graphics_demo/src/twoD_coordinates.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn check_overlap(radius: i32, x_center: i32, y_center: i32, x1: i32, y1: i32, x2: i32, y2: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `twoD_coordinates` should have a snake case name [INFO] [stdout] --> graphics_demo/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod twoD_coordinates; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `two_d_coordinates` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> str_demo/src/char_demo.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::arch::aarch64` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::arch::aarch64::{vaba_s8, veor_s8}; [INFO] [stdout] | ^^^^^^^ could not find `aarch64` in `arch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Bytes` [INFO] [stdout] --> str_demo/src/char_demo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::swap` [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::mem::swap; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `simple_matrix::*` [INFO] [stdout] --> matrix_demo/src/lib.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | use simple_matrix::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::matrix_dm::find_peak_grid_1` [INFO] [stdout] --> matrix_demo/src/lib.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::matrix_dm::find_peak_grid_1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Sub` [INFO] [stdout] --> str_demo/src/char_demo.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Sub; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::raw::off_t` [INFO] [stdout] --> str_demo/src/char_demo.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::unix::raw::off_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> str_demo/src/char_demo.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | while (i > 0 || j > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - while (i > 0 || j > 0) { [INFO] [stdout] 105 + while i > 0 || j > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> str_demo/src/string_mid.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RefMut` and `Ref` [INFO] [stdout] --> tree_demo/src/tree_pra.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::{Ref, RefCell, RefMut}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::char::from_digit` [INFO] [stdout] --> tree_demo/src/tree_pra.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::char::from_digit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::escape_default` [INFO] [stdout] --> arr_demo/src/simple_demo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ascii::escape_default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NonNull`, `addr_of_mut`, and `write` [INFO] [stdout] --> tree_demo/src/tree_pra.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ptr::{addr_of_mut, NonNull, write}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::raw::gid_t` [INFO] [stdout] --> arr_demo/src/simple_demo.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::unix::raw::gid_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ascii::escape_default` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::escape_default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::VacantEntry` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::hash_map::VacantEntry; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::from_fn` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::iter::from_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic::resume_unwind` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::panic::resume_unwind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::abort` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::process::abort; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `simple_demo::*` [INFO] [stdout] --> arr_demo/src/lib.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | use simple_demo::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `middle_dm::*` [INFO] [stdout] --> arr_demo/src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | use middle_dm::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> list_demo/src/list_base.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sequence::pivot_integer` [INFO] [stdout] --> math_demo/src/lib.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | use sequence::pivot_integer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::os::unix::raw::gid_t`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> arr_demo/src/simple_demo.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::unix::raw::gid_t; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::os::unix::raw::off_t`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> str_demo/src/char_demo.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use std::os::unix::raw::off_t; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::os::unix::raw::gid_t`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> arr_demo/src/simple_demo.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::unix::raw::gid_t; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> list_demo/src/list_base.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> simulation_demo/src/simulation_mid.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let mut ans = *self.pop_nums.iter().next().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: unused import: `std::num::IntErrorKind::NegOverflow` [INFO] [stdout] --> list_demo/src/list_base.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::num::IntErrorKind::NegOverflow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pond_sizes` is never used [INFO] [stdout] --> dfs_and_bfs/src/dfs_demo.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn pond_sizes(land: Vec>)->Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pond_sizes_dfs` is never used [INFO] [stdout] --> dfs_and_bfs/src/dfs_demo.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn pond_sizes_dfs(land:&mut Vec>, x:usize, y:usize) ->i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `in_area` is never used [INFO] [stdout] --> dfs_and_bfs/src/dfs_demo.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn in_area(land:&Vec>, i:i32, j :i32)->bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> list_demo/src/list_base.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RefMut` and `Ref` [INFO] [stdout] --> tree_demo/src/tree_pra.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::{Ref, RefCell, RefMut}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::char::from_digit` [INFO] [stdout] --> tree_demo/src/tree_pra.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::char::from_digit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NonNull`, `addr_of_mut`, and `write` [INFO] [stdout] --> tree_demo/src/tree_pra.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ptr::{addr_of_mut, NonNull, write}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_neg_ones` [INFO] [stdout] --> send_point/src/simple_d.rs:16:64 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn k_items_with_maximum_sum(num_ones: i32, num_zeros: i32, num_neg_ones: i32, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_neg_ones` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `k_items_with_maximum_sum` is never used [INFO] [stdout] --> send_point/src/simple_d.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn k_items_with_maximum_sum(num_ones: i32, num_zeros: i32, num_neg_ones: i32, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking simple_demo v0.1.0 (/opt/rustwide/workdir/simple_demo) [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> matrix_demo/src/simple_matrix.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | let (n, m) = (nums.len(), nums[0].len()); [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] [stderr] error: could not compile `simulation_demo` (lib test) due to 1 previous error; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut ob_set = obstacles [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: function `pond_sizes` is never used [INFO] [stdout] --> dfs_and_bfs/src/dfs_demo.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn pond_sizes(land: Vec>)->Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> list_demo/src/list_dfs_or_bfs.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | if let Some(mut next_node) = boxed_head.next.take(){ [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: struct `ListNode` is never constructed [INFO] [stdout] --> list_demo/src/list_base.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ListNode { [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] --> list_demo/src/list_base.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 13 | #[inline] [INFO] [stdout] 14 | fn new(val:i32)->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two_numbers` is never used [INFO] [stdout] --> list_demo/src/list_base.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn add_two_numbers(l1: Option>, l2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `carried` is never used [INFO] [stdout] --> list_demo/src/list_base.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn carried(l1: Option>, l2: Option>, mut carry: i32) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two_numbers_plus` is never used [INFO] [stdout] --> list_demo/src/list_base.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn add_two_numbers_plus(l1: Option>, l2: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_list` is never used [INFO] [stdout] --> list_demo/src/list_base.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn reverse_list(head :Option>)->Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_list_mut` is never used [INFO] [stdout] --> list_demo/src/list_base.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn reverse_list_mut(mut head : Option>)->Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_list_no` is never used [INFO] [stdout] --> list_demo/src/list_base.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn reverse_list_no(head: &mut Option>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reorder_list` is never used [INFO] [stdout] --> list_demo/src/list_base.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn reorder_list(head: &mut Option>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_nodes_1` is never used [INFO] [stdout] --> list_demo/src/list_dfs_or_bfs.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn remove_nodes_1(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_nodes` is never used [INFO] [stdout] --> list_demo/src/list_dfs_or_bfs.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn remove_nodes(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pond_sizes_dfs` is never used [INFO] [stdout] --> dfs_and_bfs/src/dfs_demo.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn pond_sizes_dfs(land:&mut Vec>, x:usize, y:usize) ->i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `in_area` is never used [INFO] [stdout] --> dfs_and_bfs/src/dfs_demo.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn in_area(land:&Vec>, i:i32, j :i32)->bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mut m = matrix[0].len(); [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] --> matrix_demo/src/matrix_middle.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | let mut v = cnt.entry(d2).or_insert(0); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_sub_array_len` is never used [INFO] [stdout] --> double_ptr/src/two_ptr.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn min_sub_array_len(target: i32, nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_subarray_product_less_than_k` is never used [INFO] [stdout] --> double_ptr/src/two_ptr.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn num_subarray_product_less_than_k(nums: Vec, k: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `three_sum_closest` is never used [INFO] [stdout] --> double_ptr/src/two_ptr.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn three_sum_closest(mut nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `three_sum_closest_0` is never used [INFO] [stdout] --> double_ptr/src/two_ptr.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn three_sum_closest_0(nums: Vec, target: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> math_demo/src/math_simu.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | let mut ans:Vec = Vec::new(); [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: unused import: `std::cmp::max` [INFO] [stdout] --> dp_demo/src/simple_dp.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> dp_demo/src/classical_demo.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | for i in (1..m) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 17 - for i in (1..m) { [INFO] [stdout] 17 + for i in 1..m { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TreeNode` is never constructed [INFO] [stdout] --> tree_demo/src/tree_base.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TreeNode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pivot_integer` is never used [INFO] [stdout] --> math_demo/src/sequence.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn pivot_integer(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> dp_demo/src/classical_demo.rs:81:57 [INFO] [stdout] | [INFO] [stdout] 81 | let mut groups : Vec> = vec![vec![];(n+1)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - let mut groups : Vec> = vec![vec![];(n+1)]; [INFO] [stdout] 81 + let mut groups : Vec> = vec![vec![];n+1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> tree_demo/src/tree_base.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl TreeNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | #[inline] [INFO] [stdout] 13 | pub fn new(val:i32)->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pivot_integer_lc` is never used [INFO] [stdout] --> math_demo/src/sequence.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn pivot_integer_lc(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_trees` is never used [INFO] [stdout] --> tree_demo/src/tree_pra.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn merge_trees(root1: Option>>, root2: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ways_to_buy_pens_pencils` is never used [INFO] [stdout] --> math_demo/src/math_simu.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn ways_to_buy_pens_pencils(total: i32, cost1: i32, cost2: i32) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_trees_1` is never used [INFO] [stdout] --> tree_demo/src/tree_pra.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn merge_trees_1(root1: Option>>, root2: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> dp_demo/src/classical_demo.rs:88:33 [INFO] [stdout] | [INFO] [stdout] 88 | let mut f:Vec= vec![0; (n+1)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - let mut f:Vec= vec![0; (n+1)]; [INFO] [stdout] 88 + let mut f:Vec= vec![0; n+1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ways_to_buy_pens_pencils_1` is never used [INFO] [stdout] --> math_demo/src/math_simu.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn ways_to_buy_pens_pencils_1(total: i32, cost1: i32, cost2: i32) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bst_to_gst` is never used [INFO] [stdout] --> tree_demo/src/tree_pra.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn bst_to_gst(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_delayed_arrival_time` is never used [INFO] [stdout] --> math_demo/src/math_simu.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn find_delayed_arrival_time(arrival_time: i32, delayed_time: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_odd_levels_1` is never used [INFO] [stdout] --> tree_demo/src/tree_pra.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn reverse_odd_levels_1(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pass_the_pillow` is never used [INFO] [stdout] --> math_demo/src/math_simu.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn pass_the_pillow(n: i32, time: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_odd_levels` is never used [INFO] [stdout] --> tree_demo/src/tree_pra.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn reverse_odd_levels(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_multiples` is never used [INFO] [stdout] --> math_demo/src/math_simu.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn sum_of_multiples(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> dp_demo/src/classical_demo.rs:101:57 [INFO] [stdout] | [INFO] [stdout] 101 | let mut groups: Vec> = vec![vec![]; (n + 1)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - let mut groups: Vec> = vec![vec![]; (n + 1)]; [INFO] [stdout] 101 + let mut groups: Vec> = vec![vec![]; n + 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_multiples_1` is never used [INFO] [stdout] --> math_demo/src/math_simu.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn sum_of_multiples_1(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_of_burgers_1` is never used [INFO] [stdout] --> math_demo/src/math_simu.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn num_of_burgers_1(tomato_slices: i32, cheese_slices: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> dp_demo/src/dp_hash.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_of_burgers` is never used [INFO] [stdout] --> math_demo/src/math_simu.rs:202:8 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn num_of_burgers(tomato_slices: i32, cheese_slices: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> dp_demo/src/dp_hash.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | if (kv.contains(&s[j..i])) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - if (kv.contains(&s[j..i])) { [INFO] [stdout] 33 + if kv.contains(&s[j..i]) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `simple_dp::*` [INFO] [stdout] --> dp_demo/src/lib.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | use simple_dp::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `matrix_sum` is never used [INFO] [stdout] --> matrix_demo/src/simple_matrix.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn matrix_sum(nums: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `matrix_sum_lc` is never used [INFO] [stdout] --> matrix_demo/src/simple_matrix.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn matrix_sum_lc(mut nums: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `matrix_sum_lc_1` is never used [INFO] [stdout] --> matrix_demo/src/simple_matrix.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn matrix_sum_lc_1(mut nums: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `diagonal_sum` is never used [INFO] [stdout] --> matrix_demo/src/simple_matrix.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn diagonal_sum(mat: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `diagonal_sum_1` is never used [INFO] [stdout] --> matrix_demo/src/simple_matrix.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn diagonal_sum_1(mat: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `robot_sim` is never used [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn robot_sim(commands: Vec, obstacles: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_servers` is never used [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn count_servers(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_peak_grid_1` is never used [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn find_peak_grid_1(mat: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_peak_grid` is never used [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn find_peak_grid(mat: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `index_of_max` is never used [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 142 | fn index_of_max(a:&Vec)->usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maximum_rows` is never used [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn maximum_rows(matrix: Vec>, num_select: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maximum_rows_1` is never used [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn maximum_rows_1(matrix: Vec>, num_select: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_of_boomerangs` is never used [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn number_of_boomerangs(points: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let L:u32 = 12; [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `M` should have a snake case name [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let M:u16 = (1 << L) -1; [INFO] [stdout] | ^ help: convert the identifier to snake case: `m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> matrix_demo/src/simple_matrix.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | let (n, m) = (nums.len(), nums[0].len()); [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: variable does not need to be mutable [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut ob_set = obstacles [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: struct `TreeNode` is never constructed [INFO] [stdout] --> tree_demo/src/tree_base.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TreeNode { [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] --> tree_demo/src/tree_base.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl TreeNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 12 | #[inline] [INFO] [stdout] 13 | pub fn new(val:i32)->Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_trees` is never used [INFO] [stdout] --> tree_demo/src/tree_pra.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn merge_trees(root1: Option>>, root2: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_trees_1` is never used [INFO] [stdout] --> tree_demo/src/tree_pra.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn merge_trees_1(root1: Option>>, root2: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bst_to_gst` is never used [INFO] [stdout] --> tree_demo/src/tree_pra.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn bst_to_gst(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mut m = matrix[0].len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_odd_levels_1` is never used [INFO] [stdout] --> tree_demo/src/tree_pra.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn reverse_odd_levels_1(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_odd_levels` is never used [INFO] [stdout] --> tree_demo/src/tree_pra.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn reverse_odd_levels(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | let mut v = cnt.entry(d2).or_insert(0); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `matrix_sum` is never used [INFO] [stdout] --> matrix_demo/src/simple_matrix.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn matrix_sum(nums: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `matrix_sum_lc` is never used [INFO] [stdout] --> matrix_demo/src/simple_matrix.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn matrix_sum_lc(mut nums: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `matrix_sum_lc_1` is never used [INFO] [stdout] --> matrix_demo/src/simple_matrix.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn matrix_sum_lc_1(mut nums: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `diagonal_sum` is never used [INFO] [stdout] --> matrix_demo/src/simple_matrix.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn diagonal_sum(mat: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `diagonal_sum_1` is never used [INFO] [stdout] --> matrix_demo/src/simple_matrix.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn diagonal_sum_1(mat: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `robot_sim` is never used [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn robot_sim(commands: Vec, obstacles: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_servers` is never used [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn count_servers(grid: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_peak_grid_1` is never used [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn find_peak_grid_1(mat: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_peak_grid` is never used [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn find_peak_grid(mat: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `index_of_max` is never used [INFO] [stdout] --> matrix_demo/src/matrix_dm.rs:142:4 [INFO] [stdout] | [INFO] [stdout] 142 | fn index_of_max(a:&Vec)->usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maximum_rows_1` is never used [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn maximum_rows_1(matrix: Vec>, num_select: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_of_boomerangs` is never used [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn number_of_boomerangs(points: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let L:u32 = 12; [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `M` should have a snake case name [INFO] [stdout] --> matrix_demo/src/matrix_middle.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let M:u16 = (1 << L) -1; [INFO] [stdout] | ^ help: convert the identifier to snake case: `m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> arr_demo/src/simple_demo.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | let mut n=grid[0].len(); [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] --> arr_demo/src/simple_demo.rs:261:24 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn single_number_1(mut nums: Vec) -> Vec { [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] --> str_demo/src/char_demo.rs:526:20 [INFO] [stdout] | [INFO] [stdout] 526 | pub fn max_product(mut words: Vec) -> i32 { [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] --> str_demo/src/char_demo.rs:553:22 [INFO] [stdout] | [INFO] [stdout] 553 | pub fn max_product_1(mut words: Vec) -> i32 { [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] --> dp_demo/src/classical_demo.rs:79:34 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn max_taxi_earnings(n: i32, mut rides: Vec>) -> i64 { [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] --> arr_demo/src/simple_demo.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | let mut n=grid[0].len(); [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] --> arr_demo/src/middle_dm.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn halve_array(mut nums: Vec) -> i32 { [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] --> arr_demo/src/simple_demo.rs:261:24 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn single_number_1(mut nums: Vec) -> Vec { [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] --> dp_demo/src/single_stack.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let mut n = a.len(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:168:40 [INFO] [stdout] | [INFO] [stdout] 168 | v.into_iter().enumerate().filter(|(i, f)|!*f).map(|(i, f)| (i+1) as i32).collect() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:168:60 [INFO] [stdout] | [INFO] [stdout] 168 | v.into_iter().enumerate().filter(|(i, f)|!*f).map(|(i, f)| (i+1) as i32).collect() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> arr_demo/src/middle_dm.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn halve_array(mut nums: Vec) -> i32 { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:168:40 [INFO] [stdout] | [INFO] [stdout] 168 | v.into_iter().enumerate().filter(|(i, f)|!*f).map(|(i, f)| (i+1) as i32).collect() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> arr_demo/src/middle_dm.rs:168:60 [INFO] [stdout] | [INFO] [stdout] 168 | v.into_iter().enumerate().filter(|(i, f)|!*f).map(|(i, f)| (i+1) as i32).collect() [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maximum_sum` is never used [INFO] [stdout] --> dp_demo/src/simple_dp.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn maximum_sum(arr: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: function `maximum_sum_bc` is never used [INFO] [stdout] --> dp_demo/src/simple_dp.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn maximum_sum_bc(arr: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_alternating_sum` is never used [INFO] [stdout] --> dp_demo/src/simple_dp.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn max_alternating_sum(nums: Vec) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_alternating_sum_1` is never used [INFO] [stdout] --> dp_demo/src/simple_dp.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn max_alternating_sum_1(nums: Vec) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_cost_1` is never used [INFO] [stdout] --> dp_demo/src/simple_dp.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn min_cost_1(nums: Vec, x: i32) -> i64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_cost` is never used [INFO] [stdout] --> dp_demo/src/simple_dp.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn min_cost(nums: Vec, x: i32) -> i64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_falling_path_sum` is never used [INFO] [stdout] --> dp_demo/src/classical_demo.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn min_falling_path_sum(mut matrix: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_falling_path_sum_1` is never used [INFO] [stdout] --> dp_demo/src/classical_demo.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn min_falling_path_sum_1(matrix: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min_falling_path_sum_1_dp` is never used [INFO] [stdout] --> dp_demo/src/classical_demo.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn min_falling_path_sum_1_dp(matrix:&Vec>,i:usize,j:usize,memo:&mut Vec>)->i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_taxi_earnings` is never used [INFO] [stdout] --> dp_demo/src/classical_demo.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn max_taxi_earnings(n: i32, mut rides: Vec>) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `max_taxi_earnings_1` is never used [INFO] [stdout] --> dp_demo/src/classical_demo.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn max_taxi_earnings_1(n: i32, rides: Vec>) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> dp_demo/src/classical_demo.rs:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | struct Item (i32,i32,i32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `minimum_effort_path` is never used [INFO] [stdout] --> dp_demo/src/classical_demo.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn minimum_effort_path(heights: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maximum_sum_of_heights` is never used [INFO] [stdout] --> dp_demo/src/single_stack.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn maximum_sum_of_heights(a: Vec) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maximum_sum_of_heights_1` is never used [INFO] [stdout] --> dp_demo/src/single_stack.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn maximum_sum_of_heights_1(max_heights: Vec) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> dp_demo/src/classical_demo.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | if i<0 || j<0 || i>=matrix.len() || j>=matrix[0].len(){ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> dp_demo/src/classical_demo.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 40 | if i<0 || j<0 || i>=matrix.len() || j>=matrix[0].len(){ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `str_demo` (lib) due to 1 previous error; 9 warnings emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] warning: function `alternate_digit_sum` is never used [INFO] [stdout] --> simple_demo/src/simple_dm.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn alternate_digit_sum(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `alternate_digit_sum_0` is never used [INFO] [stdout] --> simple_demo/src/simple_dm.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn alternate_digit_sum_0(n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `arr_demo` (lib) due to 1 previous error; 15 warnings emitted [INFO] [stderr] error: could not compile `arr_demo` (lib test) due to 1 previous error; 17 warnings emitted [INFO] running `Command { std: "docker" "inspect" "64d2971e5fae3c61be92dab8a437421c56c0e7c8b2ef1b4a200f3ea8bb7c12c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64d2971e5fae3c61be92dab8a437421c56c0e7c8b2ef1b4a200f3ea8bb7c12c8", kill_on_drop: false }` [INFO] [stdout] 64d2971e5fae3c61be92dab8a437421c56c0e7c8b2ef1b4a200f3ea8bb7c12c8