[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] 42b752f36fd4f954d11634e35dcfcb6b5e6eb001 [INFO] testing shunak/rust-train against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunak%2Frust-train" "/workspace/builds/worker-28/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-28/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shunak/rust-train on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "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-28/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: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 44e73a14b4347d2f909c8d22165a1fe3bddf9300a1224ddf02ec3d09a5f08857 [INFO] running `Command { std: "docker" "start" "-a" "44e73a14b4347d2f909c8d22165a1fe3bddf9300a1224ddf02ec3d09a5f08857", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "44e73a14b4347d2f909c8d22165a1fe3bddf9300a1224ddf02ec3d09a5f08857", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44e73a14b4347d2f909c8d22165a1fe3bddf9300a1224ddf02ec3d09a5f08857", kill_on_drop: false }` [INFO] [stdout] 44e73a14b4347d2f909c8d22165a1fe3bddf9300a1224ddf02ec3d09a5f08857 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] befa2a720acd87d73e66845629919d0d67ea5249045ba26fc77386e8458cdaee [INFO] running `Command { std: "docker" "start" "-a" "befa2a720acd87d73e66845629919d0d67ea5249045ba26fc77386e8458cdaee", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling 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: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:44:47 [INFO] [stdout] | [INFO] [stdout] 44 | fn request_review(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 44 - fn request_review(self: Box) -> Box; [INFO] [stdout] 44 + 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:45:40 [INFO] [stdout] | [INFO] [stdout] 45 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 - fn approve(self: Box) -> Box; [INFO] [stdout] 45 + 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:79:47 [INFO] [stdout] | [INFO] [stdout] 79 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 79 - fn request_review(self: Box) -> Box { [INFO] [stdout] 79 + 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:82:40 [INFO] [stdout] | [INFO] [stdout] 82 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 82 - fn approve(self: Box) -> Box { [INFO] [stdout] 82 + 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:88:47 [INFO] [stdout] | [INFO] [stdout] 88 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 88 - fn request_review(self: Box) -> Box{ [INFO] [stdout] 88 + 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:91:40 [INFO] [stdout] | [INFO] [stdout] 91 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 - fn approve(self: Box) -> Box { [INFO] [stdout] 91 + 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 - fn request_review(self: Box) -> Box { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 - fn approve(self: Box) -> Box { [INFO] [stdout] 101 + fn approve(self: Box) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | 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: struct is never constructed: `Pair` [INFO] [stdout] --> src/lib.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | struct Pair{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 278 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cmp_display` [INFO] [stdout] --> src/lib.rs:284:8 [INFO] [stdout] | [INFO] [stdout] 284 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shoes_in_my_size` [INFO] [stdout] --> src/lib.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn shoes_in_my_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib.rs:371:8 [INFO] [stdout] | [INFO] [stdout] 371 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 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 `ZeroOneKnapsack_DP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDpTd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_BU` should have an upper camel case name [INFO] [stdout] --> src/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | 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:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | 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:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | 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:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | 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:383:8 [INFO] [stdout] | [INFO] [stdout] 383 | 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:409:8 [INFO] [stdout] | [INFO] [stdout] 409 | 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:670:45 [INFO] [stdout] | [INFO] [stdout] 670 | Message2::Hello {id: id_variable @ 3...7} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [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:673:33 [INFO] [stdout] | [INFO] [stdout] 673 | 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:861:12 [INFO] [stdout] | [INFO] [stdout] 861 | 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:869:17 [INFO] [stdout] | [INFO] [stdout] 869 | '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:870:17 [INFO] [stdout] | [INFO] [stdout] 870 | '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 variable: `y` [INFO] [stdout] --> src/main.rs:736:9 [INFO] [stdout] | [INFO] [stdout] 736 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/main.rs:767:6 [INFO] [stdout] | [INFO] [stdout] 767 | 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:767:12 [INFO] [stdout] | [INFO] [stdout] 767 | 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:767:27 [INFO] [stdout] | [INFO] [stdout] 767 | 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:767:29 [INFO] [stdout] | [INFO] [stdout] 767 | 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:969:9 [INFO] [stdout] | [INFO] [stdout] 969 | 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:1348:9 [INFO] [stdout] | [INFO] [stdout] 1348 | 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:1400:9 [INFO] [stdout] | [INFO] [stdout] 1400 | 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:1526:9 [INFO] [stdout] | [INFO] [stdout] 1526 | 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:1550:9 [INFO] [stdout] | [INFO] [stdout] 1550 | 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:1606:13 [INFO] [stdout] | [INFO] [stdout] 1606 | 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:1643:9 [INFO] [stdout] | [INFO] [stdout] 1643 | 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:1654:9 [INFO] [stdout] | [INFO] [stdout] 1654 | 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:1703:9 [INFO] [stdout] | [INFO] [stdout] 1703 | 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:1708:13 [INFO] [stdout] | [INFO] [stdout] 1708 | 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:1844:17 [INFO] [stdout] | [INFO] [stdout] 1844 | 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:1855:13 [INFO] [stdout] | [INFO] [stdout] 1855 | count += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:210:30 [INFO] [stdout] | [INFO] [stdout] 210 | 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] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | 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] = 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:1606:9 [INFO] [stdout] | [INFO] [stdout] 1606 | 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:1745:9 [INFO] [stdout] | [INFO] [stdout] 1745 | let mut s4 = String::from("Hello world!"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/main.rs:458:5 [INFO] [stdout] | [INFO] [stdout] 458 | value: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:456:10 [INFO] [stdout] | [INFO] [stdout] 456 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `children` [INFO] [stdout] --> src/main.rs:460:5 [INFO] [stdout] | [INFO] [stdout] 460 | 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] --> src/main.rs:456:10 [INFO] [stdout] | [INFO] [stdout] 456 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `simulated_expensive_calculation` [INFO] [stdout] --> src/main.rs:463:4 [INFO] [stdout] | [INFO] [stdout] 463 | fn simulated_expensive_calculation(intensity: u32) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/main.rs:630:8 [INFO] [stdout] | [INFO] [stdout] 630 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/main.rs:636:5 [INFO] [stdout] | [INFO] [stdout] 636 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/main.rs:637:5 [INFO] [stdout] | [INFO] [stdout] 637 | Move { x: i32, y: i32}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/main.rs:638:5 [INFO] [stdout] | [INFO] [stdout] 638 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point3` [INFO] [stdout] --> src/main.rs:645:8 [INFO] [stdout] | [INFO] [stdout] 645 | struct Point3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/main.rs:1476:9 [INFO] [stdout] | [INFO] [stdout] 1476 | x: T, [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] --> src/main.rs:1474:14 [INFO] [stdout] | [INFO] [stdout] 1474 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/main.rs:1477:9 [INFO] [stdout] | [INFO] [stdout] 1477 | 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] --> src/main.rs:1474:14 [INFO] [stdout] | [INFO] [stdout] 1474 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `username` [INFO] [stdout] --> src/main.rs:1753:9 [INFO] [stdout] | [INFO] [stdout] 1753 | username: String, [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] --> src/main.rs:1751:14 [INFO] [stdout] | [INFO] [stdout] 1751 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sign_in_count` [INFO] [stdout] --> src/main.rs:1755:9 [INFO] [stdout] | [INFO] [stdout] 1755 | sign_in_count: u64, [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] --> src/main.rs:1751:14 [INFO] [stdout] | [INFO] [stdout] 1751 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `active` [INFO] [stdout] --> src/main.rs:1756:9 [INFO] [stdout] | [INFO] [stdout] 1756 | 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] --> src/main.rs:1751:14 [INFO] [stdout] | [INFO] [stdout] 1751 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alabama` [INFO] [stdout] --> src/main.rs:1813:9 [INFO] [stdout] | [INFO] [stdout] 1813 | 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] --> src/main.rs:1811:14 [INFO] [stdout] | [INFO] [stdout] 1811 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Penny` [INFO] [stdout] --> src/main.rs:1818:9 [INFO] [stdout] | [INFO] [stdout] 1818 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Nickel` [INFO] [stdout] --> src/main.rs:1819:9 [INFO] [stdout] | [INFO] [stdout] 1819 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `knapsackAux` should have a snake case name [INFO] [stdout] --> src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | 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] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:53:106 [INFO] [stdout] | [INFO] [stdout] 53 | 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:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | 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:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | 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:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | 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:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | 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:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | 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:162:8 [INFO] [stdout] | [INFO] [stdout] 162 | 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:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | 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:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | 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:182:12 [INFO] [stdout] | [INFO] [stdout] 182 | 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:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | 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:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | 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:249:12 [INFO] [stdout] | [INFO] [stdout] 249 | 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:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | 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:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | 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:274:8 [INFO] [stdout] | [INFO] [stdout] 274 | 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:281:9 [INFO] [stdout] | [INFO] [stdout] 281 | 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:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | 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:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | 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:284:9 [INFO] [stdout] | [INFO] [stdout] 284 | 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:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | 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:300:33 [INFO] [stdout] | [INFO] [stdout] 300 | 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:300:50 [INFO] [stdout] | [INFO] [stdout] 300 | 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:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | 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:331:12 [INFO] [stdout] | [INFO] [stdout] 331 | 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:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | 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:334:32 [INFO] [stdout] | [INFO] [stdout] 334 | 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:334:49 [INFO] [stdout] | [INFO] [stdout] 334 | 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:360:12 [INFO] [stdout] | [INFO] [stdout] 360 | 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:363:12 [INFO] [stdout] | [INFO] [stdout] 363 | 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:388:12 [INFO] [stdout] | [INFO] [stdout] 388 | 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:391:12 [INFO] [stdout] | [INFO] [stdout] 391 | 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:418:93 [INFO] [stdout] | [INFO] [stdout] 418 | 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:771:5 [INFO] [stdout] | [INFO] [stdout] 771 | 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:778:5 [INFO] [stdout] | [INFO] [stdout] 778 | 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:1516:5 [INFO] [stdout] | [INFO] [stdout] 1516 | read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 87 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.01s [INFO] running `Command { std: "docker" "inspect" "befa2a720acd87d73e66845629919d0d67ea5249045ba26fc77386e8458cdaee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "befa2a720acd87d73e66845629919d0d67ea5249045ba26fc77386e8458cdaee", kill_on_drop: false }` [INFO] [stdout] befa2a720acd87d73e66845629919d0d67ea5249045ba26fc77386e8458cdaee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 193d8ebd69608218aa5cee2f1c2236dfeef390542c68c4b7d5a3863034c2504f [INFO] running `Command { std: "docker" "start" "-a" "193d8ebd69608218aa5cee2f1c2236dfeef390542c68c4b7d5a3863034c2504f", kill_on_drop: false }` [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] [stderr] Compiling rust-train v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:44:47 [INFO] [stdout] | [INFO] [stdout] 44 | fn request_review(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 44 - fn request_review(self: Box) -> Box; [INFO] [stdout] 44 + 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:45:40 [INFO] [stdout] | [INFO] [stdout] 45 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 - fn approve(self: Box) -> Box; [INFO] [stdout] 45 + 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:79:47 [INFO] [stdout] | [INFO] [stdout] 79 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 79 - fn request_review(self: Box) -> Box { [INFO] [stdout] 79 + 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:82:40 [INFO] [stdout] | [INFO] [stdout] 82 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 82 - fn approve(self: Box) -> Box { [INFO] [stdout] 82 + 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:88:47 [INFO] [stdout] | [INFO] [stdout] 88 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 88 - fn request_review(self: Box) -> Box{ [INFO] [stdout] 88 + 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:91:40 [INFO] [stdout] | [INFO] [stdout] 91 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 - fn approve(self: Box) -> Box { [INFO] [stdout] 91 + 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 - fn request_review(self: Box) -> Box { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 - fn approve(self: Box) -> Box { [INFO] [stdout] 101 + fn approve(self: Box) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | 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: struct is never constructed: `Pair` [INFO] [stdout] --> src/lib.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | struct Pair{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 278 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cmp_display` [INFO] [stdout] --> src/lib.rs:284:8 [INFO] [stdout] | [INFO] [stdout] 284 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shoes_in_my_size` [INFO] [stdout] --> src/lib.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn shoes_in_my_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib.rs:371:8 [INFO] [stdout] | [INFO] [stdout] 371 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [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: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:44:47 [INFO] [stdout] | [INFO] [stdout] 44 | fn request_review(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 44 - fn request_review(self: Box) -> Box; [INFO] [stdout] 44 + 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:45:40 [INFO] [stdout] | [INFO] [stdout] 45 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 - fn approve(self: Box) -> Box; [INFO] [stdout] 45 + 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:79:47 [INFO] [stdout] | [INFO] [stdout] 79 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 79 - fn request_review(self: Box) -> Box { [INFO] [stdout] 79 + 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:82:40 [INFO] [stdout] | [INFO] [stdout] 82 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 82 - fn approve(self: Box) -> Box { [INFO] [stdout] 82 + 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:88:47 [INFO] [stdout] | [INFO] [stdout] 88 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 88 - fn request_review(self: Box) -> Box{ [INFO] [stdout] 88 + 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:91:40 [INFO] [stdout] | [INFO] [stdout] 91 | 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 - fn approve(self: Box) -> Box { [INFO] [stdout] 91 + 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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 - fn request_review(self: Box) -> Box { [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: use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 - fn approve(self: Box) -> Box { [INFO] [stdout] 101 + fn approve(self: Box) -> Box { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | 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: 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 `ZeroOneKnapsack_DP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDpTd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_BU` should have an upper camel case name [INFO] [stdout] --> src/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | 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:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | 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:139:8 [INFO] [stdout] | [INFO] [stdout] 139 | 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:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | 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:383:8 [INFO] [stdout] | [INFO] [stdout] 383 | 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:409:8 [INFO] [stdout] | [INFO] [stdout] 409 | 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:670:45 [INFO] [stdout] | [INFO] [stdout] 670 | Message2::Hello {id: id_variable @ 3...7} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [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:673:33 [INFO] [stdout] | [INFO] [stdout] 673 | 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:861:12 [INFO] [stdout] | [INFO] [stdout] 861 | 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:869:17 [INFO] [stdout] | [INFO] [stdout] 869 | '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:870:17 [INFO] [stdout] | [INFO] [stdout] 870 | '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: struct is never constructed: `Pair` [INFO] [stdout] --> src/lib.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | struct Pair{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/lib.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 278 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cmp_display` [INFO] [stdout] --> src/lib.rs:284:8 [INFO] [stdout] | [INFO] [stdout] 284 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:736:9 [INFO] [stdout] | [INFO] [stdout] 736 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/main.rs:767:6 [INFO] [stdout] | [INFO] [stdout] 767 | 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:767:12 [INFO] [stdout] | [INFO] [stdout] 767 | 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:767:27 [INFO] [stdout] | [INFO] [stdout] 767 | 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:767:29 [INFO] [stdout] | [INFO] [stdout] 767 | 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:969:9 [INFO] [stdout] | [INFO] [stdout] 969 | 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:1348:9 [INFO] [stdout] | [INFO] [stdout] 1348 | 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:1400:9 [INFO] [stdout] | [INFO] [stdout] 1400 | 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:1526:9 [INFO] [stdout] | [INFO] [stdout] 1526 | 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:1550:9 [INFO] [stdout] | [INFO] [stdout] 1550 | 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:1606:13 [INFO] [stdout] | [INFO] [stdout] 1606 | 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:1643:9 [INFO] [stdout] | [INFO] [stdout] 1643 | 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:1654:9 [INFO] [stdout] | [INFO] [stdout] 1654 | 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:1703:9 [INFO] [stdout] | [INFO] [stdout] 1703 | 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:1708:13 [INFO] [stdout] | [INFO] [stdout] 1708 | 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:1844:17 [INFO] [stdout] | [INFO] [stdout] 1844 | 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:1855:13 [INFO] [stdout] | [INFO] [stdout] 1855 | count += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:210:30 [INFO] [stdout] | [INFO] [stdout] 210 | 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] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | 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] = 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:1606:9 [INFO] [stdout] | [INFO] [stdout] 1606 | 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:1745:9 [INFO] [stdout] | [INFO] [stdout] 1745 | let mut s4 = String::from("Hello world!"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/main.rs:458:5 [INFO] [stdout] | [INFO] [stdout] 458 | value: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:456:10 [INFO] [stdout] | [INFO] [stdout] 456 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `children` [INFO] [stdout] --> src/main.rs:460:5 [INFO] [stdout] | [INFO] [stdout] 460 | 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] --> src/main.rs:456:10 [INFO] [stdout] | [INFO] [stdout] 456 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `simulated_expensive_calculation` [INFO] [stdout] --> src/main.rs:463:4 [INFO] [stdout] | [INFO] [stdout] 463 | fn simulated_expensive_calculation(intensity: u32) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/main.rs:630:8 [INFO] [stdout] | [INFO] [stdout] 630 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/main.rs:636:5 [INFO] [stdout] | [INFO] [stdout] 636 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/main.rs:637:5 [INFO] [stdout] | [INFO] [stdout] 637 | Move { x: i32, y: i32}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/main.rs:638:5 [INFO] [stdout] | [INFO] [stdout] 638 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point3` [INFO] [stdout] --> src/main.rs:645:8 [INFO] [stdout] | [INFO] [stdout] 645 | struct Point3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `knapsackAux` should have a snake case name [INFO] [stdout] --> src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | 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] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:53:106 [INFO] [stdout] | [INFO] [stdout] 53 | 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:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | 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:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | 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:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | 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:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | 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:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | 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:162:8 [INFO] [stdout] | [INFO] [stdout] 162 | 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:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | 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:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | 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:182:12 [INFO] [stdout] | [INFO] [stdout] 182 | 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:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | 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:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | 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:249:12 [INFO] [stdout] | [INFO] [stdout] 249 | 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:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | 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:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | 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:274:8 [INFO] [stdout] | [INFO] [stdout] 274 | 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:281:9 [INFO] [stdout] | [INFO] [stdout] 281 | 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:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | 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:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | 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:284:9 [INFO] [stdout] | [INFO] [stdout] 284 | 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:296:12 [INFO] [stdout] | [INFO] [stdout] 296 | 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:300:33 [INFO] [stdout] | [INFO] [stdout] 300 | 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:300:50 [INFO] [stdout] | [INFO] [stdout] 300 | 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:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | 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:331:12 [INFO] [stdout] | [INFO] [stdout] 331 | 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:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | 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:334:32 [INFO] [stdout] | [INFO] [stdout] 334 | 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:334:49 [INFO] [stdout] | [INFO] [stdout] 334 | 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:360:12 [INFO] [stdout] | [INFO] [stdout] 360 | 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:363:12 [INFO] [stdout] | [INFO] [stdout] 363 | 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:388:12 [INFO] [stdout] | [INFO] [stdout] 388 | 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:391:12 [INFO] [stdout] | [INFO] [stdout] 391 | 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:418:93 [INFO] [stdout] | [INFO] [stdout] 418 | 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:771:5 [INFO] [stdout] | [INFO] [stdout] 771 | 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:778:5 [INFO] [stdout] | [INFO] [stdout] 778 | 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:1516:5 [INFO] [stdout] | [INFO] [stdout] 1516 | read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 79 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.08s [INFO] running `Command { std: "docker" "inspect" "193d8ebd69608218aa5cee2f1c2236dfeef390542c68c4b7d5a3863034c2504f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "193d8ebd69608218aa5cee2f1c2236dfeef390542c68c4b7d5a3863034c2504f", kill_on_drop: false }` [INFO] [stdout] 193d8ebd69608218aa5cee2f1c2236dfeef390542c68c4b7d5a3863034c2504f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-28/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7ce45492d0441ff1fb06d5c3bcacc025e9e3fff7ff5fa7406969aec54be17e46 [INFO] running `Command { std: "docker" "start" "-a" "7ce45492d0441ff1fb06d5c3bcacc025e9e3fff7ff5fa7406969aec54be17e46", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::env` [INFO] [stderr] --> src/lib.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::env; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:44:47 [INFO] [stderr] | [INFO] [stderr] 44 | fn request_review(self: Box) -> Box; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 44 - fn request_review(self: Box) -> Box; [INFO] [stderr] 44 + fn request_review(self: Box) -> Box; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:45:40 [INFO] [stderr] | [INFO] [stderr] 45 | fn approve(self: Box) -> Box; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 45 - fn approve(self: Box) -> Box; [INFO] [stderr] 45 + fn approve(self: Box) -> Box; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:79:47 [INFO] [stderr] | [INFO] [stderr] 79 | fn request_review(self: Box) -> Box { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 79 - fn request_review(self: Box) -> Box { [INFO] [stderr] 79 + fn request_review(self: Box) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:82:40 [INFO] [stderr] | [INFO] [stderr] 82 | fn approve(self: Box) -> Box { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 82 - fn approve(self: Box) -> Box { [INFO] [stderr] 82 + fn approve(self: Box) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:88:47 [INFO] [stderr] | [INFO] [stderr] 88 | fn request_review(self: Box) -> Box{ [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 88 - fn request_review(self: Box) -> Box{ [INFO] [stderr] 88 + fn request_review(self: Box) -> Box{ [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:91:40 [INFO] [stderr] | [INFO] [stderr] 91 | fn approve(self: Box) -> Box { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 91 - fn approve(self: Box) -> Box { [INFO] [stderr] 91 + fn approve(self: Box) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:98:47 [INFO] [stderr] | [INFO] [stderr] 98 | fn request_review(self: Box) -> Box { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 98 - fn request_review(self: Box) -> Box { [INFO] [stderr] 98 + fn request_review(self: Box) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:101:40 [INFO] [stderr] | [INFO] [stderr] 101 | fn approve(self: Box) -> Box { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 101 - fn approve(self: Box) -> Box { [INFO] [stderr] 101 + fn approve(self: Box) -> Box { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `post` [INFO] [stderr] --> src/lib.rs:46:27 [INFO] [stderr] | [INFO] [stderr] 46 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Pair` [INFO] [stderr] --> src/lib.rs:272:8 [INFO] [stderr] | [INFO] [stderr] 272 | struct Pair{ [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/lib.rs:278:8 [INFO] [stderr] | [INFO] [stderr] 278 | fn new(x: T, y: T) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cmp_display` [INFO] [stderr] --> src/lib.rs:284:8 [INFO] [stderr] | [INFO] [stderr] 284 | fn cmp_display(&self) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `shoes_in_my_size` [INFO] [stderr] --> src/lib.rs:342:4 [INFO] [stderr] | [INFO] [stderr] 342 | fn shoes_in_my_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/lib.rs:371:8 [INFO] [stderr] | [INFO] [stderr] 371 | fn new() -> Counter { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `rust-train` (lib) generated 15 warnings [INFO] [stderr] warning: unused import: `std::process` [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use std::process; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `ZeroOneKnapsack_DP_TD` should have an upper camel case name [INFO] [stderr] --> src/main.rs:41:8 [INFO] [stderr] | [INFO] [stderr] 41 | struct ZeroOneKnapsack_DP_TD { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDpTd` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `ConvertOneStringToAnother_BU` should have an upper camel case name [INFO] [stderr] --> src/main.rs:71:8 [INFO] [stderr] | [INFO] [stderr] 71 | struct ConvertOneStringToAnother_BU<'a>{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherBu` [INFO] [stderr] [INFO] [stderr] warning: type `ConvertOneStringToAnother_TD` should have an upper camel case name [INFO] [stderr] --> src/main.rs:100:8 [INFO] [stderr] | [INFO] [stderr] 100 | struct ConvertOneStringToAnother_TD<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherTd` [INFO] [stderr] [INFO] [stderr] warning: type `HouseThief_BottomUp` should have an upper camel case name [INFO] [stderr] --> src/main.rs:139:8 [INFO] [stderr] | [INFO] [stderr] 139 | struct HouseThief_BottomUp<'a>{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseThiefBottomUp` [INFO] [stderr] [INFO] [stderr] warning: type `HouseTheif_TopDown` should have an upper camel case name [INFO] [stderr] --> src/main.rs:154:8 [INFO] [stderr] | [INFO] [stderr] 154 | struct HouseTheif_TopDown<'a>{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseTheifTopDown` [INFO] [stderr] [INFO] [stderr] warning: type `ConvertOneStringToAnother_DC` should have an upper camel case name [INFO] [stderr] --> src/main.rs:383:8 [INFO] [stderr] | [INFO] [stderr] 383 | struct ConvertOneStringToAnother_DC<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherDc` [INFO] [stderr] [INFO] [stderr] warning: type `ZeroOneKnapsack_DC` should have an upper camel case name [INFO] [stderr] --> src/main.rs:409:8 [INFO] [stderr] | [INFO] [stderr] 409 | struct ZeroOneKnapsack_DC<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDc` [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/main.rs:670:45 [INFO] [stderr] | [INFO] [stderr] 670 | Message2::Hello {id: id_variable @ 3...7} => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/main.rs:673:33 [INFO] [stderr] | [INFO] [stderr] 673 | Message2::Hello { id: 10...12} => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/main.rs:861:12 [INFO] [stderr] | [INFO] [stderr] 861 | 1 ... 5 => println!("one through five"), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/main.rs:869:17 [INFO] [stderr] | [INFO] [stderr] 869 | 'a' ... 'j' => println!("early ASCII letter"), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/main.rs:870:17 [INFO] [stderr] | [INFO] [stderr] 870 | 'k' ... 'z' => println!("late ASCII letter"), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/main.rs:736:9 [INFO] [stderr] | [INFO] [stderr] 736 | let y = 10; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `feet` [INFO] [stderr] --> src/main.rs:767:6 [INFO] [stderr] | [INFO] [stderr] 767 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `inches` [INFO] [stderr] --> src/main.rs:767:12 [INFO] [stderr] | [INFO] [stderr] 767 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/main.rs:767:27 [INFO] [stderr] | [INFO] [stderr] 767 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stderr] | ^ help: try ignoring the field: `x: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/main.rs:767:29 [INFO] [stderr] | [INFO] [stderr] 767 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stderr] | ^ help: try ignoring the field: `y: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/main.rs:969:9 [INFO] [stderr] | [INFO] [stderr] 969 | for i in 0..12{ [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/main.rs:1348:9 [INFO] [stderr] | [INFO] [stderr] 1348 | let args: Vec = env::args().collect(); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/main.rs:1400:9 [INFO] [stderr] | [INFO] [stderr] 1400 | let s: &'static str = "I have a static lifetime."; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/main.rs:1526:9 [INFO] [stderr] | [INFO] [stderr] 1526 | let f = match f { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/main.rs:1550:9 [INFO] [stderr] | [INFO] [stderr] 1550 | let v = vec![1,2,3]; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/main.rs:1606:13 [INFO] [stderr] | [INFO] [stderr] 1606 | let mut s = String::new(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/main.rs:1643:9 [INFO] [stderr] | [INFO] [stderr] 1643 | let v: Vec = Vec::new(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `third` [INFO] [stderr] --> src/main.rs:1654:9 [INFO] [stderr] | [INFO] [stderr] 1654 | let third: Option<&i32> = v.get(2); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/main.rs:1703:9 [INFO] [stderr] | [INFO] [stderr] 1703 | let s = 5; // Declara variable [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `k` [INFO] [stderr] --> src/main.rs:1708:13 [INFO] [stderr] | [INFO] [stderr] 1708 | let k = 7; // Scope test. This variable is valid in this parenthes. [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stderr] [INFO] [stderr] warning: variable `count` is assigned to, but never used [INFO] [stderr] --> src/main.rs:1844:17 [INFO] [stderr] | [INFO] [stderr] 1844 | let mut count =0; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_count` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `count` is never read [INFO] [stderr] --> src/main.rs:1855:13 [INFO] [stderr] | [INFO] [stderr] 1855 | count += 1; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/main.rs:210:30 [INFO] [stderr] | [INFO] [stderr] 210 | fn fbnc_bottom_up(&self, n:i32) -> i32{ [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:49:13 [INFO] [stderr] | [INFO] [stderr] 49 | let mut dp: &mut Vec> = &mut vec![vec![0; capacity as usize + 1]; profits.len()]; [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:1606:9 [INFO] [stderr] | [INFO] [stderr] 1606 | let mut s = String::new(); [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:1745:9 [INFO] [stderr] | [INFO] [stderr] 1745 | let mut s4 = String::from("Hello world!"); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: field is never read: `value` [INFO] [stderr] --> src/main.rs:458:5 [INFO] [stderr] | [INFO] [stderr] 458 | value: i32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:456:10 [INFO] [stderr] | [INFO] [stderr] 456 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `children` [INFO] [stderr] --> src/main.rs:460:5 [INFO] [stderr] | [INFO] [stderr] 460 | children: RefCell>>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:456:10 [INFO] [stderr] | [INFO] [stderr] 456 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `simulated_expensive_calculation` [INFO] [stderr] --> src/main.rs:463:4 [INFO] [stderr] | [INFO] [stderr] 463 | fn simulated_expensive_calculation(intensity: u32) -> u32{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Point` [INFO] [stderr] --> src/main.rs:630:8 [INFO] [stderr] | [INFO] [stderr] 630 | struct Point { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Quit` [INFO] [stderr] --> src/main.rs:636:5 [INFO] [stderr] | [INFO] [stderr] 636 | Quit, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Move` [INFO] [stderr] --> src/main.rs:637:5 [INFO] [stderr] | [INFO] [stderr] 637 | Move { x: i32, y: i32}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Write` [INFO] [stderr] --> src/main.rs:638:5 [INFO] [stderr] | [INFO] [stderr] 638 | Write(String), [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Point3` [INFO] [stderr] --> src/main.rs:645:8 [INFO] [stderr] | [INFO] [stderr] 645 | struct Point3 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `knapsackAux` should have a snake case name [INFO] [stderr] --> src/main.rs:53:8 [INFO] [stderr] | [INFO] [stderr] 53 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `knapsack_aux` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `currentIndex` should have a snake case name [INFO] [stderr] --> src/main.rs:53:106 [INFO] [stderr] | [INFO] [stderr] 53 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stderr] [INFO] [stderr] warning: method `findMinOperations` should have a snake case name [INFO] [stderr] --> src/main.rs:76:12 [INFO] [stderr] | [INFO] [stderr] 76 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stderr] [INFO] [stderr] warning: method `findMinOperations` should have a snake case name [INFO] [stderr] --> src/main.rs:105:12 [INFO] [stderr] | [INFO] [stderr] 105 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stderr] [INFO] [stderr] warning: method `findMinOperationsRecursive` should have a snake case name [INFO] [stderr] --> src/main.rs:111:8 [INFO] [stderr] | [INFO] [stderr] 111 | fn findMinOperationsRecursive(&self, dp: &mut Vec>, s1: &'a str, s2: &'a str, i: usize, j: usize) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_recursive` [INFO] [stderr] [INFO] [stderr] warning: method `findMaxSteal` should have a snake case name [INFO] [stderr] --> src/main.rs:143:12 [INFO] [stderr] | [INFO] [stderr] 143 | pub fn findMaxSteal(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `find_max_steal` [INFO] [stderr] [INFO] [stderr] warning: method `maxMoney` should have a snake case name [INFO] [stderr] --> src/main.rs:158:12 [INFO] [stderr] | [INFO] [stderr] 158 | pub fn maxMoney(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `max_money` [INFO] [stderr] [INFO] [stderr] warning: method `maxMoney_TopDown` should have a snake case name [INFO] [stderr] --> src/main.rs:162:8 [INFO] [stderr] | [INFO] [stderr] 162 | fn maxMoney_TopDown(&self, dp: &mut Vec, worth_to_steal: &'a Vec, index:usize) -> i32{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_money_top_down` [INFO] [stderr] [INFO] [stderr] warning: variable `stealCurrent` should have a snake case name [INFO] [stderr] --> src/main.rs:167:17 [INFO] [stderr] | [INFO] [stderr] 167 | let stealCurrent = worth_to_steal[index] + self.maxMoney_TopDown(dp, worth_to_steal, index+2); [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `steal_current` [INFO] [stderr] [INFO] [stderr] warning: variable `skipCurrent` should have a snake case name [INFO] [stderr] --> src/main.rs:168:17 [INFO] [stderr] | [INFO] [stderr] 168 | let skipCurrent = self.maxMoney_TopDown(dp, worth_to_steal, index+1); [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skip_current` [INFO] [stderr] [INFO] [stderr] warning: method `waysToGetN` should have a snake case name [INFO] [stderr] --> src/main.rs:182:12 [INFO] [stderr] | [INFO] [stderr] 182 | pub fn waysToGetN(&self, n: i32) -> i32{ [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n` [INFO] [stderr] [INFO] [stderr] warning: method `waysToGetN_TopDown` should have a snake case name [INFO] [stderr] --> src/main.rs:187:12 [INFO] [stderr] | [INFO] [stderr] 187 | pub fn waysToGetN_TopDown(&self, dp: &mut Vec, n: i32) -> i32{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n_top_down` [INFO] [stderr] [INFO] [stderr] warning: method `fibonacciAux` should have a snake case name [INFO] [stderr] --> src/main.rs:225:12 [INFO] [stderr] | [INFO] [stderr] 225 | pub fn fibonacciAux(&self, memo: &mut Vec, n:i32)->i32{ [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `fibonacci_aux` [INFO] [stderr] [INFO] [stderr] warning: method `numberOfPaths` should have a snake case name [INFO] [stderr] --> src/main.rs:249:12 [INFO] [stderr] | [INFO] [stderr] 249 | pub fn numberOfPaths(&self, array: [[isize;4];4], row: isize, col: isize, cost: isize) -> isize { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stderr] [INFO] [stderr] warning: variable `noOfPathsFromPreviousRow` should have a snake case name [INFO] [stderr] --> src/main.rs:262:13 [INFO] [stderr] | [INFO] [stderr] 262 | let noOfPathsFromPreviousRow = self.numberOfPaths(array, row-1, col, cost-array[row as usize][col as usize]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_row` [INFO] [stderr] [INFO] [stderr] warning: variable `noOfPathsFromPreviousCol` should have a snake case name [INFO] [stderr] --> src/main.rs:263:13 [INFO] [stderr] | [INFO] [stderr] 263 | let noOfPathsFromPreviousCol = self.numberOfPaths(array, row, col-1, cost-array[row as usize][col as usize]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_col` [INFO] [stderr] [INFO] [stderr] warning: method `findMinCost` should have a snake case name [INFO] [stderr] --> src/main.rs:274:8 [INFO] [stderr] | [INFO] [stderr] 274 | fn findMinCost(&self,cost:[[isize;5];5] ,row: isize, col: isize) -> isize { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stderr] [INFO] [stderr] warning: variable `minCost1` should have a snake case name [INFO] [stderr] --> src/main.rs:281:9 [INFO] [stderr] | [INFO] [stderr] 281 | let minCost1 = self.findMinCost(cost, row - 1, col); [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stderr] [INFO] [stderr] warning: variable `minCost2` should have a snake case name [INFO] [stderr] --> src/main.rs:282:9 [INFO] [stderr] | [INFO] [stderr] 282 | let minCost2 = self.findMinCost(cost, row, col - 1); [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stderr] [INFO] [stderr] warning: variable `minCost` should have a snake case name [INFO] [stderr] --> src/main.rs:283:9 [INFO] [stderr] | [INFO] [stderr] 283 | let minCost =std::cmp::min(minCost1, minCost2); [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stderr] [INFO] [stderr] warning: variable `currentCellsCost` should have a snake case name [INFO] [stderr] --> src/main.rs:284:9 [INFO] [stderr] | [INFO] [stderr] 284 | let currentCellsCost = cost[row as usize][col as usize]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cells_cost` [INFO] [stderr] [INFO] [stderr] warning: method `findLPSLength` should have a snake case name [INFO] [stderr] --> src/main.rs:296:12 [INFO] [stderr] | [INFO] [stderr] 296 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stderr] [INFO] [stderr] warning: variable `startIdx` should have a snake case name [INFO] [stderr] --> src/main.rs:300:33 [INFO] [stderr] | [INFO] [stderr] 300 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stderr] [INFO] [stderr] warning: variable `endIdx` should have a snake case name [INFO] [stderr] --> src/main.rs:300:50 [INFO] [stderr] | [INFO] [stderr] 300 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stderr] [INFO] [stderr] warning: variable `remainingLength` should have a snake case name [INFO] [stderr] --> src/main.rs:309:17 [INFO] [stderr] | [INFO] [stderr] 309 | let remainingLength = endIdx - startIdx -1; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stderr] [INFO] [stderr] warning: method `findLPSLength` should have a snake case name [INFO] [stderr] --> src/main.rs:331:12 [INFO] [stderr] | [INFO] [stderr] 331 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stderr] [INFO] [stderr] warning: method `LPSAux` should have a snake case name [INFO] [stderr] --> src/main.rs:334:8 [INFO] [stderr] | [INFO] [stderr] 334 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `lpsaux` [INFO] [stderr] [INFO] [stderr] warning: variable `startIdx` should have a snake case name [INFO] [stderr] --> src/main.rs:334:32 [INFO] [stderr] | [INFO] [stderr] 334 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stderr] [INFO] [stderr] warning: variable `endIdx` should have a snake case name [INFO] [stderr] --> src/main.rs:334:49 [INFO] [stderr] | [INFO] [stderr] 334 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stderr] [INFO] [stderr] warning: method `findLCSLength` should have a snake case name [INFO] [stderr] --> src/main.rs:360:12 [INFO] [stderr] | [INFO] [stderr] 360 | pub fn findLCSLength(&self, s1: &str, s2: &str) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stderr] [INFO] [stderr] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stderr] --> src/main.rs:363:12 [INFO] [stderr] | [INFO] [stderr] 363 | fn findLCSLengthAux(&self, s1: &str, s2: &str, i: usize, j: usize) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stderr] [INFO] [stderr] warning: method `findMinOperations` should have a snake case name [INFO] [stderr] --> src/main.rs:388:12 [INFO] [stderr] | [INFO] [stderr] 388 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str)-> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stderr] [INFO] [stderr] warning: method `findMinOperationsAux` should have a snake case name [INFO] [stderr] --> src/main.rs:391:12 [INFO] [stderr] | [INFO] [stderr] 391 | pub fn findMinOperationsAux(&self, s1: &'a str, s2: &'a str, i: usize, j: usize)-> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_aux` [INFO] [stderr] [INFO] [stderr] warning: variable `currentIndex` should have a snake case name [INFO] [stderr] --> src/main.rs:418:93 [INFO] [stderr] | [INFO] [stderr] 418 | pub fn knapsack_aux(&self, profits: &'a Vec, weights: &'a Vec, capacity: i32, currentIndex: i32)-> i32{ [INFO] [stderr] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stderr] [INFO] [stderr] warning: variable `costTu` should have a snake case name [INFO] [stderr] --> src/main.rs:771:5 [INFO] [stderr] | [INFO] [stderr] 771 | let costTu: ConvertOneStringToAnother_TD = ConvertOneStringToAnother_TD{ [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `cost_tu` [INFO] [stderr] [INFO] [stderr] warning: variable `costBu` should have a snake case name [INFO] [stderr] --> src/main.rs:778:5 [INFO] [stderr] | [INFO] [stderr] 778 | let costBu: ConvertOneStringToAnother_BU = ConvertOneStringToAnother_BU { [INFO] [stderr] | ^^^^^^ help: convert the identifier to snake case: `cost_bu` [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:1516:5 [INFO] [stderr] | [INFO] [stderr] 1516 | read_username_from_file(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `rust-train` (lib test) generated 13 warnings (13 duplicates) [INFO] [stderr] warning: `rust-train` (bin "rust-train" test) generated 79 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rust_train-8060810d967540bb) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test iterator_with_map ... ok [INFO] [stdout] test iterator_sum ... ok [INFO] [stdout] test test_map_iter ... ok [INFO] [stdout] test filters_by_size ... ok [INFO] [stdout] test using_other_iterator_trait_methods ... ok [INFO] [stdout] test iterator_demonstration ... ok [INFO] [stdout] test calling_next_directly ... ok [INFO] [stderr] error: test failed, to rerun pass '--lib' [INFO] [stdout] test tests::it_sends_an_over_75_percent_warning_message ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- tests::it_sends_an_over_75_percent_warning_message stdout ---- [INFO] [stdout] thread 'tests::it_sends_an_over_75_percent_warning_message' panicked at 'already borrowed: BorrowMutError', src/lib.rs:440:53 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5652d300d7bc - std::backtrace_rs::backtrace::libunwind::trace::h02555d7ca8aa068a [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x5652d300d7bc - std::backtrace_rs::backtrace::trace_unsynchronized::h8555a46024147da8 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5652d300d7bc - std::sys_common::backtrace::_print_fmt::h4c7f50b4f105da1e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x5652d300d7bc - ::fmt::ha305a40dbc030444 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x5652d3032b1c - core::fmt::write::hadd15acf4d6ce273 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/fmt/mod.rs:1190:17 [INFO] [stdout] 5: 0x5652d30090b8 - std::io::Write::write_fmt::h271050faa79d27d2 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/io/mod.rs:1657:15 [INFO] [stdout] 6: 0x5652d300fa87 - std::sys_common::backtrace::_print::h0dd5c0810675bd8c [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x5652d300fa87 - std::sys_common::backtrace::print::h20a2155fa0a22ca6 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x5652d300fa87 - std::panicking::default_hook::{{closure}}::habb3b6f3ccdfe00a [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x5652d300f7bb - std::panicking::default_hook::h1c5cf4d5063a38e4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x5652d30101da - std::panicking::rust_panic_with_hook::hb5de7a3072d2cf59 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x5652d300fec7 - std::panicking::begin_panic_handler::{{closure}}::h5106de2f55f1a411 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x5652d300dc84 - std::sys_common::backtrace::__rust_end_short_backtrace::h5ad5c2a8a003ca72 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x5652d300fbd9 - rust_begin_unwind [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x5652d2fa7133 - core::panicking::panic_fmt::hfb4b8460cd493e74 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x5652d2fa7223 - core::result::unwrap_failed::hf9b34e307f812de0 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/result.rs:1749:5 [INFO] [stdout] 16: 0x5652d2fac44a - core::result::Result::expect::h64465639993b5346 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/result.rs:1022:23 [INFO] [stdout] 17: 0x5652d2fb5c9d - core::cell::RefCell::borrow_mut::h1970ea3b9db54ec3 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/cell.rs:947:9 [INFO] [stdout] 18: 0x5652d2fb74a5 - ::send::h39e9be5d0671b738 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:440:34 [INFO] [stdout] 19: 0x5652d2fafd2c - rust_train::LimitTracker::set_value::hb6bf59b00e75ac7c [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:207:13 [INFO] [stdout] 20: 0x5652d2fb7606 - rust_train::tests::it_sends_an_over_75_percent_warning_message::h77316f2a9bb5883a [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:459:9 [INFO] [stdout] 21: 0x5652d2fb75ba - rust_train::tests::it_sends_an_over_75_percent_warning_message::{{closure}}::h639f559326020cf5 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:455:5 [INFO] [stdout] 22: 0x5652d2fb1dce - core::ops::function::FnOnce::call_once::h1301166c74c72e6d [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 23: 0x5652d2fe37e3 - core::ops::function::FnOnce::call_once::h43953c8a8f54893f [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 24: 0x5652d2fe37e3 - test::__rust_begin_short_backtrace::h163f55298a15df9b [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:575:5 [INFO] [stdout] 25: 0x5652d2fe2511 - as core::ops::function::FnOnce>::call_once::hc911782b3cbc7ed5 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 26: 0x5652d2fe2511 - as core::ops::function::FnOnce<()>>::call_once::hc5bb369afbf9cd4e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 27: 0x5652d2fe2511 - std::panicking::try::do_call::he60df4e3e832faff [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:492:40 [INFO] [stdout] 28: 0x5652d2fe2511 - std::panicking::try::h2633cee89a0767f3 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:456:19 [INFO] [stdout] 29: 0x5652d2fe2511 - std::panic::catch_unwind::h6e10f7b94ce38b1e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panic.rs:137:14 [INFO] [stdout] 30: 0x5652d2fe2511 - test::run_test_in_process::h085ef39049c3b50b [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:598:18 [INFO] [stdout] 31: 0x5652d2fe2511 - test::run_test::run_test_inner::{{closure}}::h4e58ce9f68eb43e4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:492:39 [INFO] [stdout] 32: 0x5652d2febdf1 - test::run_test::run_test_inner::{{closure}}::h6d18db28c5e396ee [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:519:37 [INFO] [stdout] 33: 0x5652d2febdf1 - std::sys_common::backtrace::__rust_begin_short_backtrace::h32292cb2cd8be620 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 34: 0x5652d2fb854f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h71ee66b20f7b0482 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 35: 0x5652d2fb854f - as core::ops::function::FnOnce<()>>::call_once::hb6046e1d1a75a4a4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 36: 0x5652d2fb854f - std::panicking::try::do_call::h5422165a88309c77 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:492:40 [INFO] [stdout] 37: 0x5652d2fb854f - std::panicking::try::h840a12b54e2c9f5d [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:456:19 [INFO] [stdout] 38: 0x5652d2fb854f - std::panic::catch_unwind::h85910e437c8da180 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panic.rs:137:14 [INFO] [stdout] 39: 0x5652d2fb854f - std::thread::Builder::spawn_unchecked_::{{closure}}::ha3af3a297bfd51d6 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 40: 0x5652d2fb854f - core::ops::function::FnOnce::call_once{{vtable.shim}}::hff8788f58e0e06a9 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 41: 0x5652d3015e73 - as core::ops::function::FnOnce>::call_once::h82a18723295373b7 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 42: 0x5652d3015e73 - as core::ops::function::FnOnce>::call_once::h4b9b8634f7a2a5a4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 43: 0x5652d3015e73 - std::sys::unix::thread::Thread::new::thread_start::h3dc341aa024c6852 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 44: 0x7ff8017d2609 - start_thread [INFO] [stdout] 45: 0x7ff8015a4293 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] tests::it_sends_an_over_75_percent_warning_message [INFO] [stdout] [INFO] [stdout] test result: FAILED. 7 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7ce45492d0441ff1fb06d5c3bcacc025e9e3fff7ff5fa7406969aec54be17e46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ce45492d0441ff1fb06d5c3bcacc025e9e3fff7ff5fa7406969aec54be17e46", kill_on_drop: false }` [INFO] [stdout] 7ce45492d0441ff1fb06d5c3bcacc025e9e3fff7ff5fa7406969aec54be17e46