[INFO] cloning repository https://github.com/sokiGit/PRG2F_Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sokiGit/PRG2F_Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FsokiGit%2FPRG2F_Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FsokiGit%2FPRG2F_Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 46e49def823d423dbe9279b24ba3b6550c4db502 [INFO] checking sokiGit/PRG2F_Rust against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FsokiGit%2FPRG2F_Rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sokiGit/PRG2F_Rust [INFO] finished tweaking git repo https://github.com/sokiGit/PRG2F_Rust [INFO] tweaked toml for git repo https://github.com/sokiGit/PRG2F_Rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sokiGit/PRG2F_Rust on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sokiGit/PRG2F_Rust 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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v2.0.103 [INFO] [stderr] Downloaded libc v0.2.173 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06f4aaee70b9ce6a2a7b647d74f5466bf59586e30f9ba4c6dd82b9b9044717a4 [INFO] running `Command { std: "docker" "start" "-a" "06f4aaee70b9ce6a2a7b647d74f5466bf59586e30f9ba4c6dd82b9b9044717a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06f4aaee70b9ce6a2a7b647d74f5466bf59586e30f9ba4c6dd82b9b9044717a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06f4aaee70b9ce6a2a7b647d74f5466bf59586e30f9ba4c6dd82b9b9044717a4", kill_on_drop: false }` [INFO] [stdout] 06f4aaee70b9ce6a2a7b647d74f5466bf59586e30f9ba4c6dd82b9b9044717a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c90a8bd223938ae3b3bbab5dd709b773d6f1cf5a33557f3a13cf7f88bc39bda3 [INFO] running `Command { std: "docker" "start" "-a" "c90a8bd223938ae3b3bbab5dd709b773d6f1cf5a33557f3a13cf7f88bc39bda3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.173 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking prg_2f_in_rust v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/03_november/lesson_9/string.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let d: String = String::from("Rust"); // The preferred way to create String from &str [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/03_november/lesson_9/string.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let e: String = b.to_owned() + " " + &c; // Have to add string literals to String, b would be moved here, so we have to... [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/03_november/lesson_9/string.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let f: String = b.add(", Meow!"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `age` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let age: i32 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_age` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pi` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let pi: f64 = std::f64::consts::PI; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_true` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let is_true: bool = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_true` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_a` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let big_a: char = 'A'; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_big_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let name: &str = "Joe"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owned_name` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let owned_name: String = String::from("Mama"); // Can also use "Mama".to_owned() or "Mama".to_string() [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_owned_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let a: i8 = 1; // signed 8-bit int (-128 - 127) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let b: i16 = 1; // signed 16-bit int (-32,768 - 32,767) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let c: i32 = 1; // signed 32-bit int (-2,147,483,648 - 2,147,483,647) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let d: i64 = 1; // signed 64-bit int (-9,223,372,036,854,775,808 - 9,223,372,036,854,775,807) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let e: i128 = 1; // signed 128-bit int (-1.7014118346046923173168730371588e+38 - 1.7014118346046923173168730371588e+38 - 1) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_u` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let a_u: u8 = 1; // unsigned 8-bit int (0 - 255) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_a_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_u` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let b_u: u16 = 1; // unsigned 16-bit int (0 - 65,535) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_b_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c_u` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let c_u: u32 = 1; // unsigned 32-bit int (0 - 4,294,967,295) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_c_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d_u` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let d_u: u64 = 1; // unsigned 64-bit int (0 - 18,446,744,073,709,551,615) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_d_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e_u` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let e_u: u128 = 1; // unsigned 128-bit int (0 - 3.4028236692093846346337460743177e+38 - 1) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_e_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let a: f32 = 1.1; // signed 32-bit float [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let b: f64 = 1.1; // signed 64-bit float (default for floats) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_alt` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let a_alt = 1.1f32; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_a_alt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_alt` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let b_alt = 1.1f64; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_b_alt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let a: bool = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let b: bool = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let a: char = 'a'; // 4 bytes in size [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | ... let b: &str = "Hello, World!"; // String Slice / Borrowed String - it's a part of a String stored in the compi... [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | ... let c: String = "Hello, World!".to_owned(); // "Hello, World!" is actually &str and needs to be converted to String. This c... [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let d: String = String::from("Hello, World!"); // Also possible, usually preferred for string literals. [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SeedableRng` [INFO] [stdout] --> src/01_september/lesson_4/conditions.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::{Rng, SeedableRng}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/01_september/lesson_4/conditions.rs:108:88 [INFO] [stdout] | [INFO] [stdout] 108 | ... println!("Your final price is {}$. That {} into your budget.", final_price, if (final_price > budget) { "doesn't fit" } else { "fit... [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 108 - println!("Your final price is {}$. That {} into your budget.", final_price, if (final_price > budget) { "doesn't fit" } else { "fits" }); [INFO] [stdout] 108 + println!("Your final price is {}$. That {} into your budget.", final_price, if final_price > budget { "doesn't fit" } else { "fits" }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/02_october/lesson_6/while_cv.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `age` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let age: i32 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_age` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pi` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let pi: f64 = std::f64::consts::PI; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_true` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let is_true: bool = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_true` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_a` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let big_a: char = 'A'; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_big_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let name: &str = "Joe"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owned_name` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let owned_name: String = String::from("Mama"); // Can also use "Mama".to_owned() or "Mama".to_string() [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_owned_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_interval` [INFO] [stdout] --> src/01_september/lesson_3/operace.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let in_interval : bool = a > min && a < max; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_not_valid` [INFO] [stdout] --> src/01_september/lesson_3/operace.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let is_not_valid: bool = !is_valid; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_not_valid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let a: i8 = 1; // signed 8-bit int (-128 - 127) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let b: i16 = 1; // signed 16-bit int (-32,768 - 32,767) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let c: i32 = 1; // signed 32-bit int (-2,147,483,648 - 2,147,483,647) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let d: i64 = 1; // signed 64-bit int (-9,223,372,036,854,775,808 - 9,223,372,036,854,775,807) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let e: i128 = 1; // signed 128-bit int (-1.7014118346046923173168730371588e+38 - 1.7014118346046923173168730371588e+38 - 1) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_u` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let a_u: u8 = 1; // unsigned 8-bit int (0 - 255) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_a_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_u` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let b_u: u16 = 1; // unsigned 16-bit int (0 - 65,535) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_b_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c_u` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let c_u: u32 = 1; // unsigned 32-bit int (0 - 4,294,967,295) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_c_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d_u` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let d_u: u64 = 1; // unsigned 64-bit int (0 - 18,446,744,073,709,551,615) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_d_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e_u` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let e_u: u128 = 1; // unsigned 128-bit int (0 - 3.4028236692093846346337460743177e+38 - 1) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_e_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let a: f32 = 1.1; // signed 32-bit float [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let b: f64 = 1.1; // signed 64-bit float (default for floats) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_alt` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let a_alt = 1.1f32; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_a_alt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_alt` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let b_alt = 1.1f64; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_b_alt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let a: bool = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let b: bool = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let a: char = 'a'; // 4 bytes in size [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | ... let b: &str = "Hello, World!"; // String Slice / Borrowed String - it's a part of a String stored in the compi... [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | ... let c: String = "Hello, World!".to_owned(); // "Hello, World!" is actually &str and needs to be converted to String. This c... [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/01_september/lesson_2/variables.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let d: String = String::from("Hello, World!"); // Also possible, usually preferred for string literals. [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `age` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let age: i32 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_age` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pi` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let pi: f64 = std::f64::consts::PI; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_true` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let is_true: bool = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_true` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_a` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let big_a: char = 'A'; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_big_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let name: &str = "Joe"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owned_name` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let owned_name: String = String::from("Mama"); // Can also use "Mama".to_owned() or "Mama".to_string() [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_owned_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SeedableRng` [INFO] [stdout] --> src/01_september/lesson_4/conditions.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::{Rng, SeedableRng}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/01_september/lesson_4/conditions.rs:108:88 [INFO] [stdout] | [INFO] [stdout] 108 | ... println!("Your final price is {}$. That {} into your budget.", final_price, if (final_price > budget) { "doesn't fit" } else { "fit... [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 108 - println!("Your final price is {}$. That {} into your budget.", final_price, if (final_price > budget) { "doesn't fit" } else { "fits" }); [INFO] [stdout] 108 + println!("Your final price is {}$. That {} into your budget.", final_price, if final_price > budget { "doesn't fit" } else { "fits" }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_interval` [INFO] [stdout] --> src/01_september/lesson_3/operace.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let in_interval : bool = a > min && a < max; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_not_valid` [INFO] [stdout] --> src/01_september/lesson_3/operace.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let is_not_valid: bool = !is_valid; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_not_valid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/02_october/lesson_6/while_cv.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{stdin, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/03_november/lesson_9/string.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let d: String = String::from("Rust"); // The preferred way to create String from &str [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/03_november/lesson_9/string.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let e: String = b.to_owned() + " " + &c; // Have to add string literals to String, b would be moved here, so we have to... [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/03_november/lesson_9/string.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let f: String = b.add(", Meow!"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `age` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let age: i32 = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_age` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pi` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let pi: f64 = std::f64::consts::PI; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_pi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_true` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let is_true: bool = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_true` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_a` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let big_a: char = 'A'; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_big_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let name: &str = "Joe"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `owned_name` [INFO] [stdout] --> src/01_september/lesson_3/variables_cv.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let owned_name: String = String::from("Mama"); // Can also use "Mama".to_owned() or "Mama".to_string() [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_owned_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.27s [INFO] running `Command { std: "docker" "inspect" "c90a8bd223938ae3b3bbab5dd709b773d6f1cf5a33557f3a13cf7f88bc39bda3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c90a8bd223938ae3b3bbab5dd709b773d6f1cf5a33557f3a13cf7f88bc39bda3", kill_on_drop: false }` [INFO] [stdout] c90a8bd223938ae3b3bbab5dd709b773d6f1cf5a33557f3a13cf7f88bc39bda3