[INFO] cloning repository https://github.com/shunak/rust-train [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shunak/rust-train" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunak%2Frust-train", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunak%2Frust-train'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 891ce464fc37cecb0fbff0899b33b14c658f8bf5 [INFO] checking shunak/rust-train against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunak%2Frust-train" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shunak/rust-train on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shunak/rust-train [INFO] finished tweaking git repo https://github.com/shunak/rust-train [INFO] tweaked toml for git repo https://github.com/shunak/rust-train written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/shunak/rust-train 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9a0e0fa190735bdfb28c63dbacad15be913a7e48d7d839ff785443732fc024f0 [INFO] running `Command { std: "docker" "start" "-a" "9a0e0fa190735bdfb28c63dbacad15be913a7e48d7d839ff785443732fc024f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a0e0fa190735bdfb28c63dbacad15be913a7e48d7d839ff785443732fc024f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a0e0fa190735bdfb28c63dbacad15be913a7e48d7d839ff785443732fc024f0", kill_on_drop: false }` [INFO] [stdout] 9a0e0fa190735bdfb28c63dbacad15be913a7e48d7d839ff785443732fc024f0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 69b8478752dd722a6b7aa29023622e50bc86f30ecfd558c987aadbca40cdac60 [INFO] running `Command { std: "docker" "start" "-a" "69b8478752dd722a6b7aa29023622e50bc86f30ecfd558c987aadbca40cdac60", kill_on_drop: false }` [INFO] [stderr] Checking rust-train v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc_macro` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use proc_macro; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:98:47 [INFO] [stdout] | [INFO] [stdout] 98 | fn request_review(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:107:47 [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:117:47 [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc_macro` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use proc_macro; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:98:47 [INFO] [stdout] | [INFO] [stdout] 98 | fn request_review(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:107:47 [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:117:47 [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `State` is never used [INFO] [stdout] --> src/lib.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | trait State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Draft` is never constructed [INFO] [stdout] --> src/lib.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Draft {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PendingReview` is never constructed [INFO] [stdout] --> src/lib.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct PendingReview{} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Published` is never constructed [INFO] [stdout] --> src/lib.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | struct Published {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/lib.rs:291:8 [INFO] [stdout] | [INFO] [stdout] 291 | struct Pair{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 296 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 297 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/lib.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 302 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 303 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/lib.rs:356:8 [INFO] [stdout] | [INFO] [stdout] 356 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shoes_in_my_size` is never used [INFO] [stdout] --> src/lib.rs:361:4 [INFO] [stdout] | [INFO] [stdout] 361 | fn shoes_in_my_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/lib.rs:385:8 [INFO] [stdout] | [INFO] [stdout] 385 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:390:8 [INFO] [stdout] | [INFO] [stdout] 389 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 390 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `State` is never used [INFO] [stdout] --> src/lib.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | trait State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Draft` is never constructed [INFO] [stdout] --> src/lib.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Draft {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PendingReview` is never constructed [INFO] [stdout] --> src/lib.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct PendingReview{} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Published` is never constructed [INFO] [stdout] --> src/lib.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | struct Published {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/lib.rs:291:8 [INFO] [stdout] | [INFO] [stdout] 291 | struct Pair{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 296 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 297 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/lib.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 302 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 303 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NumberOfPathsToReachLastCell_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct NumberOfPathsToReachLastCell_TD<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NumberOfPathsToReachLastCellTd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MinCostToReachLastCell_in2DArray_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | struct MinCostToReachLastCell_in2DArray_TD<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MinCostToReachLastCellIn2darrayTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestPalindromicSubstringDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | struct LongestPalindromicSubstringDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubstringDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestPalindromicSubsequenceDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | struct LongestPalindromicSubsequenceDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubsequenceDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestCommonSubsequenceDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 173 | struct LongestCommonSubsequenceDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestCommonSubsequenceDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ZeroOneKnapsack_DP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_BU` should have an upper camel case name [INFO] [stdout] --> src/main.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | struct ConvertOneStringToAnother_BU<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherBu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 270 | struct ConvertOneStringToAnother_TD<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HouseThief_BottomUp` should have an upper camel case name [INFO] [stdout] --> src/main.rs:309:8 [INFO] [stdout] | [INFO] [stdout] 309 | struct HouseThief_BottomUp<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseThiefBottomUp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HouseTheif_TopDown` should have an upper camel case name [INFO] [stdout] --> src/main.rs:324:8 [INFO] [stdout] | [INFO] [stdout] 324 | struct HouseTheif_TopDown<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseTheifTopDown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_DC` should have an upper camel case name [INFO] [stdout] --> src/main.rs:553:8 [INFO] [stdout] | [INFO] [stdout] 553 | struct ConvertOneStringToAnother_DC<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherDc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ZeroOneKnapsack_DC` should have an upper camel case name [INFO] [stdout] --> src/main.rs:579:8 [INFO] [stdout] | [INFO] [stdout] 579 | struct ZeroOneKnapsack_DC<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1101:45 [INFO] [stdout] | [INFO] [stdout] 1101 | Message2::Hello {id: id_variable @ 3...7} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1104:33 [INFO] [stdout] | [INFO] [stdout] 1104 | Message2::Hello { id: 10...12} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1292:12 [INFO] [stdout] | [INFO] [stdout] 1292 | 1 ... 5 => println!("one through five"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1300:17 [INFO] [stdout] | [INFO] [stdout] 1300 | 'a' ... 'j' => println!("early ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1301:17 [INFO] [stdout] | [INFO] [stdout] 1301 | 'k' ... 'z' => println!("late ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NumberOfPathsToReachLastCell_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct NumberOfPathsToReachLastCell_TD<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NumberOfPathsToReachLastCellTd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MinCostToReachLastCell_in2DArray_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | struct MinCostToReachLastCell_in2DArray_TD<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MinCostToReachLastCellIn2darrayTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestPalindromicSubstringDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | struct LongestPalindromicSubstringDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubstringDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestPalindromicSubsequenceDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | struct LongestPalindromicSubsequenceDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubsequenceDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestCommonSubsequenceDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 173 | struct LongestCommonSubsequenceDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestCommonSubsequenceDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ZeroOneKnapsack_DP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_BU` should have an upper camel case name [INFO] [stdout] --> src/main.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | struct ConvertOneStringToAnother_BU<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherBu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 270 | struct ConvertOneStringToAnother_TD<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HouseThief_BottomUp` should have an upper camel case name [INFO] [stdout] --> src/main.rs:309:8 [INFO] [stdout] | [INFO] [stdout] 309 | struct HouseThief_BottomUp<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseThiefBottomUp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HouseTheif_TopDown` should have an upper camel case name [INFO] [stdout] --> src/main.rs:324:8 [INFO] [stdout] | [INFO] [stdout] 324 | struct HouseTheif_TopDown<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseTheifTopDown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_DC` should have an upper camel case name [INFO] [stdout] --> src/main.rs:553:8 [INFO] [stdout] | [INFO] [stdout] 553 | struct ConvertOneStringToAnother_DC<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherDc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ZeroOneKnapsack_DC` should have an upper camel case name [INFO] [stdout] --> src/main.rs:579:8 [INFO] [stdout] | [INFO] [stdout] 579 | struct ZeroOneKnapsack_DC<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1101:45 [INFO] [stdout] | [INFO] [stdout] 1101 | Message2::Hello {id: id_variable @ 3...7} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1104:33 [INFO] [stdout] | [INFO] [stdout] 1104 | Message2::Hello { id: 10...12} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1292:12 [INFO] [stdout] | [INFO] [stdout] 1292 | 1 ... 5 => println!("one through five"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1300:17 [INFO] [stdout] | [INFO] [stdout] 1300 | 'a' ... 'j' => println!("early ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1301:17 [INFO] [stdout] | [INFO] [stdout] 1301 | 'k' ... 'z' => println!("late ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | let mut v: 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] --> src/main.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | let mut dp: &mut Vec> = &mut vec![vec![0; capacity as usize + 1]; profits.len()]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:380:30 [INFO] [stdout] | [INFO] [stdout] 380 | fn fbnc_bottom_up(&self, n:i32) -> i32{ [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] --> src/main.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | let mut v: 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] --> src/main.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | let mut dp: &mut Vec> = &mut vec![vec![0; capacity as usize + 1]; profits.len()]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:380:30 [INFO] [stdout] | [INFO] [stdout] 380 | fn fbnc_bottom_up(&self, n:i32) -> i32{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/main.rs:1090:9 [INFO] [stdout] | [INFO] [stdout] 1090 | let r1 = &num as *const i32; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/main.rs:1091:9 [INFO] [stdout] | [INFO] [stdout] 1091 | let r2 = &mut num as *mut i32; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:1167:9 [INFO] [stdout] | [INFO] [stdout] 1167 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/main.rs:1198:6 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> src/main.rs:1198:12 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:1198:27 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:1198:29 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:1400:9 [INFO] [stdout] | [INFO] [stdout] 1400 | for i in 0..12{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:1779:9 [INFO] [stdout] | [INFO] [stdout] 1779 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:1831:9 [INFO] [stdout] | [INFO] [stdout] 1831 | let s: &'static str = "I have a static lifetime."; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:1957:9 [INFO] [stdout] | [INFO] [stdout] 1957 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1981:9 [INFO] [stdout] | [INFO] [stdout] 1981 | let v = vec![1,2,3]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:2037:13 [INFO] [stdout] | [INFO] [stdout] 2037 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:2074:9 [INFO] [stdout] | [INFO] [stdout] 2074 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> src/main.rs:2085:9 [INFO] [stdout] | [INFO] [stdout] 2085 | let third: Option<&i32> = v.get(2); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:2134:9 [INFO] [stdout] | [INFO] [stdout] 2134 | let s = 5; // Declara variable [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:2139:13 [INFO] [stdout] | [INFO] [stdout] 2139 | let k = 7; // Scope test. This variable is valid in this parenthes. [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/main.rs:2275:17 [INFO] [stdout] | [INFO] [stdout] 2275 | let mut count =0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/main.rs:2286:13 [INFO] [stdout] | [INFO] [stdout] 2286 | count += 1; [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: unused variable: `r1` [INFO] [stdout] --> src/main.rs:1090:9 [INFO] [stdout] | [INFO] [stdout] 1090 | let r1 = &num as *const i32; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/main.rs:1091:9 [INFO] [stdout] | [INFO] [stdout] 1091 | let r2 = &mut num as *mut i32; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:1167:9 [INFO] [stdout] | [INFO] [stdout] 1167 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/main.rs:1198:6 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> src/main.rs:1198:12 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:1198:27 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:1198:29 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:1400:9 [INFO] [stdout] | [INFO] [stdout] 1400 | for i in 0..12{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:1779:9 [INFO] [stdout] | [INFO] [stdout] 1779 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:1831:9 [INFO] [stdout] | [INFO] [stdout] 1831 | let s: &'static str = "I have a static lifetime."; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:1957:9 [INFO] [stdout] | [INFO] [stdout] 1957 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1981:9 [INFO] [stdout] | [INFO] [stdout] 1981 | let v = vec![1,2,3]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:2037:13 [INFO] [stdout] | [INFO] [stdout] 2037 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:2074:9 [INFO] [stdout] | [INFO] [stdout] 2074 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> src/main.rs:2085:9 [INFO] [stdout] | [INFO] [stdout] 2085 | let third: Option<&i32> = v.get(2); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:2134:9 [INFO] [stdout] | [INFO] [stdout] 2134 | let s = 5; // Declara variable [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:2139:13 [INFO] [stdout] | [INFO] [stdout] 2139 | let k = 7; // Scope test. This variable is valid in this parenthes. [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/main.rs:2275:17 [INFO] [stdout] | [INFO] [stdout] 2275 | let mut count =0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/main.rs:2286:13 [INFO] [stdout] | [INFO] [stdout] 2286 | count += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:2037:9 [INFO] [stdout] | [INFO] [stdout] 2037 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:2176:9 [INFO] [stdout] | [INFO] [stdout] 2176 | let mut s4 = String::from("Hello world!"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ZeroOneKnapsack_DP_TD` is never constructed [INFO] [stdout] --> src/main.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `knapsack` and `knapsackAux` are never used [INFO] [stdout] --> src/main.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl ZeroOneKnapsack_DP_TD { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 217 | pub fn knapsack(&self, profits: &Vec, weights: &Vec, capacity:i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/main.rs:628:5 [INFO] [stdout] | [INFO] [stdout] 627 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 628 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 629 | parent: RefCell>, [INFO] [stdout] 630 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulated_expensive_calculation` is never used [INFO] [stdout] --> src/main.rs:633:4 [INFO] [stdout] | [INFO] [stdout] 633 | fn simulated_expensive_calculation(intensity: u32) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:757:10 [INFO] [stdout] | [INFO] [stdout] 757 | Cons(i32, RefCell>), [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 757 | Cons((), RefCell>), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:799:8 [INFO] [stdout] | [INFO] [stdout] 799 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> src/main.rs:805:5 [INFO] [stdout] | [INFO] [stdout] 804 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 805 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 806 | Move { x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 807 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point3` is never constructed [INFO] [stdout] --> src/main.rs:814:8 [INFO] [stdout] | [INFO] [stdout] 814 | struct Point3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `baby_name` is never used [INFO] [stdout] --> src/main.rs:886:12 [INFO] [stdout] | [INFO] [stdout] 885 | impl Dog { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 886 | fn baby_name() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPaths` should have a snake case name [INFO] [stdout] --> src/main.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn numberOfPaths(&self, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:2037:9 [INFO] [stdout] | [INFO] [stdout] 2037 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPathsAux` should have a snake case name [INFO] [stdout] --> src/main.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn numberOfPathsAux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numOfPathsFromPreviousRow` should have a snake case name [INFO] [stdout] --> src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let numOfPathsFromPreviousRow = self.numberOfPaths(array, row -1, col, cost - array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:2176:9 [INFO] [stdout] | [INFO] [stdout] 2176 | let mut s4 = String::from("Hello world!"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numOfPathsFromPreviousCol` should have a snake case name [INFO] [stdout] --> src/main.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | let numOfPathsFromPreviousCol = self.numberOfPaths(array, row, col -1, cost - array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost` should have a snake case name [INFO] [stdout] --> src/main.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | fn findMinCost(&self, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost_aux` should have a snake case name [INFO] [stdout] --> src/main.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn findMinCost_aux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost1` should have a snake case name [INFO] [stdout] --> src/main.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let minCost1 = self.findMinCost_aux(dp, array, row - 1, col); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost2` should have a snake case name [INFO] [stdout] --> src/main.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let minCost2 = self.findMinCost_aux(dp, array, row, col - 1); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost` should have a snake case name [INFO] [stdout] --> src/main.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let minCost = std::cmp::min(minCost1, minCost2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentCellCost` should have a snake case name [INFO] [stdout] --> src/main.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let currentCellCost = array[row as usize][col as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cell_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn findLPSLength(&self, st: &str)-> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:115:57 [INFO] [stdout] | [INFO] [stdout] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:115:72 [INFO] [stdout] | [INFO] [stdout] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `remainingLength` should have a snake case name [INFO] [stdout] --> src/main.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | let remainingLength = endIdx - startIdx -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn findLPSLength(&self, sentence: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lps_Aux` should have a snake case name [INFO] [stdout] --> src/main.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `lps_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:153:63 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:153:78 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn findLCSLength(&self, s1: &String, s2: &String) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stdout] --> src/main.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | fn findLCSLengthAux(&self, dp: &mut Vec>, s1: &String, s2: &String, i: usize, j: usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `knapsackAux` should have a snake case name [INFO] [stdout] --> src/main.rs:223:8 [INFO] [stdout] | [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `knapsack_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:223:106 [INFO] [stdout] | [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:275:12 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperationsRecursive` should have a snake case name [INFO] [stdout] --> src/main.rs:281:8 [INFO] [stdout] | [INFO] [stdout] 281 | fn findMinOperationsRecursive(&self, dp: &mut Vec>, s1: &'a str, s2: &'a str, i: usize, j: usize) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_recursive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMaxSteal` should have a snake case name [INFO] [stdout] --> src/main.rs:313:12 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn findMaxSteal(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `find_max_steal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maxMoney` should have a snake case name [INFO] [stdout] --> src/main.rs:328:12 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn maxMoney(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_money` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maxMoney_TopDown` should have a snake case name [INFO] [stdout] --> src/main.rs:332:8 [INFO] [stdout] | [INFO] [stdout] 332 | fn maxMoney_TopDown(&self, dp: &mut Vec, worth_to_steal: &'a Vec, index:usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_money_top_down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stealCurrent` should have a snake case name [INFO] [stdout] --> src/main.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | let stealCurrent = worth_to_steal[index] + self.maxMoney_TopDown(dp, worth_to_steal, index+2); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `steal_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipCurrent` should have a snake case name [INFO] [stdout] --> src/main.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | let skipCurrent = self.maxMoney_TopDown(dp, worth_to_steal, index+1); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skip_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `waysToGetN` should have a snake case name [INFO] [stdout] --> src/main.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn waysToGetN(&self, n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `waysToGetN_TopDown` should have a snake case name [INFO] [stdout] --> src/main.rs:357:12 [INFO] [stdout] | [INFO] [stdout] 357 | pub fn waysToGetN_TopDown(&self, dp: &mut Vec, n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n_top_down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fibonacciAux` should have a snake case name [INFO] [stdout] --> src/main.rs:395:12 [INFO] [stdout] | [INFO] [stdout] 395 | pub fn fibonacciAux(&self, memo: &mut Vec, n:i32)->i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `fibonacci_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPaths` should have a snake case name [INFO] [stdout] --> src/main.rs:419:12 [INFO] [stdout] | [INFO] [stdout] 419 | pub fn numberOfPaths(&self, array: [[isize;4];4], row: isize, col: isize, cost: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noOfPathsFromPreviousRow` should have a snake case name [INFO] [stdout] --> src/main.rs:432:13 [INFO] [stdout] | [INFO] [stdout] 432 | let noOfPathsFromPreviousRow = self.numberOfPaths(array, row-1, col, cost-array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noOfPathsFromPreviousCol` should have a snake case name [INFO] [stdout] --> src/main.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | let noOfPathsFromPreviousCol = self.numberOfPaths(array, row, col-1, cost-array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost` should have a snake case name [INFO] [stdout] --> src/main.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | fn findMinCost(&self,cost:[[isize;5];5] ,row: isize, col: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost1` should have a snake case name [INFO] [stdout] --> src/main.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | let minCost1 = self.findMinCost(cost, row - 1, col); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost2` should have a snake case name [INFO] [stdout] --> src/main.rs:452:9 [INFO] [stdout] | [INFO] [stdout] 452 | let minCost2 = self.findMinCost(cost, row, col - 1); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost` should have a snake case name [INFO] [stdout] --> src/main.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | let minCost =std::cmp::min(minCost1, minCost2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentCellsCost` should have a snake case name [INFO] [stdout] --> src/main.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 454 | let currentCellsCost = cost[row as usize][col as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cells_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:466:12 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:470:33 [INFO] [stdout] | [INFO] [stdout] 470 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:470:50 [INFO] [stdout] | [INFO] [stdout] 470 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `remainingLength` should have a snake case name [INFO] [stdout] --> src/main.rs:479:17 [INFO] [stdout] | [INFO] [stdout] 479 | let remainingLength = endIdx - startIdx -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:501:12 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `LPSAux` should have a snake case name [INFO] [stdout] --> src/main.rs:504:8 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `lpsaux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:504:32 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:504:49 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:530:12 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn findLCSLength(&self, s1: &str, s2: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stdout] --> src/main.rs:533:12 [INFO] [stdout] | [INFO] [stdout] 533 | fn findLCSLengthAux(&self, s1: &str, s2: &str, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:558:12 [INFO] [stdout] | [INFO] [stdout] 558 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str)-> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperationsAux` should have a snake case name [INFO] [stdout] --> src/main.rs:561:12 [INFO] [stdout] | [INFO] [stdout] 561 | pub fn findMinOperationsAux(&self, s1: &'a str, s2: &'a str, i: usize, j: usize)-> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:588:93 [INFO] [stdout] | [INFO] [stdout] 588 | pub fn knapsack_aux(&self, profits: &'a Vec, weights: &'a Vec, capacity: i32, currentIndex: i32)-> i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ZeroOneKnapsack_DP_TD` is never constructed [INFO] [stdout] --> src/main.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `knapsack` and `knapsackAux` are never used [INFO] [stdout] --> src/main.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl ZeroOneKnapsack_DP_TD { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 217 | pub fn knapsack(&self, profits: &Vec, weights: &Vec, capacity:i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/main.rs:628:5 [INFO] [stdout] | [INFO] [stdout] 627 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 628 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 629 | parent: RefCell>, [INFO] [stdout] 630 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulated_expensive_calculation` is never used [INFO] [stdout] --> src/main.rs:633:4 [INFO] [stdout] | [INFO] [stdout] 633 | fn simulated_expensive_calculation(intensity: u32) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:757:10 [INFO] [stdout] | [INFO] [stdout] 757 | Cons(i32, RefCell>), [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 757 | Cons((), RefCell>), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:799:8 [INFO] [stdout] | [INFO] [stdout] 799 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `costTu` should have a snake case name [INFO] [stdout] --> src/main.rs:1202:5 [INFO] [stdout] | [INFO] [stdout] 1202 | let costTu: ConvertOneStringToAnother_TD = ConvertOneStringToAnother_TD{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cost_tu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> src/main.rs:805:5 [INFO] [stdout] | [INFO] [stdout] 804 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 805 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 806 | Move { x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 807 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `costBu` should have a snake case name [INFO] [stdout] --> src/main.rs:1209:5 [INFO] [stdout] | [INFO] [stdout] 1209 | let costBu: ConvertOneStringToAnother_BU = ConvertOneStringToAnother_BU { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cost_bu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point3` is never constructed [INFO] [stdout] --> src/main.rs:814:8 [INFO] [stdout] | [INFO] [stdout] 814 | struct Point3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `baby_name` is never used [INFO] [stdout] --> src/main.rs:886:12 [INFO] [stdout] | [INFO] [stdout] 885 | impl Dog { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 886 | fn baby_name() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/main.rs:1907:9 [INFO] [stdout] | [INFO] [stdout] 1906 | struct Point2 { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 1907 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 1908 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:2102:13 [INFO] [stdout] | [INFO] [stdout] 2102 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 2102 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:2103:15 [INFO] [stdout] | [INFO] [stdout] 2103 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 2103 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:2104:14 [INFO] [stdout] | [INFO] [stdout] 2104 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 2104 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/main.rs:2184:9 [INFO] [stdout] | [INFO] [stdout] 2183 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 2184 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 2185 | email: String, [INFO] [stdout] 2186 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 2187 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/main.rs:2244:9 [INFO] [stdout] | [INFO] [stdout] 2243 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 2244 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny` and `Nickel` are never constructed [INFO] [stdout] --> src/main.rs:2249:9 [INFO] [stdout] | [INFO] [stdout] 2248 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 2249 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 2250 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPaths` should have a snake case name [INFO] [stdout] --> src/main.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn numberOfPaths(&self, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPathsAux` should have a snake case name [INFO] [stdout] --> src/main.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn numberOfPathsAux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numOfPathsFromPreviousRow` should have a snake case name [INFO] [stdout] --> src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let numOfPathsFromPreviousRow = self.numberOfPaths(array, row -1, col, cost - array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numOfPathsFromPreviousCol` should have a snake case name [INFO] [stdout] --> src/main.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | let numOfPathsFromPreviousCol = self.numberOfPaths(array, row, col -1, cost - array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost` should have a snake case name [INFO] [stdout] --> src/main.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | fn findMinCost(&self, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost_aux` should have a snake case name [INFO] [stdout] --> src/main.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn findMinCost_aux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost1` should have a snake case name [INFO] [stdout] --> src/main.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let minCost1 = self.findMinCost_aux(dp, array, row - 1, col); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost2` should have a snake case name [INFO] [stdout] --> src/main.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let minCost2 = self.findMinCost_aux(dp, array, row, col - 1); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost` should have a snake case name [INFO] [stdout] --> src/main.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let minCost = std::cmp::min(minCost1, minCost2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentCellCost` should have a snake case name [INFO] [stdout] --> src/main.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let currentCellCost = array[row as usize][col as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cell_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn findLPSLength(&self, st: &str)-> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:115:57 [INFO] [stdout] | [INFO] [stdout] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:115:72 [INFO] [stdout] | [INFO] [stdout] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `remainingLength` should have a snake case name [INFO] [stdout] --> src/main.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | let remainingLength = endIdx - startIdx -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn findLPSLength(&self, sentence: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1947:5 [INFO] [stdout] | [INFO] [stdout] 1947 | read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1947 | let _ = read_username_from_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lps_Aux` should have a snake case name [INFO] [stdout] --> src/main.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `lps_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:153:63 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:153:78 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn findLCSLength(&self, s1: &String, s2: &String) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stdout] --> src/main.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | fn findLCSLengthAux(&self, dp: &mut Vec>, s1: &String, s2: &String, i: usize, j: usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `knapsackAux` should have a snake case name [INFO] [stdout] --> src/main.rs:223:8 [INFO] [stdout] | [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `knapsack_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:223:106 [INFO] [stdout] | [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:275:12 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperationsRecursive` should have a snake case name [INFO] [stdout] --> src/main.rs:281:8 [INFO] [stdout] | [INFO] [stdout] 281 | fn findMinOperationsRecursive(&self, dp: &mut Vec>, s1: &'a str, s2: &'a str, i: usize, j: usize) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_recursive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMaxSteal` should have a snake case name [INFO] [stdout] --> src/main.rs:313:12 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn findMaxSteal(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `find_max_steal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maxMoney` should have a snake case name [INFO] [stdout] --> src/main.rs:328:12 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn maxMoney(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_money` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maxMoney_TopDown` should have a snake case name [INFO] [stdout] --> src/main.rs:332:8 [INFO] [stdout] | [INFO] [stdout] 332 | fn maxMoney_TopDown(&self, dp: &mut Vec, worth_to_steal: &'a Vec, index:usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_money_top_down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stealCurrent` should have a snake case name [INFO] [stdout] --> src/main.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | let stealCurrent = worth_to_steal[index] + self.maxMoney_TopDown(dp, worth_to_steal, index+2); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `steal_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipCurrent` should have a snake case name [INFO] [stdout] --> src/main.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | let skipCurrent = self.maxMoney_TopDown(dp, worth_to_steal, index+1); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skip_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `waysToGetN` should have a snake case name [INFO] [stdout] --> src/main.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn waysToGetN(&self, n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `waysToGetN_TopDown` should have a snake case name [INFO] [stdout] --> src/main.rs:357:12 [INFO] [stdout] | [INFO] [stdout] 357 | pub fn waysToGetN_TopDown(&self, dp: &mut Vec, n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n_top_down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fibonacciAux` should have a snake case name [INFO] [stdout] --> src/main.rs:395:12 [INFO] [stdout] | [INFO] [stdout] 395 | pub fn fibonacciAux(&self, memo: &mut Vec, n:i32)->i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `fibonacci_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPaths` should have a snake case name [INFO] [stdout] --> src/main.rs:419:12 [INFO] [stdout] | [INFO] [stdout] 419 | pub fn numberOfPaths(&self, array: [[isize;4];4], row: isize, col: isize, cost: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noOfPathsFromPreviousRow` should have a snake case name [INFO] [stdout] --> src/main.rs:432:13 [INFO] [stdout] | [INFO] [stdout] 432 | let noOfPathsFromPreviousRow = self.numberOfPaths(array, row-1, col, cost-array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noOfPathsFromPreviousCol` should have a snake case name [INFO] [stdout] --> src/main.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | let noOfPathsFromPreviousCol = self.numberOfPaths(array, row, col-1, cost-array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost` should have a snake case name [INFO] [stdout] --> src/main.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | fn findMinCost(&self,cost:[[isize;5];5] ,row: isize, col: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost1` should have a snake case name [INFO] [stdout] --> src/main.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | let minCost1 = self.findMinCost(cost, row - 1, col); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost2` should have a snake case name [INFO] [stdout] --> src/main.rs:452:9 [INFO] [stdout] | [INFO] [stdout] 452 | let minCost2 = self.findMinCost(cost, row, col - 1); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost` should have a snake case name [INFO] [stdout] --> src/main.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | let minCost =std::cmp::min(minCost1, minCost2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentCellsCost` should have a snake case name [INFO] [stdout] --> src/main.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 454 | let currentCellsCost = cost[row as usize][col as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cells_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:466:12 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:470:33 [INFO] [stdout] | [INFO] [stdout] 470 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:470:50 [INFO] [stdout] | [INFO] [stdout] 470 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `remainingLength` should have a snake case name [INFO] [stdout] --> src/main.rs:479:17 [INFO] [stdout] | [INFO] [stdout] 479 | let remainingLength = endIdx - startIdx -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:501:12 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `LPSAux` should have a snake case name [INFO] [stdout] --> src/main.rs:504:8 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `lpsaux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:504:32 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:504:49 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:530:12 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn findLCSLength(&self, s1: &str, s2: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stdout] --> src/main.rs:533:12 [INFO] [stdout] | [INFO] [stdout] 533 | fn findLCSLengthAux(&self, s1: &str, s2: &str, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:558:12 [INFO] [stdout] | [INFO] [stdout] 558 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str)-> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperationsAux` should have a snake case name [INFO] [stdout] --> src/main.rs:561:12 [INFO] [stdout] | [INFO] [stdout] 561 | pub fn findMinOperationsAux(&self, s1: &'a str, s2: &'a str, i: usize, j: usize)-> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:588:93 [INFO] [stdout] | [INFO] [stdout] 588 | pub fn knapsack_aux(&self, profits: &'a Vec, weights: &'a Vec, capacity: i32, currentIndex: i32)-> i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `costTu` should have a snake case name [INFO] [stdout] --> src/main.rs:1202:5 [INFO] [stdout] | [INFO] [stdout] 1202 | let costTu: ConvertOneStringToAnother_TD = ConvertOneStringToAnother_TD{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cost_tu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `costBu` should have a snake case name [INFO] [stdout] --> src/main.rs:1209:5 [INFO] [stdout] | [INFO] [stdout] 1209 | let costBu: ConvertOneStringToAnother_BU = ConvertOneStringToAnother_BU { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cost_bu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 108 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1947:5 [INFO] [stdout] | [INFO] [stdout] 1947 | read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1947 | let _ = read_username_from_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 115 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "69b8478752dd722a6b7aa29023622e50bc86f30ecfd558c987aadbca40cdac60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69b8478752dd722a6b7aa29023622e50bc86f30ecfd558c987aadbca40cdac60", kill_on_drop: false }` [INFO] [stdout] 69b8478752dd722a6b7aa29023622e50bc86f30ecfd558c987aadbca40cdac60 [INFO] checking shunak/rust-train against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunak%2Frust-train" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shunak/rust-train on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shunak/rust-train [INFO] finished tweaking git repo https://github.com/shunak/rust-train [INFO] tweaked toml for git repo https://github.com/shunak/rust-train written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/shunak/rust-train 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf46be20f79d3ca8a0fee8a458ed28770b5617eb0bdc21f253a8daae07d6fda2 [INFO] running `Command { std: "docker" "start" "-a" "bf46be20f79d3ca8a0fee8a458ed28770b5617eb0bdc21f253a8daae07d6fda2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf46be20f79d3ca8a0fee8a458ed28770b5617eb0bdc21f253a8daae07d6fda2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf46be20f79d3ca8a0fee8a458ed28770b5617eb0bdc21f253a8daae07d6fda2", kill_on_drop: false }` [INFO] [stdout] bf46be20f79d3ca8a0fee8a458ed28770b5617eb0bdc21f253a8daae07d6fda2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c79c3e3cc912ddaf973713347a4e1b79558b0e15f7c462c4c78c82f89206070 [INFO] running `Command { std: "docker" "start" "-a" "1c79c3e3cc912ddaf973713347a4e1b79558b0e15f7c462c4c78c82f89206070", kill_on_drop: false }` [INFO] [stderr] Checking rust-train v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc_macro` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use proc_macro; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:98:47 [INFO] [stdout] | [INFO] [stdout] 98 | fn request_review(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:107:47 [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:117:47 [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc_macro` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use proc_macro; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:98:47 [INFO] [stdout] | [INFO] [stdout] 98 | fn request_review(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:107:47 [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:117:47 [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `State` is never used [INFO] [stdout] --> src/lib.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | trait State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Draft` is never constructed [INFO] [stdout] --> src/lib.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Draft {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PendingReview` is never constructed [INFO] [stdout] --> src/lib.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct PendingReview{} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Published` is never constructed [INFO] [stdout] --> src/lib.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | struct Published {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/lib.rs:291:8 [INFO] [stdout] | [INFO] [stdout] 291 | struct Pair{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 296 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 297 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/lib.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 302 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 303 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/lib.rs:356:8 [INFO] [stdout] | [INFO] [stdout] 356 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shoes_in_my_size` is never used [INFO] [stdout] --> src/lib.rs:361:4 [INFO] [stdout] | [INFO] [stdout] 361 | fn shoes_in_my_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/lib.rs:385:8 [INFO] [stdout] | [INFO] [stdout] 385 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:390:8 [INFO] [stdout] | [INFO] [stdout] 389 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 390 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `State` is never used [INFO] [stdout] --> src/lib.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | trait State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Draft` is never constructed [INFO] [stdout] --> src/lib.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Draft {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PendingReview` is never constructed [INFO] [stdout] --> src/lib.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct PendingReview{} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Published` is never constructed [INFO] [stdout] --> src/lib.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | struct Published {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/lib.rs:291:8 [INFO] [stdout] | [INFO] [stdout] 291 | struct Pair{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 296 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 297 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/lib.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 302 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 303 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NumberOfPathsToReachLastCell_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct NumberOfPathsToReachLastCell_TD<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NumberOfPathsToReachLastCellTd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MinCostToReachLastCell_in2DArray_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | struct MinCostToReachLastCell_in2DArray_TD<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MinCostToReachLastCellIn2darrayTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestPalindromicSubstringDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | struct LongestPalindromicSubstringDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubstringDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestPalindromicSubsequenceDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | struct LongestPalindromicSubsequenceDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubsequenceDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestCommonSubsequenceDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 173 | struct LongestCommonSubsequenceDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestCommonSubsequenceDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ZeroOneKnapsack_DP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_BU` should have an upper camel case name [INFO] [stdout] --> src/main.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | struct ConvertOneStringToAnother_BU<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherBu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 270 | struct ConvertOneStringToAnother_TD<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HouseThief_BottomUp` should have an upper camel case name [INFO] [stdout] --> src/main.rs:309:8 [INFO] [stdout] | [INFO] [stdout] 309 | struct HouseThief_BottomUp<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseThiefBottomUp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HouseTheif_TopDown` should have an upper camel case name [INFO] [stdout] --> src/main.rs:324:8 [INFO] [stdout] | [INFO] [stdout] 324 | struct HouseTheif_TopDown<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseTheifTopDown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_DC` should have an upper camel case name [INFO] [stdout] --> src/main.rs:553:8 [INFO] [stdout] | [INFO] [stdout] 553 | struct ConvertOneStringToAnother_DC<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherDc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ZeroOneKnapsack_DC` should have an upper camel case name [INFO] [stdout] --> src/main.rs:579:8 [INFO] [stdout] | [INFO] [stdout] 579 | struct ZeroOneKnapsack_DC<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1101:45 [INFO] [stdout] | [INFO] [stdout] 1101 | Message2::Hello {id: id_variable @ 3...7} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1104:33 [INFO] [stdout] | [INFO] [stdout] 1104 | Message2::Hello { id: 10...12} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NumberOfPathsToReachLastCell_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct NumberOfPathsToReachLastCell_TD<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NumberOfPathsToReachLastCellTd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MinCostToReachLastCell_in2DArray_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | struct MinCostToReachLastCell_in2DArray_TD<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MinCostToReachLastCellIn2darrayTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestPalindromicSubstringDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | struct LongestPalindromicSubstringDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubstringDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestPalindromicSubsequenceDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | struct LongestPalindromicSubsequenceDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubsequenceDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestCommonSubsequenceDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 173 | struct LongestCommonSubsequenceDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestCommonSubsequenceDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ZeroOneKnapsack_DP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1292:12 [INFO] [stdout] | [INFO] [stdout] 1292 | 1 ... 5 => println!("one through five"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1300:17 [INFO] [stdout] | [INFO] [stdout] 1300 | 'a' ... 'j' => println!("early ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1301:17 [INFO] [stdout] | [INFO] [stdout] 1301 | 'k' ... 'z' => println!("late ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_BU` should have an upper camel case name [INFO] [stdout] --> src/main.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | struct ConvertOneStringToAnother_BU<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherBu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 270 | struct ConvertOneStringToAnother_TD<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HouseThief_BottomUp` should have an upper camel case name [INFO] [stdout] --> src/main.rs:309:8 [INFO] [stdout] | [INFO] [stdout] 309 | struct HouseThief_BottomUp<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseThiefBottomUp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HouseTheif_TopDown` should have an upper camel case name [INFO] [stdout] --> src/main.rs:324:8 [INFO] [stdout] | [INFO] [stdout] 324 | struct HouseTheif_TopDown<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseTheifTopDown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_DC` should have an upper camel case name [INFO] [stdout] --> src/main.rs:553:8 [INFO] [stdout] | [INFO] [stdout] 553 | struct ConvertOneStringToAnother_DC<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherDc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ZeroOneKnapsack_DC` should have an upper camel case name [INFO] [stdout] --> src/main.rs:579:8 [INFO] [stdout] | [INFO] [stdout] 579 | struct ZeroOneKnapsack_DC<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1101:45 [INFO] [stdout] | [INFO] [stdout] 1101 | Message2::Hello {id: id_variable @ 3...7} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1104:33 [INFO] [stdout] | [INFO] [stdout] 1104 | Message2::Hello { id: 10...12} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1292:12 [INFO] [stdout] | [INFO] [stdout] 1292 | 1 ... 5 => println!("one through five"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1300:17 [INFO] [stdout] | [INFO] [stdout] 1300 | 'a' ... 'j' => println!("early ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1301:17 [INFO] [stdout] | [INFO] [stdout] 1301 | 'k' ... 'z' => println!("late ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | let mut v: 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] --> src/main.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | let mut dp: &mut Vec> = &mut vec![vec![0; capacity as usize + 1]; profits.len()]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:380:30 [INFO] [stdout] | [INFO] [stdout] 380 | fn fbnc_bottom_up(&self, n:i32) -> i32{ [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] --> src/main.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | let mut v: 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] --> src/main.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | let mut dp: &mut Vec> = &mut vec![vec![0; capacity as usize + 1]; profits.len()]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:380:30 [INFO] [stdout] | [INFO] [stdout] 380 | fn fbnc_bottom_up(&self, n:i32) -> i32{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/main.rs:1090:9 [INFO] [stdout] | [INFO] [stdout] 1090 | let r1 = &num as *const i32; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/main.rs:1091:9 [INFO] [stdout] | [INFO] [stdout] 1091 | let r2 = &mut num as *mut i32; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:1167:9 [INFO] [stdout] | [INFO] [stdout] 1167 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/main.rs:1198:6 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> src/main.rs:1198:12 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:1198:27 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:1198:29 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:1400:9 [INFO] [stdout] | [INFO] [stdout] 1400 | for i in 0..12{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:1779:9 [INFO] [stdout] | [INFO] [stdout] 1779 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:1831:9 [INFO] [stdout] | [INFO] [stdout] 1831 | let s: &'static str = "I have a static lifetime."; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:1957:9 [INFO] [stdout] | [INFO] [stdout] 1957 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1981:9 [INFO] [stdout] | [INFO] [stdout] 1981 | let v = vec![1,2,3]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:2037:13 [INFO] [stdout] | [INFO] [stdout] 2037 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:2074:9 [INFO] [stdout] | [INFO] [stdout] 2074 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> src/main.rs:2085:9 [INFO] [stdout] | [INFO] [stdout] 2085 | let third: Option<&i32> = v.get(2); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:2134:9 [INFO] [stdout] | [INFO] [stdout] 2134 | let s = 5; // Declara variable [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:2139:13 [INFO] [stdout] | [INFO] [stdout] 2139 | let k = 7; // Scope test. This variable is valid in this parenthes. [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/main.rs:2275:17 [INFO] [stdout] | [INFO] [stdout] 2275 | let mut count =0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/main.rs:2286:13 [INFO] [stdout] | [INFO] [stdout] 2286 | count += 1; [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: unused variable: `r1` [INFO] [stdout] --> src/main.rs:1090:9 [INFO] [stdout] | [INFO] [stdout] 1090 | let r1 = &num as *const i32; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/main.rs:1091:9 [INFO] [stdout] | [INFO] [stdout] 1091 | let r2 = &mut num as *mut i32; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:1167:9 [INFO] [stdout] | [INFO] [stdout] 1167 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/main.rs:1198:6 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> src/main.rs:1198:12 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:1198:27 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:1198:29 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:1400:9 [INFO] [stdout] | [INFO] [stdout] 1400 | for i in 0..12{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:1779:9 [INFO] [stdout] | [INFO] [stdout] 1779 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:1831:9 [INFO] [stdout] | [INFO] [stdout] 1831 | let s: &'static str = "I have a static lifetime."; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:1957:9 [INFO] [stdout] | [INFO] [stdout] 1957 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1981:9 [INFO] [stdout] | [INFO] [stdout] 1981 | let v = vec![1,2,3]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:2037:13 [INFO] [stdout] | [INFO] [stdout] 2037 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:2074:9 [INFO] [stdout] | [INFO] [stdout] 2074 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> src/main.rs:2085:9 [INFO] [stdout] | [INFO] [stdout] 2085 | let third: Option<&i32> = v.get(2); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:2134:9 [INFO] [stdout] | [INFO] [stdout] 2134 | let s = 5; // Declara variable [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:2139:13 [INFO] [stdout] | [INFO] [stdout] 2139 | let k = 7; // Scope test. This variable is valid in this parenthes. [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/main.rs:2275:17 [INFO] [stdout] | [INFO] [stdout] 2275 | let mut count =0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/main.rs:2286:13 [INFO] [stdout] | [INFO] [stdout] 2286 | count += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:2037:9 [INFO] [stdout] | [INFO] [stdout] 2037 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:2176:9 [INFO] [stdout] | [INFO] [stdout] 2176 | let mut s4 = String::from("Hello world!"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ZeroOneKnapsack_DP_TD` is never constructed [INFO] [stdout] --> src/main.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `knapsack` and `knapsackAux` are never used [INFO] [stdout] --> src/main.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl ZeroOneKnapsack_DP_TD { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 217 | pub fn knapsack(&self, profits: &Vec, weights: &Vec, capacity:i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/main.rs:628:5 [INFO] [stdout] | [INFO] [stdout] 627 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 628 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 629 | parent: RefCell>, [INFO] [stdout] 630 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulated_expensive_calculation` is never used [INFO] [stdout] --> src/main.rs:633:4 [INFO] [stdout] | [INFO] [stdout] 633 | fn simulated_expensive_calculation(intensity: u32) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:757:10 [INFO] [stdout] | [INFO] [stdout] 757 | Cons(i32, RefCell>), [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 757 | Cons((), RefCell>), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:799:8 [INFO] [stdout] | [INFO] [stdout] 799 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> src/main.rs:805:5 [INFO] [stdout] | [INFO] [stdout] 804 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 805 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 806 | Move { x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 807 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point3` is never constructed [INFO] [stdout] --> src/main.rs:814:8 [INFO] [stdout] | [INFO] [stdout] 814 | struct Point3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `baby_name` is never used [INFO] [stdout] --> src/main.rs:886:12 [INFO] [stdout] | [INFO] [stdout] 885 | impl Dog { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 886 | fn baby_name() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPaths` should have a snake case name [INFO] [stdout] --> src/main.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn numberOfPaths(&self, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPathsAux` should have a snake case name [INFO] [stdout] --> src/main.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn numberOfPathsAux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numOfPathsFromPreviousRow` should have a snake case name [INFO] [stdout] --> src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let numOfPathsFromPreviousRow = self.numberOfPaths(array, row -1, col, cost - array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numOfPathsFromPreviousCol` should have a snake case name [INFO] [stdout] --> src/main.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | let numOfPathsFromPreviousCol = self.numberOfPaths(array, row, col -1, cost - array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost` should have a snake case name [INFO] [stdout] --> src/main.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | fn findMinCost(&self, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost_aux` should have a snake case name [INFO] [stdout] --> src/main.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn findMinCost_aux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost1` should have a snake case name [INFO] [stdout] --> src/main.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let minCost1 = self.findMinCost_aux(dp, array, row - 1, col); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost2` should have a snake case name [INFO] [stdout] --> src/main.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let minCost2 = self.findMinCost_aux(dp, array, row, col - 1); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost` should have a snake case name [INFO] [stdout] --> src/main.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let minCost = std::cmp::min(minCost1, minCost2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentCellCost` should have a snake case name [INFO] [stdout] --> src/main.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let currentCellCost = array[row as usize][col as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cell_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn findLPSLength(&self, st: &str)-> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:115:57 [INFO] [stdout] | [INFO] [stdout] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:115:72 [INFO] [stdout] | [INFO] [stdout] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `remainingLength` should have a snake case name [INFO] [stdout] --> src/main.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | let remainingLength = endIdx - startIdx -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn findLPSLength(&self, sentence: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lps_Aux` should have a snake case name [INFO] [stdout] --> src/main.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `lps_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:153:63 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:153:78 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn findLCSLength(&self, s1: &String, s2: &String) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stdout] --> src/main.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | fn findLCSLengthAux(&self, dp: &mut Vec>, s1: &String, s2: &String, i: usize, j: usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `knapsackAux` should have a snake case name [INFO] [stdout] --> src/main.rs:223:8 [INFO] [stdout] | [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `knapsack_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:223:106 [INFO] [stdout] | [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:275:12 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperationsRecursive` should have a snake case name [INFO] [stdout] --> src/main.rs:281:8 [INFO] [stdout] | [INFO] [stdout] 281 | fn findMinOperationsRecursive(&self, dp: &mut Vec>, s1: &'a str, s2: &'a str, i: usize, j: usize) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_recursive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMaxSteal` should have a snake case name [INFO] [stdout] --> src/main.rs:313:12 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn findMaxSteal(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `find_max_steal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maxMoney` should have a snake case name [INFO] [stdout] --> src/main.rs:328:12 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn maxMoney(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_money` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maxMoney_TopDown` should have a snake case name [INFO] [stdout] --> src/main.rs:332:8 [INFO] [stdout] | [INFO] [stdout] 332 | fn maxMoney_TopDown(&self, dp: &mut Vec, worth_to_steal: &'a Vec, index:usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_money_top_down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stealCurrent` should have a snake case name [INFO] [stdout] --> src/main.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | let stealCurrent = worth_to_steal[index] + self.maxMoney_TopDown(dp, worth_to_steal, index+2); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `steal_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipCurrent` should have a snake case name [INFO] [stdout] --> src/main.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | let skipCurrent = self.maxMoney_TopDown(dp, worth_to_steal, index+1); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skip_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `waysToGetN` should have a snake case name [INFO] [stdout] --> src/main.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn waysToGetN(&self, n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `waysToGetN_TopDown` should have a snake case name [INFO] [stdout] --> src/main.rs:357:12 [INFO] [stdout] | [INFO] [stdout] 357 | pub fn waysToGetN_TopDown(&self, dp: &mut Vec, n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n_top_down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fibonacciAux` should have a snake case name [INFO] [stdout] --> src/main.rs:395:12 [INFO] [stdout] | [INFO] [stdout] 395 | pub fn fibonacciAux(&self, memo: &mut Vec, n:i32)->i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `fibonacci_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPaths` should have a snake case name [INFO] [stdout] --> src/main.rs:419:12 [INFO] [stdout] | [INFO] [stdout] 419 | pub fn numberOfPaths(&self, array: [[isize;4];4], row: isize, col: isize, cost: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noOfPathsFromPreviousRow` should have a snake case name [INFO] [stdout] --> src/main.rs:432:13 [INFO] [stdout] | [INFO] [stdout] 432 | let noOfPathsFromPreviousRow = self.numberOfPaths(array, row-1, col, cost-array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noOfPathsFromPreviousCol` should have a snake case name [INFO] [stdout] --> src/main.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | let noOfPathsFromPreviousCol = self.numberOfPaths(array, row, col-1, cost-array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost` should have a snake case name [INFO] [stdout] --> src/main.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | fn findMinCost(&self,cost:[[isize;5];5] ,row: isize, col: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost1` should have a snake case name [INFO] [stdout] --> src/main.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | let minCost1 = self.findMinCost(cost, row - 1, col); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost2` should have a snake case name [INFO] [stdout] --> src/main.rs:452:9 [INFO] [stdout] | [INFO] [stdout] 452 | let minCost2 = self.findMinCost(cost, row, col - 1); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost` should have a snake case name [INFO] [stdout] --> src/main.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | let minCost =std::cmp::min(minCost1, minCost2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentCellsCost` should have a snake case name [INFO] [stdout] --> src/main.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 454 | let currentCellsCost = cost[row as usize][col as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cells_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:466:12 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:470:33 [INFO] [stdout] | [INFO] [stdout] 470 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:470:50 [INFO] [stdout] | [INFO] [stdout] 470 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `remainingLength` should have a snake case name [INFO] [stdout] --> src/main.rs:479:17 [INFO] [stdout] | [INFO] [stdout] 479 | let remainingLength = endIdx - startIdx -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:501:12 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `LPSAux` should have a snake case name [INFO] [stdout] --> src/main.rs:504:8 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `lpsaux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:504:32 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:504:49 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:530:12 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn findLCSLength(&self, s1: &str, s2: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stdout] --> src/main.rs:533:12 [INFO] [stdout] | [INFO] [stdout] 533 | fn findLCSLengthAux(&self, s1: &str, s2: &str, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:558:12 [INFO] [stdout] | [INFO] [stdout] 558 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str)-> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperationsAux` should have a snake case name [INFO] [stdout] --> src/main.rs:561:12 [INFO] [stdout] | [INFO] [stdout] 561 | pub fn findMinOperationsAux(&self, s1: &'a str, s2: &'a str, i: usize, j: usize)-> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:588:93 [INFO] [stdout] | [INFO] [stdout] 588 | pub fn knapsack_aux(&self, profits: &'a Vec, weights: &'a Vec, capacity: i32, currentIndex: i32)-> i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `costTu` should have a snake case name [INFO] [stdout] --> src/main.rs:1202:5 [INFO] [stdout] | [INFO] [stdout] 1202 | let costTu: ConvertOneStringToAnother_TD = ConvertOneStringToAnother_TD{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cost_tu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `costBu` should have a snake case name [INFO] [stdout] --> src/main.rs:1209:5 [INFO] [stdout] | [INFO] [stdout] 1209 | let costBu: ConvertOneStringToAnother_BU = ConvertOneStringToAnother_BU { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cost_bu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1947:5 [INFO] [stdout] | [INFO] [stdout] 1947 | read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1947 | let _ = read_username_from_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:2324:11 [INFO] [stdout] | [INFO] [stdout] 2315 | let f = File::open("hello.txt"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 2316 | [INFO] [stdout] 2317 | let mut f = match f { [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 2318 | Ok(file) => file, [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 2319 | Err(e) => return Err(e), [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 2324 | match f.read_to_string(&mut s) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 108 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:2037:9 [INFO] [stdout] | [INFO] [stdout] 2037 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:2176:9 [INFO] [stdout] | [INFO] [stdout] 2176 | let mut s4 = String::from("Hello world!"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-train` (bin "rust-train" test) due to 2 previous errors; 108 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: struct `ZeroOneKnapsack_DP_TD` is never constructed [INFO] [stdout] --> src/main.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `knapsack` and `knapsackAux` are never used [INFO] [stdout] --> src/main.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl ZeroOneKnapsack_DP_TD { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 217 | pub fn knapsack(&self, profits: &Vec, weights: &Vec, capacity:i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/main.rs:628:5 [INFO] [stdout] | [INFO] [stdout] 627 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 628 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 629 | parent: RefCell>, [INFO] [stdout] 630 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulated_expensive_calculation` is never used [INFO] [stdout] --> src/main.rs:633:4 [INFO] [stdout] | [INFO] [stdout] 633 | fn simulated_expensive_calculation(intensity: u32) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:757:10 [INFO] [stdout] | [INFO] [stdout] 757 | Cons(i32, RefCell>), [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 757 | Cons((), RefCell>), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:799:8 [INFO] [stdout] | [INFO] [stdout] 799 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> src/main.rs:805:5 [INFO] [stdout] | [INFO] [stdout] 804 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 805 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 806 | Move { x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 807 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point3` is never constructed [INFO] [stdout] --> src/main.rs:814:8 [INFO] [stdout] | [INFO] [stdout] 814 | struct Point3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `baby_name` is never used [INFO] [stdout] --> src/main.rs:886:12 [INFO] [stdout] | [INFO] [stdout] 885 | impl Dog { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 886 | fn baby_name() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/main.rs:1907:9 [INFO] [stdout] | [INFO] [stdout] 1906 | struct Point2 { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 1907 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 1908 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:2102:13 [INFO] [stdout] | [INFO] [stdout] 2102 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 2102 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:2103:15 [INFO] [stdout] | [INFO] [stdout] 2103 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 2103 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:2104:14 [INFO] [stdout] | [INFO] [stdout] 2104 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 2104 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/main.rs:2184:9 [INFO] [stdout] | [INFO] [stdout] 2183 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 2184 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 2185 | email: String, [INFO] [stdout] 2186 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 2187 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/main.rs:2244:9 [INFO] [stdout] | [INFO] [stdout] 2243 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 2244 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny` and `Nickel` are never constructed [INFO] [stdout] --> src/main.rs:2249:9 [INFO] [stdout] | [INFO] [stdout] 2248 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 2249 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 2250 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPaths` should have a snake case name [INFO] [stdout] --> src/main.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn numberOfPaths(&self, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPathsAux` should have a snake case name [INFO] [stdout] --> src/main.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn numberOfPathsAux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numOfPathsFromPreviousRow` should have a snake case name [INFO] [stdout] --> src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let numOfPathsFromPreviousRow = self.numberOfPaths(array, row -1, col, cost - array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numOfPathsFromPreviousCol` should have a snake case name [INFO] [stdout] --> src/main.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | let numOfPathsFromPreviousCol = self.numberOfPaths(array, row, col -1, cost - array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost` should have a snake case name [INFO] [stdout] --> src/main.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | fn findMinCost(&self, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost_aux` should have a snake case name [INFO] [stdout] --> src/main.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn findMinCost_aux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost1` should have a snake case name [INFO] [stdout] --> src/main.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let minCost1 = self.findMinCost_aux(dp, array, row - 1, col); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost2` should have a snake case name [INFO] [stdout] --> src/main.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let minCost2 = self.findMinCost_aux(dp, array, row, col - 1); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost` should have a snake case name [INFO] [stdout] --> src/main.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let minCost = std::cmp::min(minCost1, minCost2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentCellCost` should have a snake case name [INFO] [stdout] --> src/main.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let currentCellCost = array[row as usize][col as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cell_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn findLPSLength(&self, st: &str)-> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:115:57 [INFO] [stdout] | [INFO] [stdout] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:115:72 [INFO] [stdout] | [INFO] [stdout] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `remainingLength` should have a snake case name [INFO] [stdout] --> src/main.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | let remainingLength = endIdx - startIdx -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn findLPSLength(&self, sentence: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lps_Aux` should have a snake case name [INFO] [stdout] --> src/main.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `lps_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:153:63 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:153:78 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn findLCSLength(&self, s1: &String, s2: &String) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stdout] --> src/main.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | fn findLCSLengthAux(&self, dp: &mut Vec>, s1: &String, s2: &String, i: usize, j: usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `knapsackAux` should have a snake case name [INFO] [stdout] --> src/main.rs:223:8 [INFO] [stdout] | [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `knapsack_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:223:106 [INFO] [stdout] | [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:275:12 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperationsRecursive` should have a snake case name [INFO] [stdout] --> src/main.rs:281:8 [INFO] [stdout] | [INFO] [stdout] 281 | fn findMinOperationsRecursive(&self, dp: &mut Vec>, s1: &'a str, s2: &'a str, i: usize, j: usize) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_recursive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMaxSteal` should have a snake case name [INFO] [stdout] --> src/main.rs:313:12 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn findMaxSteal(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `find_max_steal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maxMoney` should have a snake case name [INFO] [stdout] --> src/main.rs:328:12 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn maxMoney(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_money` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maxMoney_TopDown` should have a snake case name [INFO] [stdout] --> src/main.rs:332:8 [INFO] [stdout] | [INFO] [stdout] 332 | fn maxMoney_TopDown(&self, dp: &mut Vec, worth_to_steal: &'a Vec, index:usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_money_top_down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stealCurrent` should have a snake case name [INFO] [stdout] --> src/main.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | let stealCurrent = worth_to_steal[index] + self.maxMoney_TopDown(dp, worth_to_steal, index+2); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `steal_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipCurrent` should have a snake case name [INFO] [stdout] --> src/main.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | let skipCurrent = self.maxMoney_TopDown(dp, worth_to_steal, index+1); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skip_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `waysToGetN` should have a snake case name [INFO] [stdout] --> src/main.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn waysToGetN(&self, n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `waysToGetN_TopDown` should have a snake case name [INFO] [stdout] --> src/main.rs:357:12 [INFO] [stdout] | [INFO] [stdout] 357 | pub fn waysToGetN_TopDown(&self, dp: &mut Vec, n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n_top_down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fibonacciAux` should have a snake case name [INFO] [stdout] --> src/main.rs:395:12 [INFO] [stdout] | [INFO] [stdout] 395 | pub fn fibonacciAux(&self, memo: &mut Vec, n:i32)->i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `fibonacci_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPaths` should have a snake case name [INFO] [stdout] --> src/main.rs:419:12 [INFO] [stdout] | [INFO] [stdout] 419 | pub fn numberOfPaths(&self, array: [[isize;4];4], row: isize, col: isize, cost: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noOfPathsFromPreviousRow` should have a snake case name [INFO] [stdout] --> src/main.rs:432:13 [INFO] [stdout] | [INFO] [stdout] 432 | let noOfPathsFromPreviousRow = self.numberOfPaths(array, row-1, col, cost-array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noOfPathsFromPreviousCol` should have a snake case name [INFO] [stdout] --> src/main.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | let noOfPathsFromPreviousCol = self.numberOfPaths(array, row, col-1, cost-array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost` should have a snake case name [INFO] [stdout] --> src/main.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | fn findMinCost(&self,cost:[[isize;5];5] ,row: isize, col: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost1` should have a snake case name [INFO] [stdout] --> src/main.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | let minCost1 = self.findMinCost(cost, row - 1, col); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost2` should have a snake case name [INFO] [stdout] --> src/main.rs:452:9 [INFO] [stdout] | [INFO] [stdout] 452 | let minCost2 = self.findMinCost(cost, row, col - 1); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost` should have a snake case name [INFO] [stdout] --> src/main.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | let minCost =std::cmp::min(minCost1, minCost2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentCellsCost` should have a snake case name [INFO] [stdout] --> src/main.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 454 | let currentCellsCost = cost[row as usize][col as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cells_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:466:12 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:470:33 [INFO] [stdout] | [INFO] [stdout] 470 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:470:50 [INFO] [stdout] | [INFO] [stdout] 470 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `remainingLength` should have a snake case name [INFO] [stdout] --> src/main.rs:479:17 [INFO] [stdout] | [INFO] [stdout] 479 | let remainingLength = endIdx - startIdx -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:501:12 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `LPSAux` should have a snake case name [INFO] [stdout] --> src/main.rs:504:8 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `lpsaux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:504:32 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:504:49 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:530:12 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn findLCSLength(&self, s1: &str, s2: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stdout] --> src/main.rs:533:12 [INFO] [stdout] | [INFO] [stdout] 533 | fn findLCSLengthAux(&self, s1: &str, s2: &str, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:558:12 [INFO] [stdout] | [INFO] [stdout] 558 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str)-> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperationsAux` should have a snake case name [INFO] [stdout] --> src/main.rs:561:12 [INFO] [stdout] | [INFO] [stdout] 561 | pub fn findMinOperationsAux(&self, s1: &'a str, s2: &'a str, i: usize, j: usize)-> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:588:93 [INFO] [stdout] | [INFO] [stdout] 588 | pub fn knapsack_aux(&self, profits: &'a Vec, weights: &'a Vec, capacity: i32, currentIndex: i32)-> i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `costTu` should have a snake case name [INFO] [stdout] --> src/main.rs:1202:5 [INFO] [stdout] | [INFO] [stdout] 1202 | let costTu: ConvertOneStringToAnother_TD = ConvertOneStringToAnother_TD{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cost_tu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `costBu` should have a snake case name [INFO] [stdout] --> src/main.rs:1209:5 [INFO] [stdout] | [INFO] [stdout] 1209 | let costBu: ConvertOneStringToAnother_BU = ConvertOneStringToAnother_BU { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cost_bu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1947:5 [INFO] [stdout] | [INFO] [stdout] 1947 | read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1947 | let _ = read_username_from_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:2324:11 [INFO] [stdout] | [INFO] [stdout] 2315 | let f = File::open("hello.txt"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 2316 | [INFO] [stdout] 2317 | let mut f = match f { [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 2318 | Ok(file) => file, [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 2319 | Err(e) => return Err(e), [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 2324 | match f.read_to_string(&mut s) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 115 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-train` (bin "rust-train") due to 2 previous errors; 115 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1c79c3e3cc912ddaf973713347a4e1b79558b0e15f7c462c4c78c82f89206070", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c79c3e3cc912ddaf973713347a4e1b79558b0e15f7c462c4c78c82f89206070", kill_on_drop: false }` [INFO] [stdout] 1c79c3e3cc912ddaf973713347a4e1b79558b0e15f7c462c4c78c82f89206070