[INFO] cloning repository https://github.com/Abhishek8394/rust-tut-basics [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Abhishek8394/rust-tut-basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAbhishek8394%2Frust-tut-basics", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAbhishek8394%2Frust-tut-basics'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 62f62d3624994b41db874b52c2e0b11b72057d11 [INFO] testing Abhishek8394/rust-tut-basics against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAbhishek8394%2Frust-tut-basics" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Abhishek8394/rust-tut-basics on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Abhishek8394/rust-tut-basics [INFO] finished tweaking git repo https://github.com/Abhishek8394/rust-tut-basics [INFO] tweaked toml for git repo https://github.com/Abhishek8394/rust-tut-basics written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/Abhishek8394/rust-tut-basics already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 299a9022410d67bc8ae296b0ad3004d20b3631aba130a8b9b00a9869b9a495cc [INFO] running `Command { std: "docker" "start" "-a" "299a9022410d67bc8ae296b0ad3004d20b3631aba130a8b9b00a9869b9a495cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "299a9022410d67bc8ae296b0ad3004d20b3631aba130a8b9b00a9869b9a495cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "299a9022410d67bc8ae296b0ad3004d20b3631aba130a8b9b00a9869b9a495cc", kill_on_drop: false }` [INFO] [stdout] 299a9022410d67bc8ae296b0ad3004d20b3631aba130a8b9b00a9869b9a495cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 626d2944ccd0ccff58a3f7ac8ad500c940ec5e5d6c87cada8d0a5497b95a47b1 [INFO] running `Command { std: "docker" "start" "-a" "626d2944ccd0ccff58a3f7ac8ad500c940ec5e5d6c87cada8d0a5497b95a47b1", kill_on_drop: false }` [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand v0.5.6 [INFO] [stderr] Compiling variables v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::panic_exc::unrecoverable as Unrec` [INFO] [stdout] --> src/main.rs:550:7 [INFO] [stdout] | [INFO] [stdout] 550 | use crate::panic_exc::unrecoverable as Unrec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:680:4 [INFO] [stdout] | [INFO] [stdout] 680 | if(x.len() > y.len()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 680 - if(x.len() > y.len()){ [INFO] [stdout] 680 + if x.len() > y.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:692:4 [INFO] [stdout] | [INFO] [stdout] 692 | if(x.len() > y.len()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 692 - if(x.len() > y.len()){ [INFO] [stdout] 692 + if x.len() > y.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:774:5 [INFO] [stdout] | [INFO] [stdout] 774 | if(self.is_reply){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 774 - if(self.is_reply){ [INFO] [stdout] 774 + if self.is_reply { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around `for` iterator expression [INFO] [stdout] --> src/main.rs:872:11 [INFO] [stdout] | [INFO] [stdout] 872 | for i in {0..n} { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 872 - for i in {0..n} { [INFO] [stdout] 872 + for i in 0..n { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 51 | let b = [3; 4]; // => b = [3, 3, 3, 3] [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/main.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | let sum = for element in a.iter(){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/main.rs:249:7 [INFO] [stdout] | [INFO] [stdout] 249 | let hello = hello_return(&s1); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/main.rs:259:7 [INFO] [stdout] | [INFO] [stdout] 259 | let s1 = String::from("range string"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> src/main.rs:326:10 [INFO] [stdout] | [INFO] [stdout] 326 | let home = StrictIpAddr::V4(127, 0, 0, 1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `homev6` [INFO] [stdout] --> src/main.rs:327:10 [INFO] [stdout] | [INFO] [stdout] 327 | let homev6 = StrictIpAddr::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_homev6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonum` [INFO] [stdout] --> src/main.rs:348:7 [INFO] [stdout] | [INFO] [stdout] 348 | let nonum: Option = Option::None; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:392:7 [INFO] [stdout] | [INFO] [stdout] 392 | 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: `s` [INFO] [stdout] --> src/main.rs:468:7 [INFO] [stdout] | [INFO] [stdout] 468 | let 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: `z` [INFO] [stdout] --> src/main.rs:627:8 [INFO] [stdout] | [INFO] [stdout] 627 | let z = String::from("I am number FIVE!"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:872:6 [INFO] [stdout] | [INFO] [stdout] 872 | for i in {0..n} { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:971:17 [INFO] [stdout] | [INFO] [stdout] 971 | fn hello_return(s: &str) -> &str{ [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/panic_exc.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | 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: `f` [INFO] [stdout] --> src/panic_exc.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let f = File::open("hello.txt").unwrap_or_else(|err| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panic_exc.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let f = File::open("hello.txt").unwrap_or_else(|err| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:247:7 [INFO] [stdout] | [INFO] [stdout] 247 | let mut s1 = String::from("quick brown"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:526:7 [INFO] [stdout] | [INFO] [stdout] 526 | let mut scores: HashMap<_, _> = teams.iter().zip(points.iter()).collect(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `version` [INFO] [stdout] --> src/main.rs:653:5 [INFO] [stdout] | [INFO] [stdout] 653 | fn version(&self)->i32{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `announce_no_lifetime` [INFO] [stdout] --> src/main.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | fn announce_no_lifetime(&self, ann: &str) -> &str{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/main.rs:755:2 [INFO] [stdout] | [INFO] [stdout] 755 | content: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `username` [INFO] [stdout] --> src/main.rs:761:2 [INFO] [stdout] | [INFO] [stdout] 761 | username: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NewYork` [INFO] [stdout] --> src/main.rs:846:2 [INFO] [stdout] | [INFO] [stdout] 846 | NewYork, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `USState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:843:10 [INFO] [stdout] | [INFO] [stdout] 843 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Penny` [INFO] [stdout] --> src/main.rs:851:2 [INFO] [stdout] | [INFO] [stdout] 851 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:849:10 [INFO] [stdout] | [INFO] [stdout] 849 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Nickel` [INFO] [stdout] --> src/main.rs:852:2 [INFO] [stdout] | [INFO] [stdout] 852 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:849:10 [INFO] [stdout] | [INFO] [stdout] 849 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Dime` [INFO] [stdout] --> src/main.rs:853:2 [INFO] [stdout] | [INFO] [stdout] 853 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:849:10 [INFO] [stdout] | [INFO] [stdout] 849 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `formatted` [INFO] [stdout] --> src/main.rs:896:5 [INFO] [stdout] | [INFO] [stdout] 896 | fn formatted(&self){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/main.rs:903:8 [INFO] [stdout] | [INFO] [stdout] 903 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:900:10 [INFO] [stdout] | [INFO] [stdout] 900 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/main.rs:903:16 [INFO] [stdout] | [INFO] [stdout] 903 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:900:10 [INFO] [stdout] | [INFO] [stdout] 900 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sign_in_count` [INFO] [stdout] --> src/main.rs:924:2 [INFO] [stdout] | [INFO] [stdout] 924 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:920:10 [INFO] [stdout] | [INFO] [stdout] 920 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `active` [INFO] [stdout] --> src/main.rs:925:2 [INFO] [stdout] | [INFO] [stdout] 925 | active: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:920:10 [INFO] [stdout] | [INFO] [stdout] 920 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deliberate_panic` [INFO] [stdout] --> src/panic_exc.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn deliberate_panic(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `accident_panic` [INFO] [stdout] --> src/panic_exc.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn accident_panic(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/panic_exc.rs:37:36 [INFO] [stdout] | [INFO] [stdout] 37 | ... panic!(e2); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 37 | panic!("{}", e2); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 37 | std::panic::panic_any(e2); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/panic_exc.rs:43:28 [INFO] [stdout] | [INFO] [stdout] 43 | panic!(e); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 43 | panic!("{}", e); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 43 | std::panic::panic_any(e); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/panic_exc.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 57 | panic!(err); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 57 | panic!("{}", err); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 57 | std::panic::panic_any(err); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/panic_exc.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | panic!(err); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 61 | panic!("{}", err); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 61 | std::panic::panic_any(err); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/panic_exc.rs:73:20 [INFO] [stdout] | [INFO] [stdout] 73 | panic!(err); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 73 | panic!("{}", err); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 73 | std::panic::panic_any(err); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/panic_exc.rs:84:30 [INFO] [stdout] | [INFO] [stdout] 84 | Err(e) => panic!(e) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 84 | Err(e) => panic!("{}", e) [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 84 | Err(e) => std::panic::panic_any(e) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `idPrint` should have a snake case name [INFO] [stdout] --> src/main.rs:930:5 [INFO] [stdout] | [INFO] [stdout] 930 | fn idPrint(&self){ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `id_print` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getMaxSigninAttempts` should have a snake case name [INFO] [stdout] --> src/main.rs:937:5 [INFO] [stdout] | [INFO] [stdout] 937 | fn getMaxSigninAttempts()->u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_max_signin_attempts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.08s [INFO] running `Command { std: "docker" "inspect" "626d2944ccd0ccff58a3f7ac8ad500c940ec5e5d6c87cada8d0a5497b95a47b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "626d2944ccd0ccff58a3f7ac8ad500c940ec5e5d6c87cada8d0a5497b95a47b1", kill_on_drop: false }` [INFO] [stdout] 626d2944ccd0ccff58a3f7ac8ad500c940ec5e5d6c87cada8d0a5497b95a47b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c4be77104c3cf65a11b6f4f943dcd5ad332216d985d01e693441fb2538d8f74 [INFO] running `Command { std: "docker" "start" "-a" "9c4be77104c3cf65a11b6f4f943dcd5ad332216d985d01e693441fb2538d8f74", kill_on_drop: false }` [INFO] [stderr] Compiling variables v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::panic_exc::unrecoverable as Unrec` [INFO] [stdout] --> src/main.rs:550:7 [INFO] [stdout] | [INFO] [stdout] 550 | use crate::panic_exc::unrecoverable as Unrec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:680:4 [INFO] [stdout] | [INFO] [stdout] 680 | if(x.len() > y.len()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 680 - if(x.len() > y.len()){ [INFO] [stdout] 680 + if x.len() > y.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:692:4 [INFO] [stdout] | [INFO] [stdout] 692 | if(x.len() > y.len()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 692 - if(x.len() > y.len()){ [INFO] [stdout] 692 + if x.len() > y.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:774:5 [INFO] [stdout] | [INFO] [stdout] 774 | if(self.is_reply){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 774 - if(self.is_reply){ [INFO] [stdout] 774 + if self.is_reply { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around `for` iterator expression [INFO] [stdout] --> src/main.rs:872:11 [INFO] [stdout] | [INFO] [stdout] 872 | for i in {0..n} { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 872 - for i in {0..n} { [INFO] [stdout] 872 + for i in 0..n { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 51 | let b = [3; 4]; // => b = [3, 3, 3, 3] [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/main.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | let sum = for element in a.iter(){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> src/main.rs:249:7 [INFO] [stdout] | [INFO] [stdout] 249 | let hello = hello_return(&s1); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/main.rs:259:7 [INFO] [stdout] | [INFO] [stdout] 259 | let s1 = String::from("range string"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> src/main.rs:326:10 [INFO] [stdout] | [INFO] [stdout] 326 | let home = StrictIpAddr::V4(127, 0, 0, 1); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `homev6` [INFO] [stdout] --> src/main.rs:327:10 [INFO] [stdout] | [INFO] [stdout] 327 | let homev6 = StrictIpAddr::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_homev6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonum` [INFO] [stdout] --> src/main.rs:348:7 [INFO] [stdout] | [INFO] [stdout] 348 | let nonum: Option = Option::None; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:392:7 [INFO] [stdout] | [INFO] [stdout] 392 | 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: `s` [INFO] [stdout] --> src/main.rs:468:7 [INFO] [stdout] | [INFO] [stdout] 468 | let 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: `z` [INFO] [stdout] --> src/main.rs:627:8 [INFO] [stdout] | [INFO] [stdout] 627 | let z = String::from("I am number FIVE!"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:872:6 [INFO] [stdout] | [INFO] [stdout] 872 | for i in {0..n} { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:971:17 [INFO] [stdout] | [INFO] [stdout] 971 | fn hello_return(s: &str) -> &str{ [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/panic_exc.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | 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: `f` [INFO] [stdout] --> src/panic_exc.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let f = File::open("hello.txt").unwrap_or_else(|err| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panic_exc.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let f = File::open("hello.txt").unwrap_or_else(|err| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:247:7 [INFO] [stdout] | [INFO] [stdout] 247 | let mut s1 = String::from("quick brown"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:526:7 [INFO] [stdout] | [INFO] [stdout] 526 | let mut scores: HashMap<_, _> = teams.iter().zip(points.iter()).collect(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `version` [INFO] [stdout] --> src/main.rs:653:5 [INFO] [stdout] | [INFO] [stdout] 653 | fn version(&self)->i32{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `announce_no_lifetime` [INFO] [stdout] --> src/main.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | fn announce_no_lifetime(&self, ann: &str) -> &str{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/main.rs:755:2 [INFO] [stdout] | [INFO] [stdout] 755 | content: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `username` [INFO] [stdout] --> src/main.rs:761:2 [INFO] [stdout] | [INFO] [stdout] 761 | username: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NewYork` [INFO] [stdout] --> src/main.rs:846:2 [INFO] [stdout] | [INFO] [stdout] 846 | NewYork, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `USState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:843:10 [INFO] [stdout] | [INFO] [stdout] 843 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Penny` [INFO] [stdout] --> src/main.rs:851:2 [INFO] [stdout] | [INFO] [stdout] 851 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:849:10 [INFO] [stdout] | [INFO] [stdout] 849 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Nickel` [INFO] [stdout] --> src/main.rs:852:2 [INFO] [stdout] | [INFO] [stdout] 852 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:849:10 [INFO] [stdout] | [INFO] [stdout] 849 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Dime` [INFO] [stdout] --> src/main.rs:853:2 [INFO] [stdout] | [INFO] [stdout] 853 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:849:10 [INFO] [stdout] | [INFO] [stdout] 849 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `formatted` [INFO] [stdout] --> src/main.rs:896:5 [INFO] [stdout] | [INFO] [stdout] 896 | fn formatted(&self){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/main.rs:903:8 [INFO] [stdout] | [INFO] [stdout] 903 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:900:10 [INFO] [stdout] | [INFO] [stdout] 900 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/main.rs:903:16 [INFO] [stdout] | [INFO] [stdout] 903 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:900:10 [INFO] [stdout] | [INFO] [stdout] 900 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sign_in_count` [INFO] [stdout] --> src/main.rs:924:2 [INFO] [stdout] | [INFO] [stdout] 924 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:920:10 [INFO] [stdout] | [INFO] [stdout] 920 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `active` [INFO] [stdout] --> src/main.rs:925:2 [INFO] [stdout] | [INFO] [stdout] 925 | active: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:920:10 [INFO] [stdout] | [INFO] [stdout] 920 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deliberate_panic` [INFO] [stdout] --> src/panic_exc.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn deliberate_panic(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `accident_panic` [INFO] [stdout] --> src/panic_exc.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn accident_panic(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/panic_exc.rs:37:36 [INFO] [stdout] | [INFO] [stdout] 37 | ... panic!(e2); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 37 | panic!("{}", e2); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 37 | std::panic::panic_any(e2); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/panic_exc.rs:43:28 [INFO] [stdout] | [INFO] [stdout] 43 | panic!(e); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 43 | panic!("{}", e); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 43 | std::panic::panic_any(e); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/panic_exc.rs:57:28 [INFO] [stdout] | [INFO] [stdout] 57 | panic!(err); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 57 | panic!("{}", err); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 57 | std::panic::panic_any(err); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/panic_exc.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | panic!(err); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 61 | panic!("{}", err); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 61 | std::panic::panic_any(err); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/panic_exc.rs:73:20 [INFO] [stdout] | [INFO] [stdout] 73 | panic!(err); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 73 | panic!("{}", err); [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 73 | std::panic::panic_any(err); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/panic_exc.rs:84:30 [INFO] [stdout] | [INFO] [stdout] 84 | Err(e) => panic!(e) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 84 | Err(e) => panic!("{}", e) [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 84 | Err(e) => std::panic::panic_any(e) [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `idPrint` should have a snake case name [INFO] [stdout] --> src/main.rs:930:5 [INFO] [stdout] | [INFO] [stdout] 930 | fn idPrint(&self){ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `id_print` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getMaxSigninAttempts` should have a snake case name [INFO] [stdout] --> src/main.rs:937:5 [INFO] [stdout] | [INFO] [stdout] 937 | fn getMaxSigninAttempts()->u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_max_signin_attempts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.16s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/variables-ca4c276fe7fd9867) [INFO] running `Command { std: "docker" "inspect" "9c4be77104c3cf65a11b6f4f943dcd5ad332216d985d01e693441fb2538d8f74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c4be77104c3cf65a11b6f4f943dcd5ad332216d985d01e693441fb2538d8f74", kill_on_drop: false }` [INFO] [stdout] 9c4be77104c3cf65a11b6f4f943dcd5ad332216d985d01e693441fb2538d8f74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 374178ca240408ade3b35783e29e4f97ff13eb526bc644cff84e8eaaf76e39f9 [INFO] running `Command { std: "docker" "start" "-a" "374178ca240408ade3b35783e29e4f97ff13eb526bc644cff84e8eaaf76e39f9", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `std::error::Error` [INFO] [stderr] --> src/main.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::panic_exc::unrecoverable as Unrec` [INFO] [stderr] --> src/main.rs:550:7 [INFO] [stderr] | [INFO] [stderr] 550 | use crate::panic_exc::unrecoverable as Unrec; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/main.rs:680:4 [INFO] [stderr] | [INFO] [stderr] 680 | if(x.len() > y.len()){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 680 - if(x.len() > y.len()){ [INFO] [stderr] 680 + if x.len() > y.len() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/main.rs:692:4 [INFO] [stderr] | [INFO] [stderr] 692 | if(x.len() > y.len()){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 692 - if(x.len() > y.len()){ [INFO] [stderr] 692 + if x.len() > y.len() { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/main.rs:774:5 [INFO] [stderr] | [INFO] [stderr] 774 | if(self.is_reply){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 774 - if(self.is_reply){ [INFO] [stderr] 774 + if self.is_reply { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around `for` iterator expression [INFO] [stderr] --> src/main.rs:872:11 [INFO] [stderr] | [INFO] [stderr] 872 | for i in {0..n} { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_braces)]` on by default [INFO] [stderr] help: remove these braces [INFO] [stderr] | [INFO] [stderr] 872 - for i in {0..n} { [INFO] [stderr] 872 + for i in 0..n { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/main.rs:51:6 [INFO] [stderr] | [INFO] [stderr] 51 | let b = [3; 4]; // => b = [3, 3, 3, 3] [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sum` [INFO] [stderr] --> src/main.rs:52:6 [INFO] [stderr] | [INFO] [stderr] 52 | let sum = for element in a.iter(){ [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hello` [INFO] [stderr] --> src/main.rs:249:7 [INFO] [stderr] | [INFO] [stderr] 249 | let hello = hello_return(&s1); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s1` [INFO] [stderr] --> src/main.rs:259:7 [INFO] [stderr] | [INFO] [stderr] 259 | let s1 = String::from("range string"); [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `home` [INFO] [stderr] --> src/main.rs:326:10 [INFO] [stderr] | [INFO] [stderr] 326 | let home = StrictIpAddr::V4(127, 0, 0, 1); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `homev6` [INFO] [stderr] --> src/main.rs:327:10 [INFO] [stderr] | [INFO] [stderr] 327 | let homev6 = StrictIpAddr::V6(String::from("::1")); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_homev6` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `nonum` [INFO] [stderr] --> src/main.rs:348:7 [INFO] [stderr] | [INFO] [stderr] 348 | let nonum: Option = Option::None; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nonum` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/main.rs:392:7 [INFO] [stderr] | [INFO] [stderr] 392 | 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: `s` [INFO] [stderr] --> src/main.rs:468:7 [INFO] [stderr] | [INFO] [stderr] 468 | let s = String::new(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `z` [INFO] [stderr] --> src/main.rs:627:8 [INFO] [stderr] | [INFO] [stderr] 627 | let z = String::from("I am number FIVE!"); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/main.rs:872:6 [INFO] [stderr] | [INFO] [stderr] 872 | for i in {0..n} { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/main.rs:971:17 [INFO] [stderr] | [INFO] [stderr] 971 | fn hello_return(s: &str) -> &str{ [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/panic_exc.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | let f = match f{ [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/panic_exc.rs:52:13 [INFO] [stderr] | [INFO] [stderr] 52 | let f = File::open("hello.txt").unwrap_or_else(|err| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/panic_exc.rs:67:13 [INFO] [stderr] | [INFO] [stderr] 67 | let f = File::open("hello.txt").unwrap_or_else(|err| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:247:7 [INFO] [stderr] | [INFO] [stderr] 247 | let mut s1 = String::from("quick brown"); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:526:7 [INFO] [stderr] | [INFO] [stderr] 526 | let mut scores: HashMap<_, _> = teams.iter().zip(points.iter()).collect(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `version` [INFO] [stderr] --> src/main.rs:653:5 [INFO] [stderr] | [INFO] [stderr] 653 | fn version(&self)->i32{ [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `announce_no_lifetime` [INFO] [stderr] --> src/main.rs:668:5 [INFO] [stderr] | [INFO] [stderr] 668 | fn announce_no_lifetime(&self, ann: &str) -> &str{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `content` [INFO] [stderr] --> src/main.rs:755:2 [INFO] [stderr] | [INFO] [stderr] 755 | content: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `username` [INFO] [stderr] --> src/main.rs:761:2 [INFO] [stderr] | [INFO] [stderr] 761 | username: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `NewYork` [INFO] [stderr] --> src/main.rs:846:2 [INFO] [stderr] | [INFO] [stderr] 846 | NewYork, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `USState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:843:10 [INFO] [stderr] | [INFO] [stderr] 843 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Penny` [INFO] [stderr] --> src/main.rs:851:2 [INFO] [stderr] | [INFO] [stderr] 851 | Penny, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:849:10 [INFO] [stderr] | [INFO] [stderr] 849 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Nickel` [INFO] [stderr] --> src/main.rs:852:2 [INFO] [stderr] | [INFO] [stderr] 852 | Nickel, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:849:10 [INFO] [stderr] | [INFO] [stderr] 849 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Dime` [INFO] [stderr] --> src/main.rs:853:2 [INFO] [stderr] | [INFO] [stderr] 853 | Dime, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:849:10 [INFO] [stderr] | [INFO] [stderr] 849 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `formatted` [INFO] [stderr] --> src/main.rs:896:5 [INFO] [stderr] | [INFO] [stderr] 896 | fn formatted(&self){ [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `x` [INFO] [stderr] --> src/main.rs:903:8 [INFO] [stderr] | [INFO] [stderr] 903 | Move {x: i32, y: i32}, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:900:10 [INFO] [stderr] | [INFO] [stderr] 900 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `y` [INFO] [stderr] --> src/main.rs:903:16 [INFO] [stderr] | [INFO] [stderr] 903 | Move {x: i32, y: i32}, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:900:10 [INFO] [stderr] | [INFO] [stderr] 900 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `sign_in_count` [INFO] [stderr] --> src/main.rs:924:2 [INFO] [stderr] | [INFO] [stderr] 924 | sign_in_count: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:920:10 [INFO] [stderr] | [INFO] [stderr] 920 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `active` [INFO] [stderr] --> src/main.rs:925:2 [INFO] [stderr] | [INFO] [stderr] 925 | active: bool, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/main.rs:920:10 [INFO] [stderr] | [INFO] [stderr] 920 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `deliberate_panic` [INFO] [stderr] --> src/panic_exc.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn deliberate_panic(){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `accident_panic` [INFO] [stderr] --> src/panic_exc.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub fn accident_panic(){ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/panic_exc.rs:37:36 [INFO] [stderr] | [INFO] [stderr] 37 | ... panic!(e2); [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 37 | panic!("{}", e2); [INFO] [stderr] | +++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 37 | std::panic::panic_any(e2); [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/panic_exc.rs:43:28 [INFO] [stderr] | [INFO] [stderr] 43 | panic!(e); [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 43 | panic!("{}", e); [INFO] [stderr] | +++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 43 | std::panic::panic_any(e); [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/panic_exc.rs:57:28 [INFO] [stderr] | [INFO] [stderr] 57 | panic!(err); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 57 | panic!("{}", err); [INFO] [stderr] | +++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 57 | std::panic::panic_any(err); [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/panic_exc.rs:61:20 [INFO] [stderr] | [INFO] [stderr] 61 | panic!(err); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 61 | panic!("{}", err); [INFO] [stderr] | +++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 61 | std::panic::panic_any(err); [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/panic_exc.rs:73:20 [INFO] [stderr] | [INFO] [stderr] 73 | panic!(err); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 73 | panic!("{}", err); [INFO] [stderr] | +++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 73 | std::panic::panic_any(err); [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/panic_exc.rs:84:30 [INFO] [stderr] | [INFO] [stderr] 84 | Err(e) => panic!(e) [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: add a "{}" format string to Display the message [INFO] [stderr] | [INFO] [stderr] 84 | Err(e) => panic!("{}", e) [INFO] [stderr] | +++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 84 | Err(e) => std::panic::panic_any(e) [INFO] [stderr] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] warning: method `idPrint` should have a snake case name [INFO] [stderr] --> src/main.rs:930:5 [INFO] [stderr] | [INFO] [stderr] 930 | fn idPrint(&self){ [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `id_print` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: method `getMaxSigninAttempts` should have a snake case name [INFO] [stderr] --> src/main.rs:937:5 [INFO] [stderr] | [INFO] [stderr] 937 | fn getMaxSigninAttempts()->u32{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_max_signin_attempts` [INFO] [stderr] [INFO] [stderr] warning: `variables` (bin "variables" test) generated 46 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 7.98s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/variables-ca4c276fe7fd9867) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "374178ca240408ade3b35783e29e4f97ff13eb526bc644cff84e8eaaf76e39f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "374178ca240408ade3b35783e29e4f97ff13eb526bc644cff84e8eaaf76e39f9", kill_on_drop: false }` [INFO] [stdout] 374178ca240408ade3b35783e29e4f97ff13eb526bc644cff84e8eaaf76e39f9