[INFO] cloning repository https://github.com/shunak/rust-train [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shunak/rust-train" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunak%2Frust-train", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunak%2Frust-train'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 891ce464fc37cecb0fbff0899b33b14c658f8bf5 [INFO] testing shunak/rust-train against try#028592fec99e54cc92def5a2a849c673b066dd93 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunak%2Frust-train" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [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-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/shunak/rust-train on toolchain 028592fec99e54cc92def5a2a849c673b066dd93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/shunak/rust-train already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing shunak/rust-train against try#028592fec99e54cc92def5a2a849c673b066dd93 for pr-146098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunak%2Frust-train" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [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-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/shunak/rust-train on toolchain 028592fec99e54cc92def5a2a849c673b066dd93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/shunak/rust-train already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6a736a254a86b51126440ca16689a3166f25bfa82f57dfd5bab52b1e154a3c82 [INFO] running `Command { std: "docker" "start" "-a" "6a736a254a86b51126440ca16689a3166f25bfa82f57dfd5bab52b1e154a3c82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a736a254a86b51126440ca16689a3166f25bfa82f57dfd5bab52b1e154a3c82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a736a254a86b51126440ca16689a3166f25bfa82f57dfd5bab52b1e154a3c82", kill_on_drop: false }` [INFO] [stdout] 6a736a254a86b51126440ca16689a3166f25bfa82f57dfd5bab52b1e154a3c82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f6d82a8feaa1cd6fa8bab80156dfd621045f5a67d56461e602956c90f437db0 [INFO] running `Command { std: "docker" "start" "-a" "2f6d82a8feaa1cd6fa8bab80156dfd621045f5a67d56461e602956c90f437db0", kill_on_drop: false }` [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc_macro` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use proc_macro; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs: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] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:107:47 [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:117:47 [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Millimeters` is never constructed [INFO] [stdout] --> src/lib.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Millimeters(u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Meters` is never constructed [INFO] [stdout] --> src/lib.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Meters(u32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `State` is never used [INFO] [stdout] --> src/lib.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | trait State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Draft` is never constructed [INFO] [stdout] --> src/lib.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Draft {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PendingReview` is never constructed [INFO] [stdout] --> src/lib.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct PendingReview{} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Published` is never constructed [INFO] [stdout] --> src/lib.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | struct Published {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/lib.rs:291:8 [INFO] [stdout] | [INFO] [stdout] 291 | struct Pair{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 296 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 297 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/lib.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 302 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 303 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/lib.rs:356:8 [INFO] [stdout] | [INFO] [stdout] 356 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shoes_in_my_size` is never used [INFO] [stdout] --> src/lib.rs:361:4 [INFO] [stdout] | [INFO] [stdout] 361 | fn shoes_in_my_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/lib.rs:385:8 [INFO] [stdout] | [INFO] [stdout] 385 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:390:8 [INFO] [stdout] | [INFO] [stdout] 389 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 390 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:212:27 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn new(messenger: &T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 212 | pub fn new(messenger: &T, max: usize) -> LimitTracker<'_, T> { [INFO] [stdout] | +++ [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NumberOfPathsToReachLastCell_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct NumberOfPathsToReachLastCell_TD<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NumberOfPathsToReachLastCellTd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MinCostToReachLastCell_in2DArray_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | struct MinCostToReachLastCell_in2DArray_TD<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MinCostToReachLastCellIn2darrayTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestPalindromicSubstringDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | struct LongestPalindromicSubstringDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubstringDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestPalindromicSubsequenceDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | struct LongestPalindromicSubsequenceDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubsequenceDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestCommonSubsequenceDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 173 | struct LongestCommonSubsequenceDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestCommonSubsequenceDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ZeroOneKnapsack_DP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_BU` should have an upper camel case name [INFO] [stdout] --> src/main.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | struct ConvertOneStringToAnother_BU<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherBu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 270 | struct ConvertOneStringToAnother_TD<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HouseThief_BottomUp` should have an upper camel case name [INFO] [stdout] --> src/main.rs:309:8 [INFO] [stdout] | [INFO] [stdout] 309 | struct HouseThief_BottomUp<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseThiefBottomUp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HouseTheif_TopDown` should have an upper camel case name [INFO] [stdout] --> src/main.rs:324:8 [INFO] [stdout] | [INFO] [stdout] 324 | struct HouseTheif_TopDown<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseTheifTopDown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_DC` should have an upper camel case name [INFO] [stdout] --> src/main.rs:553:8 [INFO] [stdout] | [INFO] [stdout] 553 | struct ConvertOneStringToAnother_DC<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherDc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ZeroOneKnapsack_DC` should have an upper camel case name [INFO] [stdout] --> src/main.rs:579:8 [INFO] [stdout] | [INFO] [stdout] 579 | struct ZeroOneKnapsack_DC<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1101:45 [INFO] [stdout] | [INFO] [stdout] 1101 | Message2::Hello {id: id_variable @ 3...7} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1104:33 [INFO] [stdout] | [INFO] [stdout] 1104 | Message2::Hello { id: 10...12} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1292:12 [INFO] [stdout] | [INFO] [stdout] 1292 | 1 ... 5 => println!("one through five"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1300:17 [INFO] [stdout] | [INFO] [stdout] 1300 | 'a' ... 'j' => println!("early ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1301:17 [INFO] [stdout] | [INFO] [stdout] 1301 | 'k' ... 'z' => println!("late ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | let mut v: i32; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | let mut dp: &mut Vec> = &mut vec![vec![0; capacity as usize + 1]; profits.len()]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:380:30 [INFO] [stdout] | [INFO] [stdout] 380 | fn fbnc_bottom_up(&self, n:i32) -> i32{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/main.rs:1090:9 [INFO] [stdout] | [INFO] [stdout] 1090 | let r1 = &num as *const i32; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/main.rs:1091:9 [INFO] [stdout] | [INFO] [stdout] 1091 | let r2 = &mut num as *mut i32; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:1167:9 [INFO] [stdout] | [INFO] [stdout] 1167 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/main.rs:1198:6 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> src/main.rs:1198:12 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:1198:27 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:1198:29 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:1400:9 [INFO] [stdout] | [INFO] [stdout] 1400 | for i in 0..12{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:1779:9 [INFO] [stdout] | [INFO] [stdout] 1779 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:1831:9 [INFO] [stdout] | [INFO] [stdout] 1831 | let s: &'static str = "I have a static lifetime."; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:1957:9 [INFO] [stdout] | [INFO] [stdout] 1957 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1981:9 [INFO] [stdout] | [INFO] [stdout] 1981 | let v = vec![1,2,3]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:2037:13 [INFO] [stdout] | [INFO] [stdout] 2037 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:2074:9 [INFO] [stdout] | [INFO] [stdout] 2074 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> src/main.rs:2085:9 [INFO] [stdout] | [INFO] [stdout] 2085 | let third: Option<&i32> = v.get(2); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:2134:9 [INFO] [stdout] | [INFO] [stdout] 2134 | let s = 5; // Declara variable [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:2139:13 [INFO] [stdout] | [INFO] [stdout] 2139 | let k = 7; // Scope test. This variable is valid in this parenthes. [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/main.rs:2275:17 [INFO] [stdout] | [INFO] [stdout] 2275 | let mut count =0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/main.rs:2286:13 [INFO] [stdout] | [INFO] [stdout] 2286 | count += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:2037:9 [INFO] [stdout] | [INFO] [stdout] 2037 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:2176:9 [INFO] [stdout] | [INFO] [stdout] 2176 | let mut s4 = String::from("Hello world!"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ZeroOneKnapsack_DP_TD` is never constructed [INFO] [stdout] --> src/main.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `knapsack` and `knapsackAux` are never used [INFO] [stdout] --> src/main.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl ZeroOneKnapsack_DP_TD { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 217 | pub fn knapsack(&self, profits: &Vec, weights: &Vec, capacity:i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/main.rs:628:5 [INFO] [stdout] | [INFO] [stdout] 627 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 628 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 629 | parent: RefCell>, [INFO] [stdout] 630 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulated_expensive_calculation` is never used [INFO] [stdout] --> src/main.rs:633:4 [INFO] [stdout] | [INFO] [stdout] 633 | fn simulated_expensive_calculation(intensity: u32) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:757:10 [INFO] [stdout] | [INFO] [stdout] 757 | Cons(i32, RefCell>), [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 757 - Cons(i32, RefCell>), [INFO] [stdout] 757 + Cons((), RefCell>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:799:8 [INFO] [stdout] | [INFO] [stdout] 799 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> src/main.rs:805:5 [INFO] [stdout] | [INFO] [stdout] 804 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 805 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 806 | Move { x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 807 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point3` is never constructed [INFO] [stdout] --> src/main.rs:814:8 [INFO] [stdout] | [INFO] [stdout] 814 | struct Point3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `baby_name` is never used [INFO] [stdout] --> src/main.rs:886:12 [INFO] [stdout] | [INFO] [stdout] 885 | impl Dog { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 886 | fn baby_name() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/main.rs:1907:9 [INFO] [stdout] | [INFO] [stdout] 1906 | struct Point2 { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 1907 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 1908 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:2102:13 [INFO] [stdout] | [INFO] [stdout] 2102 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 2102 - Int(i32), [INFO] [stdout] 2102 + Int(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:2103:15 [INFO] [stdout] | [INFO] [stdout] 2103 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 2103 - Float(f64), [INFO] [stdout] 2103 + Float(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:2104:14 [INFO] [stdout] | [INFO] [stdout] 2104 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 2104 - Text(String), [INFO] [stdout] 2104 + Text(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/main.rs:2184:9 [INFO] [stdout] | [INFO] [stdout] 2183 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 2184 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 2185 | email: String, [INFO] [stdout] 2186 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 2187 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/main.rs:2244:9 [INFO] [stdout] | [INFO] [stdout] 2243 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 2244 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny` and `Nickel` are never constructed [INFO] [stdout] --> src/main.rs:2249:9 [INFO] [stdout] | [INFO] [stdout] 2248 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 2249 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 2250 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPaths` should have a snake case name [INFO] [stdout] --> src/main.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn numberOfPaths(&self, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPathsAux` should have a snake case name [INFO] [stdout] --> src/main.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn numberOfPathsAux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numOfPathsFromPreviousRow` should have a snake case name [INFO] [stdout] --> src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let numOfPathsFromPreviousRow = self.numberOfPaths(array, row -1, col, cost - array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numOfPathsFromPreviousCol` should have a snake case name [INFO] [stdout] --> src/main.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | let numOfPathsFromPreviousCol = self.numberOfPaths(array, row, col -1, cost - array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost` should have a snake case name [INFO] [stdout] --> src/main.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | fn findMinCost(&self, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost_aux` should have a snake case name [INFO] [stdout] --> src/main.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn findMinCost_aux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost1` should have a snake case name [INFO] [stdout] --> src/main.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let minCost1 = self.findMinCost_aux(dp, array, row - 1, col); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost2` should have a snake case name [INFO] [stdout] --> src/main.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let minCost2 = self.findMinCost_aux(dp, array, row, col - 1); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost` should have a snake case name [INFO] [stdout] --> src/main.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let minCost = std::cmp::min(minCost1, minCost2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentCellCost` should have a snake case name [INFO] [stdout] --> src/main.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let currentCellCost = array[row as usize][col as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cell_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn findLPSLength(&self, st: &str)-> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:115:57 [INFO] [stdout] | [INFO] [stdout] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:115:72 [INFO] [stdout] | [INFO] [stdout] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `remainingLength` should have a snake case name [INFO] [stdout] --> src/main.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | let remainingLength = endIdx - startIdx -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn findLPSLength(&self, sentence: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lps_Aux` should have a snake case name [INFO] [stdout] --> src/main.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `lps_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:153:63 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:153:78 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn findLCSLength(&self, s1: &String, s2: &String) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stdout] --> src/main.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | fn findLCSLengthAux(&self, dp: &mut Vec>, s1: &String, s2: &String, i: usize, j: usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `knapsackAux` should have a snake case name [INFO] [stdout] --> src/main.rs:223:8 [INFO] [stdout] | [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `knapsack_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:223:106 [INFO] [stdout] | [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:275:12 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperationsRecursive` should have a snake case name [INFO] [stdout] --> src/main.rs:281:8 [INFO] [stdout] | [INFO] [stdout] 281 | fn findMinOperationsRecursive(&self, dp: &mut Vec>, s1: &'a str, s2: &'a str, i: usize, j: usize) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_recursive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMaxSteal` should have a snake case name [INFO] [stdout] --> src/main.rs:313:12 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn findMaxSteal(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `find_max_steal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maxMoney` should have a snake case name [INFO] [stdout] --> src/main.rs:328:12 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn maxMoney(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_money` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maxMoney_TopDown` should have a snake case name [INFO] [stdout] --> src/main.rs:332:8 [INFO] [stdout] | [INFO] [stdout] 332 | fn maxMoney_TopDown(&self, dp: &mut Vec, worth_to_steal: &'a Vec, index:usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_money_top_down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stealCurrent` should have a snake case name [INFO] [stdout] --> src/main.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | let stealCurrent = worth_to_steal[index] + self.maxMoney_TopDown(dp, worth_to_steal, index+2); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `steal_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipCurrent` should have a snake case name [INFO] [stdout] --> src/main.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | let skipCurrent = self.maxMoney_TopDown(dp, worth_to_steal, index+1); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skip_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `waysToGetN` should have a snake case name [INFO] [stdout] --> src/main.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn waysToGetN(&self, n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `waysToGetN_TopDown` should have a snake case name [INFO] [stdout] --> src/main.rs:357:12 [INFO] [stdout] | [INFO] [stdout] 357 | pub fn waysToGetN_TopDown(&self, dp: &mut Vec, n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n_top_down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fibonacciAux` should have a snake case name [INFO] [stdout] --> src/main.rs:395:12 [INFO] [stdout] | [INFO] [stdout] 395 | pub fn fibonacciAux(&self, memo: &mut Vec, n:i32)->i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `fibonacci_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPaths` should have a snake case name [INFO] [stdout] --> src/main.rs:419:12 [INFO] [stdout] | [INFO] [stdout] 419 | pub fn numberOfPaths(&self, array: [[isize;4];4], row: isize, col: isize, cost: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noOfPathsFromPreviousRow` should have a snake case name [INFO] [stdout] --> src/main.rs:432:13 [INFO] [stdout] | [INFO] [stdout] 432 | let noOfPathsFromPreviousRow = self.numberOfPaths(array, row-1, col, cost-array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noOfPathsFromPreviousCol` should have a snake case name [INFO] [stdout] --> src/main.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | let noOfPathsFromPreviousCol = self.numberOfPaths(array, row, col-1, cost-array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost` should have a snake case name [INFO] [stdout] --> src/main.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | fn findMinCost(&self,cost:[[isize;5];5] ,row: isize, col: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost1` should have a snake case name [INFO] [stdout] --> src/main.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | let minCost1 = self.findMinCost(cost, row - 1, col); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost2` should have a snake case name [INFO] [stdout] --> src/main.rs:452:9 [INFO] [stdout] | [INFO] [stdout] 452 | let minCost2 = self.findMinCost(cost, row, col - 1); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost` should have a snake case name [INFO] [stdout] --> src/main.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | let minCost =std::cmp::min(minCost1, minCost2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentCellsCost` should have a snake case name [INFO] [stdout] --> src/main.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 454 | let currentCellsCost = cost[row as usize][col as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cells_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:466:12 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:470:33 [INFO] [stdout] | [INFO] [stdout] 470 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:470:50 [INFO] [stdout] | [INFO] [stdout] 470 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `remainingLength` should have a snake case name [INFO] [stdout] --> src/main.rs:479:17 [INFO] [stdout] | [INFO] [stdout] 479 | let remainingLength = endIdx - startIdx -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:501:12 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `LPSAux` should have a snake case name [INFO] [stdout] --> src/main.rs:504:8 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `lpsaux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:504:32 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:504:49 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:530:12 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn findLCSLength(&self, s1: &str, s2: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stdout] --> src/main.rs:533:12 [INFO] [stdout] | [INFO] [stdout] 533 | fn findLCSLengthAux(&self, s1: &str, s2: &str, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:558:12 [INFO] [stdout] | [INFO] [stdout] 558 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str)-> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperationsAux` should have a snake case name [INFO] [stdout] --> src/main.rs:561:12 [INFO] [stdout] | [INFO] [stdout] 561 | pub fn findMinOperationsAux(&self, s1: &'a str, s2: &'a str, i: usize, j: usize)-> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:588:93 [INFO] [stdout] | [INFO] [stdout] 588 | pub fn knapsack_aux(&self, profits: &'a Vec, weights: &'a Vec, capacity: i32, currentIndex: i32)-> i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:1052:33 [INFO] [stdout] | [INFO] [stdout] 1052 | println!("COUNTER: {}", COUNTER); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `costTu` should have a snake case name [INFO] [stdout] --> src/main.rs:1202:5 [INFO] [stdout] | [INFO] [stdout] 1202 | let costTu: ConvertOneStringToAnother_TD = ConvertOneStringToAnother_TD{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cost_tu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `costBu` should have a snake case name [INFO] [stdout] --> src/main.rs:1209:5 [INFO] [stdout] | [INFO] [stdout] 1209 | let costBu: ConvertOneStringToAnother_BU = ConvertOneStringToAnother_BU { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cost_bu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1947:5 [INFO] [stdout] | [INFO] [stdout] 1947 | read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1947 | let _ = read_username_from_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.63s [INFO] running `Command { std: "docker" "inspect" "2f6d82a8feaa1cd6fa8bab80156dfd621045f5a67d56461e602956c90f437db0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f6d82a8feaa1cd6fa8bab80156dfd621045f5a67d56461e602956c90f437db0", kill_on_drop: false }` [INFO] [stdout] 2f6d82a8feaa1cd6fa8bab80156dfd621045f5a67d56461e602956c90f437db0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9bd6f9e1ef101a2668bbb1b52d4f8d74a1e3bc3dbaf93aebd260abac2c92d88 [INFO] running `Command { std: "docker" "start" "-a" "e9bd6f9e1ef101a2668bbb1b52d4f8d74a1e3bc3dbaf93aebd260abac2c92d88", kill_on_drop: false }` [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc_macro` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use proc_macro; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs: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] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:107:47 [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:117:47 [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Millimeters` is never constructed [INFO] [stdout] --> src/lib.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Millimeters(u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Meters` is never constructed [INFO] [stdout] --> src/lib.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Meters(u32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `State` is never used [INFO] [stdout] --> src/lib.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | trait State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Draft` is never constructed [INFO] [stdout] --> src/lib.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Draft {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PendingReview` is never constructed [INFO] [stdout] --> src/lib.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct PendingReview{} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Published` is never constructed [INFO] [stdout] --> src/lib.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | struct Published {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/lib.rs:291:8 [INFO] [stdout] | [INFO] [stdout] 291 | struct Pair{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 296 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 297 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/lib.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 302 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 303 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/lib.rs:356:8 [INFO] [stdout] | [INFO] [stdout] 356 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shoes_in_my_size` is never used [INFO] [stdout] --> src/lib.rs:361:4 [INFO] [stdout] | [INFO] [stdout] 361 | fn shoes_in_my_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/lib.rs:385:8 [INFO] [stdout] | [INFO] [stdout] 385 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:390:8 [INFO] [stdout] | [INFO] [stdout] 389 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 390 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:212:27 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn new(messenger: &T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 212 | pub fn new(messenger: &T, max: usize) -> LimitTracker<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc_macro` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use proc_macro; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs: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] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 98 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | fn request_review(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | fn approve(self: Box) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 101 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:107:47 [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 107 | fn request_review(self: Box) -> Box{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 110 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:117:47 [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 117 | fn request_review(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 120 | fn approve(self: Box) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/lib.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Millimeters` is never constructed [INFO] [stdout] --> src/lib.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Millimeters(u32); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Meters` is never constructed [INFO] [stdout] --> src/lib.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Meters(u32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `State` is never used [INFO] [stdout] --> src/lib.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | trait State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Draft` is never constructed [INFO] [stdout] --> src/lib.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | struct Draft {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PendingReview` is never constructed [INFO] [stdout] --> src/lib.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct PendingReview{} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Published` is never constructed [INFO] [stdout] --> src/lib.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | struct Published {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/lib.rs:291:8 [INFO] [stdout] | [INFO] [stdout] 291 | struct Pair{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 296 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 297 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/lib.rs:303:8 [INFO] [stdout] | [INFO] [stdout] 302 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 303 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:212:27 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn new(messenger: &T, max: usize) -> LimitTracker { [INFO] [stdout] | ^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 212 | pub fn new(messenger: &T, max: usize) -> LimitTracker<'_, T> { [INFO] [stdout] | +++ [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NumberOfPathsToReachLastCell_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct NumberOfPathsToReachLastCell_TD<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NumberOfPathsToReachLastCellTd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MinCostToReachLastCell_in2DArray_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | struct MinCostToReachLastCell_in2DArray_TD<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MinCostToReachLastCellIn2darrayTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestPalindromicSubstringDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | struct LongestPalindromicSubstringDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubstringDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestPalindromicSubsequenceDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | struct LongestPalindromicSubsequenceDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubsequenceDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `LongestCommonSubsequenceDP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 173 | struct LongestCommonSubsequenceDP_TD{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestCommonSubsequenceDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ZeroOneKnapsack_DP_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDpTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_BU` should have an upper camel case name [INFO] [stdout] --> src/main.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | struct ConvertOneStringToAnother_BU<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherBu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_TD` should have an upper camel case name [INFO] [stdout] --> src/main.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 270 | struct ConvertOneStringToAnother_TD<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherTd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HouseThief_BottomUp` should have an upper camel case name [INFO] [stdout] --> src/main.rs:309:8 [INFO] [stdout] | [INFO] [stdout] 309 | struct HouseThief_BottomUp<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseThiefBottomUp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `HouseTheif_TopDown` should have an upper camel case name [INFO] [stdout] --> src/main.rs:324:8 [INFO] [stdout] | [INFO] [stdout] 324 | struct HouseTheif_TopDown<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HouseTheifTopDown` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConvertOneStringToAnother_DC` should have an upper camel case name [INFO] [stdout] --> src/main.rs:553:8 [INFO] [stdout] | [INFO] [stdout] 553 | struct ConvertOneStringToAnother_DC<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ConvertOneStringToAnotherDc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ZeroOneKnapsack_DC` should have an upper camel case name [INFO] [stdout] --> src/main.rs:579:8 [INFO] [stdout] | [INFO] [stdout] 579 | struct ZeroOneKnapsack_DC<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1101:45 [INFO] [stdout] | [INFO] [stdout] 1101 | Message2::Hello {id: id_variable @ 3...7} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1104:33 [INFO] [stdout] | [INFO] [stdout] 1104 | Message2::Hello { id: 10...12} => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1292:12 [INFO] [stdout] | [INFO] [stdout] 1292 | 1 ... 5 => println!("one through five"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1300:17 [INFO] [stdout] | [INFO] [stdout] 1300 | 'a' ... 'j' => println!("early ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:1301:17 [INFO] [stdout] | [INFO] [stdout] 1301 | 'k' ... 'z' => println!("late ASCII letter"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | let mut v: i32; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | let mut dp: &mut Vec> = &mut vec![vec![0; capacity as usize + 1]; profits.len()]; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:380:30 [INFO] [stdout] | [INFO] [stdout] 380 | fn fbnc_bottom_up(&self, n:i32) -> i32{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/main.rs:1090:9 [INFO] [stdout] | [INFO] [stdout] 1090 | let r1 = &num as *const i32; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/main.rs:1091:9 [INFO] [stdout] | [INFO] [stdout] 1091 | let r2 = &mut num as *mut i32; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:1167:9 [INFO] [stdout] | [INFO] [stdout] 1167 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/main.rs:1198:6 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> src/main.rs:1198:12 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:1198:27 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:1198:29 [INFO] [stdout] | [INFO] [stdout] 1198 | let((feet, inches), Point{x,y}) = ((3,10), Point{x:3,y:4}); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:1400:9 [INFO] [stdout] | [INFO] [stdout] 1400 | for i in 0..12{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:1779:9 [INFO] [stdout] | [INFO] [stdout] 1779 | let args: Vec = env::args().collect(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:1831:9 [INFO] [stdout] | [INFO] [stdout] 1831 | let s: &'static str = "I have a static lifetime."; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:1957:9 [INFO] [stdout] | [INFO] [stdout] 1957 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1981:9 [INFO] [stdout] | [INFO] [stdout] 1981 | let v = vec![1,2,3]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:2037:13 [INFO] [stdout] | [INFO] [stdout] 2037 | let mut s = String::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:2074:9 [INFO] [stdout] | [INFO] [stdout] 2074 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> src/main.rs:2085:9 [INFO] [stdout] | [INFO] [stdout] 2085 | let third: Option<&i32> = v.get(2); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:2134:9 [INFO] [stdout] | [INFO] [stdout] 2134 | let s = 5; // Declara variable [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/main.rs:2139:13 [INFO] [stdout] | [INFO] [stdout] 2139 | let k = 7; // Scope test. This variable is valid in this parenthes. [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/main.rs:2275:17 [INFO] [stdout] | [INFO] [stdout] 2275 | let mut count =0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/main.rs:2286:13 [INFO] [stdout] | [INFO] [stdout] 2286 | count += 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:2037:9 [INFO] [stdout] | [INFO] [stdout] 2037 | let mut s = String::new(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:2176:9 [INFO] [stdout] | [INFO] [stdout] 2176 | let mut s4 = String::from("Hello world!"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ZeroOneKnapsack_DP_TD` is never constructed [INFO] [stdout] --> src/main.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `knapsack` and `knapsackAux` are never used [INFO] [stdout] --> src/main.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl ZeroOneKnapsack_DP_TD { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] 217 | pub fn knapsack(&self, profits: &Vec, weights: &Vec, capacity:i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/main.rs:628:5 [INFO] [stdout] | [INFO] [stdout] 627 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 628 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 629 | parent: RefCell>, [INFO] [stdout] 630 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulated_expensive_calculation` is never used [INFO] [stdout] --> src/main.rs:633:4 [INFO] [stdout] | [INFO] [stdout] 633 | fn simulated_expensive_calculation(intensity: u32) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/main.rs:757:10 [INFO] [stdout] | [INFO] [stdout] 757 | Cons(i32, RefCell>), [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 757 - Cons(i32, RefCell>), [INFO] [stdout] 757 + Cons((), RefCell>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:799:8 [INFO] [stdout] | [INFO] [stdout] 799 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> src/main.rs:805:5 [INFO] [stdout] | [INFO] [stdout] 804 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 805 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 806 | Move { x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 807 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point3` is never constructed [INFO] [stdout] --> src/main.rs:814:8 [INFO] [stdout] | [INFO] [stdout] 814 | struct Point3 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `baby_name` is never used [INFO] [stdout] --> src/main.rs:886:12 [INFO] [stdout] | [INFO] [stdout] 885 | impl Dog { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 886 | fn baby_name() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPaths` should have a snake case name [INFO] [stdout] --> src/main.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn numberOfPaths(&self, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPathsAux` should have a snake case name [INFO] [stdout] --> src/main.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn numberOfPathsAux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numOfPathsFromPreviousRow` should have a snake case name [INFO] [stdout] --> src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let numOfPathsFromPreviousRow = self.numberOfPaths(array, row -1, col, cost - array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numOfPathsFromPreviousCol` should have a snake case name [INFO] [stdout] --> src/main.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | let numOfPathsFromPreviousCol = self.numberOfPaths(array, row, col -1, cost - array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost` should have a snake case name [INFO] [stdout] --> src/main.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | fn findMinCost(&self, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost_aux` should have a snake case name [INFO] [stdout] --> src/main.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | fn findMinCost_aux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost1` should have a snake case name [INFO] [stdout] --> src/main.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let minCost1 = self.findMinCost_aux(dp, array, row - 1, col); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost2` should have a snake case name [INFO] [stdout] --> src/main.rs:96:17 [INFO] [stdout] | [INFO] [stdout] 96 | let minCost2 = self.findMinCost_aux(dp, array, row, col - 1); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost` should have a snake case name [INFO] [stdout] --> src/main.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let minCost = std::cmp::min(minCost1, minCost2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentCellCost` should have a snake case name [INFO] [stdout] --> src/main.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let currentCellCost = array[row as usize][col as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cell_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn findLPSLength(&self, st: &str)-> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:115:57 [INFO] [stdout] | [INFO] [stdout] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:115:72 [INFO] [stdout] | [INFO] [stdout] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `remainingLength` should have a snake case name [INFO] [stdout] --> src/main.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | let remainingLength = endIdx - startIdx -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn findLPSLength(&self, sentence: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `lps_Aux` should have a snake case name [INFO] [stdout] --> src/main.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `lps_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:153:63 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:153:78 [INFO] [stdout] | [INFO] [stdout] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn findLCSLength(&self, s1: &String, s2: &String) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stdout] --> src/main.rs:183:8 [INFO] [stdout] | [INFO] [stdout] 183 | fn findLCSLengthAux(&self, dp: &mut Vec>, s1: &String, s2: &String, i: usize, j: usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `knapsackAux` should have a snake case name [INFO] [stdout] --> src/main.rs:223:8 [INFO] [stdout] | [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `knapsack_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:223:106 [INFO] [stdout] | [INFO] [stdout] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 246 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:275:12 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperationsRecursive` should have a snake case name [INFO] [stdout] --> src/main.rs:281:8 [INFO] [stdout] | [INFO] [stdout] 281 | fn findMinOperationsRecursive(&self, dp: &mut Vec>, s1: &'a str, s2: &'a str, i: usize, j: usize) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_recursive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMaxSteal` should have a snake case name [INFO] [stdout] --> src/main.rs:313:12 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn findMaxSteal(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `find_max_steal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maxMoney` should have a snake case name [INFO] [stdout] --> src/main.rs:328:12 [INFO] [stdout] | [INFO] [stdout] 328 | pub fn maxMoney(&self, worth_to_steal: &'a Vec) -> i32{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `max_money` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `maxMoney_TopDown` should have a snake case name [INFO] [stdout] --> src/main.rs:332:8 [INFO] [stdout] | [INFO] [stdout] 332 | fn maxMoney_TopDown(&self, dp: &mut Vec, worth_to_steal: &'a Vec, index:usize) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_money_top_down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stealCurrent` should have a snake case name [INFO] [stdout] --> src/main.rs:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | let stealCurrent = worth_to_steal[index] + self.maxMoney_TopDown(dp, worth_to_steal, index+2); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `steal_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `skipCurrent` should have a snake case name [INFO] [stdout] --> src/main.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | let skipCurrent = self.maxMoney_TopDown(dp, worth_to_steal, index+1); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `skip_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `waysToGetN` should have a snake case name [INFO] [stdout] --> src/main.rs:352:12 [INFO] [stdout] | [INFO] [stdout] 352 | pub fn waysToGetN(&self, n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `waysToGetN_TopDown` should have a snake case name [INFO] [stdout] --> src/main.rs:357:12 [INFO] [stdout] | [INFO] [stdout] 357 | pub fn waysToGetN_TopDown(&self, dp: &mut Vec, n: i32) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `ways_to_get_n_top_down` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fibonacciAux` should have a snake case name [INFO] [stdout] --> src/main.rs:395:12 [INFO] [stdout] | [INFO] [stdout] 395 | pub fn fibonacciAux(&self, memo: &mut Vec, n:i32)->i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `fibonacci_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `numberOfPaths` should have a snake case name [INFO] [stdout] --> src/main.rs:419:12 [INFO] [stdout] | [INFO] [stdout] 419 | pub fn numberOfPaths(&self, array: [[isize;4];4], row: isize, col: isize, cost: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noOfPathsFromPreviousRow` should have a snake case name [INFO] [stdout] --> src/main.rs:432:13 [INFO] [stdout] | [INFO] [stdout] 432 | let noOfPathsFromPreviousRow = self.numberOfPaths(array, row-1, col, cost-array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `noOfPathsFromPreviousCol` should have a snake case name [INFO] [stdout] --> src/main.rs:433:13 [INFO] [stdout] | [INFO] [stdout] 433 | let noOfPathsFromPreviousCol = self.numberOfPaths(array, row, col-1, cost-array[row as usize][col as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `no_of_paths_from_previous_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinCost` should have a snake case name [INFO] [stdout] --> src/main.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | fn findMinCost(&self,cost:[[isize;5];5] ,row: isize, col: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost1` should have a snake case name [INFO] [stdout] --> src/main.rs:451:9 [INFO] [stdout] | [INFO] [stdout] 451 | let minCost1 = self.findMinCost(cost, row - 1, col); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost2` should have a snake case name [INFO] [stdout] --> src/main.rs:452:9 [INFO] [stdout] | [INFO] [stdout] 452 | let minCost2 = self.findMinCost(cost, row, col - 1); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `min_cost2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `minCost` should have a snake case name [INFO] [stdout] --> src/main.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | let minCost =std::cmp::min(minCost1, minCost2); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentCellsCost` should have a snake case name [INFO] [stdout] --> src/main.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 454 | let currentCellsCost = cost[row as usize][col as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cells_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:466:12 [INFO] [stdout] | [INFO] [stdout] 466 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:470:33 [INFO] [stdout] | [INFO] [stdout] 470 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:470:50 [INFO] [stdout] | [INFO] [stdout] 470 | fn lps_aux(&self, st: &str, startIdx: usize, endIdx: usize)->usize{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `remainingLength` should have a snake case name [INFO] [stdout] --> src/main.rs:479:17 [INFO] [stdout] | [INFO] [stdout] 479 | let remainingLength = endIdx - startIdx -1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remaining_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLPSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:501:12 [INFO] [stdout] | [INFO] [stdout] 501 | pub fn findLPSLength(&self, st: &str)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `LPSAux` should have a snake case name [INFO] [stdout] --> src/main.rs:504:8 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `lpsaux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `startIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:504:32 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `start_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `endIdx` should have a snake case name [INFO] [stdout] --> src/main.rs:504:49 [INFO] [stdout] | [INFO] [stdout] 504 | fn LPSAux(&self, st: &str, startIdx: usize, endIdx: usize) -> usize { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `end_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLength` should have a snake case name [INFO] [stdout] --> src/main.rs:530:12 [INFO] [stdout] | [INFO] [stdout] 530 | pub fn findLCSLength(&self, s1: &str, s2: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findLCSLengthAux` should have a snake case name [INFO] [stdout] --> src/main.rs:533:12 [INFO] [stdout] | [INFO] [stdout] 533 | fn findLCSLengthAux(&self, s1: &str, s2: &str, i: usize, j: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperations` should have a snake case name [INFO] [stdout] --> src/main.rs:558:12 [INFO] [stdout] | [INFO] [stdout] 558 | pub fn findMinOperations(&self, s1: &'a str, s2: &'a str)-> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `findMinOperationsAux` should have a snake case name [INFO] [stdout] --> src/main.rs:561:12 [INFO] [stdout] | [INFO] [stdout] 561 | pub fn findMinOperationsAux(&self, s1: &'a str, s2: &'a str, i: usize, j: usize)-> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_operations_aux` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIndex` should have a snake case name [INFO] [stdout] --> src/main.rs:588:93 [INFO] [stdout] | [INFO] [stdout] 588 | pub fn knapsack_aux(&self, profits: &'a Vec, weights: &'a Vec, capacity: i32, currentIndex: i32)-> i32{ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `current_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:1052:33 [INFO] [stdout] | [INFO] [stdout] 1052 | println!("COUNTER: {}", COUNTER); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `costTu` should have a snake case name [INFO] [stdout] --> src/main.rs:1202:5 [INFO] [stdout] | [INFO] [stdout] 1202 | let costTu: ConvertOneStringToAnother_TD = ConvertOneStringToAnother_TD{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cost_tu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `costBu` should have a snake case name [INFO] [stdout] --> src/main.rs:1209:5 [INFO] [stdout] | [INFO] [stdout] 1209 | let costBu: ConvertOneStringToAnother_BU = ConvertOneStringToAnother_BU { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `cost_bu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1947:5 [INFO] [stdout] | [INFO] [stdout] 1947 | read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1947 | let _ = read_username_from_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.89s [INFO] running `Command { std: "docker" "inspect" "e9bd6f9e1ef101a2668bbb1b52d4f8d74a1e3bc3dbaf93aebd260abac2c92d88", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9bd6f9e1ef101a2668bbb1b52d4f8d74a1e3bc3dbaf93aebd260abac2c92d88", kill_on_drop: false }` [INFO] [stdout] e9bd6f9e1ef101a2668bbb1b52d4f8d74a1e3bc3dbaf93aebd260abac2c92d88 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+028592fec99e54cc92def5a2a849c673b066dd93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0e2cbc6e92a97a7262cbd1d609530a626be9bd4575ec7cc6ddd74c6c22b0d74d [INFO] running `Command { std: "docker" "start" "-a" "0e2cbc6e92a97a7262cbd1d609530a626be9bd4575ec7cc6ddd74c6c22b0d74d", 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `proc_macro` [INFO] [stderr] --> src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use proc_macro; [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] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [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:63:47 [INFO] [stderr] | [INFO] [stderr] 63 | 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: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 63 | 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:64:40 [INFO] [stderr] | [INFO] [stderr] 64 | 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: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 64 | 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: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: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 101 | 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:107:47 [INFO] [stderr] | [INFO] [stderr] 107 | 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: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 107 | 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:110:40 [INFO] [stderr] | [INFO] [stderr] 110 | 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: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 110 | 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:117:47 [INFO] [stderr] | [INFO] [stderr] 117 | 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: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 117 | 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:120:40 [INFO] [stderr] | [INFO] [stderr] 120 | 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: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 120 | fn approve(self: Box) -> Box { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `post` [INFO] [stderr] --> src/lib.rs:65:27 [INFO] [stderr] | [INFO] [stderr] 65 | 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Millimeters` is never constructed [INFO] [stderr] --> src/lib.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | struct Millimeters(u32); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Meters` is never constructed [INFO] [stderr] --> src/lib.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | struct Meters(u32); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `State` is never used [INFO] [stderr] --> src/lib.rs:62:7 [INFO] [stderr] | [INFO] [stderr] 62 | trait State { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Draft` is never constructed [INFO] [stderr] --> src/lib.rs:70:8 [INFO] [stderr] | [INFO] [stderr] 70 | struct Draft {} [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PendingReview` is never constructed [INFO] [stderr] --> src/lib.rs:105:8 [INFO] [stderr] | [INFO] [stderr] 105 | struct PendingReview{} [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Published` is never constructed [INFO] [stderr] --> src/lib.rs:115:8 [INFO] [stderr] | [INFO] [stderr] 115 | struct Published {} [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Pair` is never constructed [INFO] [stderr] --> src/lib.rs:291:8 [INFO] [stderr] | [INFO] [stderr] 291 | struct Pair{ [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/lib.rs:297:8 [INFO] [stderr] | [INFO] [stderr] 296 | impl Pair { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 297 | fn new(x: T, y: T) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `cmp_display` is never used [INFO] [stderr] --> src/lib.rs:303:8 [INFO] [stderr] | [INFO] [stderr] 302 | impl Pair { [INFO] [stderr] | ------------------------------------- method in this implementation [INFO] [stderr] 303 | fn cmp_display(&self) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Shoe` is never constructed [INFO] [stderr] --> src/lib.rs:356:8 [INFO] [stderr] | [INFO] [stderr] 356 | struct Shoe { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `shoes_in_my_size` is never used [INFO] [stderr] --> src/lib.rs:361:4 [INFO] [stderr] | [INFO] [stderr] 361 | fn shoes_in_my_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Counter` is never constructed [INFO] [stderr] --> src/lib.rs:385:8 [INFO] [stderr] | [INFO] [stderr] 385 | struct Counter { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/lib.rs:390:8 [INFO] [stderr] | [INFO] [stderr] 389 | impl Counter { [INFO] [stderr] | ------------ associated function in this implementation [INFO] [stderr] 390 | fn new() -> Counter { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib.rs:212:27 [INFO] [stderr] | [INFO] [stderr] 212 | pub fn new(messenger: &T, max: usize) -> LimitTracker { [INFO] [stderr] | ^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 212 | pub fn new(messenger: &T, max: usize) -> LimitTracker<'_, T> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `rust-train` (lib) generated 25 warnings (run `cargo fix --lib -p rust-train` to apply 11 suggestions) [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: type `NumberOfPathsToReachLastCell_TD` should have an upper camel case name [INFO] [stderr] --> src/main.rs:42:8 [INFO] [stderr] | [INFO] [stderr] 42 | struct NumberOfPathsToReachLastCell_TD<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NumberOfPathsToReachLastCellTd` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: type `MinCostToReachLastCell_in2DArray_TD` should have an upper camel case name [INFO] [stderr] --> src/main.rs:77:8 [INFO] [stderr] | [INFO] [stderr] 77 | struct MinCostToReachLastCell_in2DArray_TD<'a>{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MinCostToReachLastCellIn2darrayTd` [INFO] [stderr] [INFO] [stderr] warning: type `LongestPalindromicSubstringDP_TD` should have an upper camel case name [INFO] [stderr] --> src/main.rs:107:8 [INFO] [stderr] | [INFO] [stderr] 107 | struct LongestPalindromicSubstringDP_TD{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubstringDpTd` [INFO] [stderr] [INFO] [stderr] warning: type `LongestPalindromicSubsequenceDP_TD` should have an upper camel case name [INFO] [stderr] --> src/main.rs:145:8 [INFO] [stderr] | [INFO] [stderr] 145 | struct LongestPalindromicSubsequenceDP_TD{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestPalindromicSubsequenceDpTd` [INFO] [stderr] [INFO] [stderr] warning: type `LongestCommonSubsequenceDP_TD` should have an upper camel case name [INFO] [stderr] --> src/main.rs:173:8 [INFO] [stderr] | [INFO] [stderr] 173 | struct LongestCommonSubsequenceDP_TD{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LongestCommonSubsequenceDpTd` [INFO] [stderr] [INFO] [stderr] warning: type `ZeroOneKnapsack_DP_TD` should have an upper camel case name [INFO] [stderr] --> src/main.rs:211:8 [INFO] [stderr] | [INFO] [stderr] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ZeroOneKnapsackDpTd` [INFO] [stderr] [INFO] [stderr] warning: type `ConvertOneStringToAnother_BU` should have an upper camel case name [INFO] [stderr] --> src/main.rs:241:8 [INFO] [stderr] | [INFO] [stderr] 241 | 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:270:8 [INFO] [stderr] | [INFO] [stderr] 270 | 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:309:8 [INFO] [stderr] | [INFO] [stderr] 309 | 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:324:8 [INFO] [stderr] | [INFO] [stderr] 324 | 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:553:8 [INFO] [stderr] | [INFO] [stderr] 553 | 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:579:8 [INFO] [stderr] | [INFO] [stderr] 579 | 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:1101:45 [INFO] [stderr] | [INFO] [stderr] 1101 | Message2::Hello {id: id_variable @ 3...7} => { [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] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/main.rs:1104:33 [INFO] [stderr] | [INFO] [stderr] 1104 | 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:1292:12 [INFO] [stderr] | [INFO] [stderr] 1292 | 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:1300:17 [INFO] [stderr] | [INFO] [stderr] 1300 | '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:1301:17 [INFO] [stderr] | [INFO] [stderr] 1301 | '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: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:56:17 [INFO] [stderr] | [INFO] [stderr] 56 | let mut v: i32; [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:219:13 [INFO] [stderr] | [INFO] [stderr] 219 | 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] warning: unused variable: `n` [INFO] [stderr] --> src/main.rs:380:30 [INFO] [stderr] | [INFO] [stderr] 380 | 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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r1` [INFO] [stderr] --> src/main.rs:1090:9 [INFO] [stderr] | [INFO] [stderr] 1090 | let r1 = &num as *const i32; [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `r2` [INFO] [stderr] --> src/main.rs:1091:9 [INFO] [stderr] | [INFO] [stderr] 1091 | let r2 = &mut num as *mut i32; [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `y` [INFO] [stderr] --> src/main.rs:1167:9 [INFO] [stderr] | [INFO] [stderr] 1167 | let y = 10; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `feet` [INFO] [stderr] --> src/main.rs:1198:6 [INFO] [stderr] | [INFO] [stderr] 1198 | 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:1198:12 [INFO] [stderr] | [INFO] [stderr] 1198 | 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:1198:27 [INFO] [stderr] | [INFO] [stderr] 1198 | 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:1198:29 [INFO] [stderr] | [INFO] [stderr] 1198 | 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:1400:9 [INFO] [stderr] | [INFO] [stderr] 1400 | 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:1779:9 [INFO] [stderr] | [INFO] [stderr] 1779 | 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:1831:9 [INFO] [stderr] | [INFO] [stderr] 1831 | 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:1957:9 [INFO] [stderr] | [INFO] [stderr] 1957 | 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:1981:9 [INFO] [stderr] | [INFO] [stderr] 1981 | 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:2037:13 [INFO] [stderr] | [INFO] [stderr] 2037 | 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:2074:9 [INFO] [stderr] | [INFO] [stderr] 2074 | 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:2085:9 [INFO] [stderr] | [INFO] [stderr] 2085 | 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:2134:9 [INFO] [stderr] | [INFO] [stderr] 2134 | 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:2139:13 [INFO] [stderr] | [INFO] [stderr] 2139 | 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:2275:17 [INFO] [stderr] | [INFO] [stderr] 2275 | 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:2286:13 [INFO] [stderr] | [INFO] [stderr] 2286 | count += 1; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:2037:9 [INFO] [stderr] | [INFO] [stderr] 2037 | 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:2176:9 [INFO] [stderr] | [INFO] [stderr] 2176 | let mut s4 = String::from("Hello world!"); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: struct `ZeroOneKnapsack_DP_TD` is never constructed [INFO] [stderr] --> src/main.rs:211:8 [INFO] [stderr] | [INFO] [stderr] 211 | struct ZeroOneKnapsack_DP_TD { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `knapsack` and `knapsackAux` are never used [INFO] [stderr] --> src/main.rs:217:12 [INFO] [stderr] | [INFO] [stderr] 216 | impl ZeroOneKnapsack_DP_TD { [INFO] [stderr] | -------------------------- methods in this implementation [INFO] [stderr] 217 | pub fn knapsack(&self, profits: &Vec, weights: &Vec, capacity:i32) -> i32 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 223 | fn knapsackAux(&self, dp: &mut Vec>, profits: &Vec, weights: &Vec, capacity: i32, currentIndex: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `value` and `children` are never read [INFO] [stderr] --> src/main.rs:628:5 [INFO] [stderr] | [INFO] [stderr] 627 | struct Node { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 628 | value: i32, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 629 | parent: RefCell>, [INFO] [stderr] 630 | 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] [INFO] [stderr] warning: function `simulated_expensive_calculation` is never used [INFO] [stderr] --> src/main.rs:633:4 [INFO] [stderr] | [INFO] [stderr] 633 | fn simulated_expensive_calculation(intensity: u32) -> u32{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/main.rs:757:10 [INFO] [stderr] | [INFO] [stderr] 757 | Cons(i32, RefCell>), [INFO] [stderr] | ---- ^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 757 - Cons(i32, RefCell>), [INFO] [stderr] 757 + Cons((), RefCell>), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: struct `Point` is never constructed [INFO] [stderr] --> src/main.rs:799:8 [INFO] [stderr] | [INFO] [stderr] 799 | struct Point { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stderr] --> src/main.rs:805:5 [INFO] [stderr] | [INFO] [stderr] 804 | enum Message { [INFO] [stderr] | ------- variants in this enum [INFO] [stderr] 805 | Quit, [INFO] [stderr] | ^^^^ [INFO] [stderr] 806 | Move { x: i32, y: i32}, [INFO] [stderr] | ^^^^ [INFO] [stderr] 807 | Write(String), [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Point3` is never constructed [INFO] [stderr] --> src/main.rs:814:8 [INFO] [stderr] | [INFO] [stderr] 814 | struct Point3 { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `baby_name` is never used [INFO] [stderr] --> src/main.rs:886:12 [INFO] [stderr] | [INFO] [stderr] 885 | impl Dog { [INFO] [stderr] | -------- associated function in this implementation [INFO] [stderr] 886 | fn baby_name() -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `numberOfPaths` should have a snake case name [INFO] [stderr] --> src/main.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 47 | pub fn numberOfPaths(&self, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `numberOfPathsAux` should have a snake case name [INFO] [stderr] --> src/main.rs:51:12 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn numberOfPathsAux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32, cost: i32) -> i32{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `number_of_paths_aux` [INFO] [stderr] [INFO] [stderr] warning: variable `numOfPathsFromPreviousRow` should have a snake case name [INFO] [stderr] --> src/main.rs:66:21 [INFO] [stderr] | [INFO] [stderr] 66 | let numOfPathsFromPreviousRow = self.numberOfPaths(array, row -1, col, cost - array[row as usize][col as usize]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_row` [INFO] [stderr] [INFO] [stderr] warning: variable `numOfPathsFromPreviousCol` should have a snake case name [INFO] [stderr] --> src/main.rs:67:21 [INFO] [stderr] | [INFO] [stderr] 67 | let numOfPathsFromPreviousCol = self.numberOfPaths(array, row, col -1, cost - array[row as usize][col as usize]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `num_of_paths_from_previous_col` [INFO] [stderr] [INFO] [stderr] warning: method `findMinCost` should have a snake case name [INFO] [stderr] --> src/main.rs:81:8 [INFO] [stderr] | [INFO] [stderr] 81 | fn findMinCost(&self, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost` [INFO] [stderr] [INFO] [stderr] warning: method `findMinCost_aux` should have a snake case name [INFO] [stderr] --> src/main.rs:86:8 [INFO] [stderr] | [INFO] [stderr] 86 | fn findMinCost_aux(&self, dp: &mut Vec>, array: &Vec>, row: i32, col: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_min_cost_aux` [INFO] [stderr] [INFO] [stderr] warning: variable `minCost1` should have a snake case name [INFO] [stderr] --> src/main.rs:95:17 [INFO] [stderr] | [INFO] [stderr] 95 | let minCost1 = self.findMinCost_aux(dp, array, 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:96:17 [INFO] [stderr] | [INFO] [stderr] 96 | let minCost2 = self.findMinCost_aux(dp, array, 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:97:17 [INFO] [stderr] | [INFO] [stderr] 97 | let minCost = std::cmp::min(minCost1, minCost2); [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `min_cost` [INFO] [stderr] [INFO] [stderr] warning: variable `currentCellCost` should have a snake case name [INFO] [stderr] --> src/main.rs:98:17 [INFO] [stderr] | [INFO] [stderr] 98 | let currentCellCost = array[row as usize][col as usize]; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_cell_cost` [INFO] [stderr] [INFO] [stderr] warning: method `findLPSLength` should have a snake case name [INFO] [stderr] --> src/main.rs:111:12 [INFO] [stderr] | [INFO] [stderr] 111 | pub fn findLPSLength(&self, st: &str)-> i32{ [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:115:57 [INFO] [stderr] | [INFO] [stderr] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [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:115:72 [INFO] [stderr] | [INFO] [stderr] 115 | fn lps_aux(&self, dp: &mut Vec>, st: &str, startIdx: i32, endIdx: i32)-> i32 { [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:125:21 [INFO] [stderr] | [INFO] [stderr] 125 | 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:149:12 [INFO] [stderr] | [INFO] [stderr] 149 | pub fn findLPSLength(&self, sentence: &str) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lpslength` [INFO] [stderr] [INFO] [stderr] warning: method `lps_Aux` should have a snake case name [INFO] [stderr] --> src/main.rs:153:8 [INFO] [stderr] | [INFO] [stderr] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `lps_aux` [INFO] [stderr] [INFO] [stderr] warning: variable `startIdx` should have a snake case name [INFO] [stderr] --> src/main.rs:153:63 [INFO] [stderr] | [INFO] [stderr] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [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:153:78 [INFO] [stderr] | [INFO] [stderr] 153 | fn lps_Aux(&self, dp: &mut Vec>, sentence: &str, startIdx: i32, endIdx: i32) -> i32 { [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:178:12 [INFO] [stderr] | [INFO] [stderr] 178 | pub fn findLCSLength(&self, s1: &String, s2: &String) -> i32{ [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:183:8 [INFO] [stderr] | [INFO] [stderr] 183 | fn findLCSLengthAux(&self, dp: &mut Vec>, s1: &String, s2: &String, i: usize, j: usize) -> i32{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_lcslength_aux` [INFO] [stderr] [INFO] [stderr] warning: method `knapsackAux` should have a snake case name [INFO] [stderr] --> src/main.rs:223:8 [INFO] [stderr] | [INFO] [stderr] 223 | 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] warning: variable `currentIndex` should have a snake case name [INFO] [stderr] --> src/main.rs:223:106 [INFO] [stderr] | [INFO] [stderr] 223 | 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:246:12 [INFO] [stderr] | [INFO] [stderr] 246 | 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:275:12 [INFO] [stderr] | [INFO] [stderr] 275 | 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:281:8 [INFO] [stderr] | [INFO] [stderr] 281 | 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:313:12 [INFO] [stderr] | [INFO] [stderr] 313 | 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:328:12 [INFO] [stderr] | [INFO] [stderr] 328 | 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:332:8 [INFO] [stderr] | [INFO] [stderr] 332 | 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:337:17 [INFO] [stderr] | [INFO] [stderr] 337 | 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:338:17 [INFO] [stderr] | [INFO] [stderr] 338 | 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:352:12 [INFO] [stderr] | [INFO] [stderr] 352 | 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:357:12 [INFO] [stderr] | [INFO] [stderr] 357 | 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:395:12 [INFO] [stderr] | [INFO] [stderr] 395 | 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:419:12 [INFO] [stderr] | [INFO] [stderr] 419 | 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:432:13 [INFO] [stderr] | [INFO] [stderr] 432 | 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:433:13 [INFO] [stderr] | [INFO] [stderr] 433 | 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:444:8 [INFO] [stderr] | [INFO] [stderr] 444 | 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:451:9 [INFO] [stderr] | [INFO] [stderr] 451 | 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:452:9 [INFO] [stderr] | [INFO] [stderr] 452 | 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:453:9 [INFO] [stderr] | [INFO] [stderr] 453 | 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:454:9 [INFO] [stderr] | [INFO] [stderr] 454 | 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:466:12 [INFO] [stderr] | [INFO] [stderr] 466 | 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:470:33 [INFO] [stderr] | [INFO] [stderr] 470 | 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:470:50 [INFO] [stderr] | [INFO] [stderr] 470 | 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:479:17 [INFO] [stderr] | [INFO] [stderr] 479 | 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:501:12 [INFO] [stderr] | [INFO] [stderr] 501 | 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:504:8 [INFO] [stderr] | [INFO] [stderr] 504 | 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:504:32 [INFO] [stderr] | [INFO] [stderr] 504 | 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:504:49 [INFO] [stderr] | [INFO] [stderr] 504 | 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:530:12 [INFO] [stderr] | [INFO] [stderr] 530 | 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:533:12 [INFO] [stderr] | [INFO] [stderr] 533 | 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:558:12 [INFO] [stderr] | [INFO] [stderr] 558 | 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:561:12 [INFO] [stderr] | [INFO] [stderr] 561 | 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:588:93 [INFO] [stderr] | [INFO] [stderr] 588 | 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: creating a shared reference to mutable static [INFO] [stderr] --> src/main.rs:1052:33 [INFO] [stderr] | [INFO] [stderr] 1052 | println!("COUNTER: {}", COUNTER); [INFO] [stderr] | ^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable `costTu` should have a snake case name [INFO] [stderr] --> src/main.rs:1202:5 [INFO] [stderr] | [INFO] [stderr] 1202 | 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:1209:5 [INFO] [stderr] | [INFO] [stderr] 1209 | 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:1947:5 [INFO] [stderr] | [INFO] [stderr] 1947 | read_username_from_file(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 1947 | let _ = read_username_from_file(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `rust-train` (bin "rust-train" test) generated 109 warnings (run `cargo fix --bin "rust-train" --tests` to apply 10 suggestions) [INFO] [stderr] warning: `rust-train` (lib test) generated 21 warnings (21 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_train-da1b1608d7a85581) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test calling_next_directly ... ok [INFO] [stdout] test iterator_demonstration ... ok [INFO] [stdout] test filters_by_size ... ok [INFO] [stdout] test iterator_sum ... ok [INFO] [stdout] test using_other_iterator_trait_methods ... ok [INFO] [stdout] test iterator_with_map ... ok [INFO] [stdout] test test_map_iter ... ok [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] [INFO] [stdout] thread 'tests::it_sends_an_over_75_percent_warning_message' (31) panicked at src/lib.rs:459:53: [INFO] [stdout] RefCell already borrowed [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5f45fc8fc892 - std::backtrace_rs::backtrace::libunwind::trace::hcbb09259ca22005c [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5f45fc8fc892 - std::backtrace_rs::backtrace::trace_unsynchronized::h0fac8c223cd6e456 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5f45fc8fc892 - std::sys::backtrace::_print_fmt::he5f2b5e0c66ce66e [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5f45fc8fc892 - ::fmt::haf29e060fb6137a9 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5f45fc90cc6f - core::fmt::rt::Argument::fmt::h596977d9d4f722b0 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5f45fc90cc6f - core::fmt::write::h0ee4d44b8e20572d [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x5f45fc8c9931 - std::io::default_write_fmt::h5f5bf04c08f51588 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5f45fc8c9931 - std::io::Write::write_fmt::he99637cf0d3cbc1c [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x5f45fc8d5a02 - std::sys::backtrace::BacktraceLock::print::h3db71735b2a2861b [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x5f45fc8da54f - std::panicking::default_hook::{{closure}}::h0168a26bb62ec69b [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x5f45fc8da3e1 - std::panicking::default_hook::h7454a6fd0ab61b64 [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5f45fc89aeee - as core::ops::function::Fn>::call::h8dac224212939801 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/alloc/src/boxed.rs:1987:9 [INFO] [stdout] 12: 0x5f45fc89aeee - test::test_main_with_exit_callback::{{closure}}::h18346b0063635f4a [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x5f45fc8dac0f - as core::ops::function::Fn>::call::h7e5d21d6123baaaf [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/alloc/src/boxed.rs:1987:9 [INFO] [stdout] 14: 0x5f45fc8dac0f - std::panicking::panic_with_hook::h2d45a49bfd4e6ec4 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x5f45fc8daa6a - std::panicking::panic_handler::{{closure}}::h37f0f43a266cd34d [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x5f45fc8d5b39 - std::sys::backtrace::__rust_end_short_backtrace::h1ed0bd8883e4d747 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x5f45fc8bde2d - __rustc[92da9811a626c906]::rust_begin_unwind [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x5f45fc914650 - core::panicking::panic_fmt::hc1117383da035bf0 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/panicking.rs:78:14 [INFO] [stdout] 19: 0x5f45fc913493 - core::cell::panic_already_borrowed::do_panic::runtime::h057109d24f8b7357 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/panic.rs:173:21 [INFO] [stdout] 20: 0x5f45fc91343a - core::cell::panic_already_borrowed::do_panic::h0fac19d23ec80ab7 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/intrinsics/mod.rs:2435:9 [INFO] [stdout] 21: 0x5f45fc91343a - core::cell::panic_already_borrowed::h1765469dc1a13aae [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/panic.rs:178:9 [INFO] [stdout] 22: 0x5f45fc874a52 - core::cell::RefCell::borrow_mut::he2fc4a6ff163670e [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/cell.rs:1090:25 [INFO] [stdout] 23: 0x5f45fc877065 - ::send::hd121c55162d3a592 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:459:53 [INFO] [stdout] 24: 0x5f45fc872e95 - rust_train::LimitTracker::set_value::h688ebb6acb984d15 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:226:28 [INFO] [stdout] 25: 0x5f45fc873840 - rust_train::tests::it_sends_an_over_75_percent_warning_message::h4313f61d0ae7fe82 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:478:23 [INFO] [stdout] 26: 0x5f45fc873977 - rust_train::tests::it_sends_an_over_75_percent_warning_message::{{closure}}::hca172836f774a585 [INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:474:53 [INFO] [stdout] 27: 0x5f45fc877cd6 - core::ops::function::FnOnce::call_once::h29a9ec256dce477f [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 28: 0x5f45fc89acab - core::ops::function::FnOnce::call_once::habfa9d6a6bb4aa21 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 29: 0x5f45fc89acab - test::__rust_begin_short_backtrace::hc119b5350e87269b [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/test/src/lib.rs:663:18 [INFO] [stdout] 30: 0x5f45fc8b08f5 - test::run_test_in_process::{{closure}}::h47f2af3109a35895 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/test/src/lib.rs:686:74 [INFO] [stdout] 31: 0x5f45fc8b08f5 - as core::ops::function::FnOnce<()>>::call_once::h5dba888a302c7fc3 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 32: 0x5f45fc8b08f5 - std::panicking::catch_unwind::do_call::h245c3fdea830e686 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/panicking.rs:590:40 [INFO] [stdout] 33: 0x5f45fc8b08f5 - std::panicking::catch_unwind::he88149d1cfc3a929 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/panicking.rs:553:19 [INFO] [stdout] 34: 0x5f45fc8b08f5 - std::panic::catch_unwind::hd43a8ff20deb6d7a [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/panic.rs:359:14 [INFO] [stdout] 35: 0x5f45fc8b08f5 - test::run_test_in_process::hcf11d509449005e2 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/test/src/lib.rs:686:27 [INFO] [stdout] 36: 0x5f45fc8b08f5 - test::run_test::{{closure}}::heb13d4899a512502 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/test/src/lib.rs:607:43 [INFO] [stdout] 37: 0x5f45fc8870d4 - test::run_test::{{closure}}::h3e08e9adf8aad35e [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/test/src/lib.rs:637:41 [INFO] [stdout] 38: 0x5f45fc8870d4 - std::sys::backtrace::__rust_begin_short_backtrace::h773f9a01402fd17f [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 39: 0x5f45fc88a9da - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h408f0520947b97f2 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 40: 0x5f45fc88a9da - as core::ops::function::FnOnce<()>>::call_once::h1162a01751e98fdc [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 41: 0x5f45fc88a9da - std::panicking::catch_unwind::do_call::hf4224593c5d108e2 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/panicking.rs:590:40 [INFO] [stdout] 42: 0x5f45fc88a9da - std::panicking::catch_unwind::h4478d419d6ab8a26 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/panicking.rs:553:19 [INFO] [stdout] 43: 0x5f45fc88a9da - std::panic::catch_unwind::h1e472892204dcfec [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/panic.rs:359:14 [INFO] [stdout] 44: 0x5f45fc88a9da - std::thread::Builder::spawn_unchecked_::{{closure}}::hd555321a5ac5351d [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 45: 0x5f45fc88a9da - core::ops::function::FnOnce::call_once{{vtable.shim}}::hb9947c3c1cc735ed [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 46: 0x5f45fc8d0c7f - as core::ops::function::FnOnce>::call_once::hf699f0a3c139bc19 [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/alloc/src/boxed.rs:1973:9 [INFO] [stdout] 47: 0x5f45fc8d0c7f - std::sys::thread::unix::Thread::new::thread_start::h2d5318761291e34a [INFO] [stdout] at /rustc/028592fec99e54cc92def5a2a849c673b066dd93/library/std/src/sys/thread/unix.rs:126:17 [INFO] [stdout] 48: 0x779cfc02baa4 - [INFO] [stdout] 49: 0x779cfc0b8a34 - clone [INFO] [stdout] 50: 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.02s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0e2cbc6e92a97a7262cbd1d609530a626be9bd4575ec7cc6ddd74c6c22b0d74d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e2cbc6e92a97a7262cbd1d609530a626be9bd4575ec7cc6ddd74c6c22b0d74d", kill_on_drop: false }` [INFO] [stdout] 0e2cbc6e92a97a7262cbd1d609530a626be9bd4575ec7cc6ddd74c6c22b0d74d