[INFO] cloning repository https://github.com/alexanderwalford-official/Rust-Mathematics [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alexanderwalford-official/Rust-Mathematics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexanderwalford-official%2FRust-Mathematics", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexanderwalford-official%2FRust-Mathematics'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1c28362414d2152c95acbe69b6346ed63302aba3 [INFO] checking alexanderwalford-official/Rust-Mathematics against master#a932eb36f8adf6c8cdfc450f063943da3112d621 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falexanderwalford-official%2FRust-Mathematics" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alexanderwalford-official/Rust-Mathematics on toolchain a932eb36f8adf6c8cdfc450f063943da3112d621 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alexanderwalford-official/Rust-Mathematics [INFO] finished tweaking git repo https://github.com/alexanderwalford-official/Rust-Mathematics [INFO] tweaked toml for git repo https://github.com/alexanderwalford-official/Rust-Mathematics written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/alexanderwalford-official/Rust-Mathematics 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" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 628016a6d50379272f8afb0a91d2490eef8085655ad2b988841dff73f5e8ceae [INFO] running `Command { std: "docker" "start" "-a" "628016a6d50379272f8afb0a91d2490eef8085655ad2b988841dff73f5e8ceae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "628016a6d50379272f8afb0a91d2490eef8085655ad2b988841dff73f5e8ceae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "628016a6d50379272f8afb0a91d2490eef8085655ad2b988841dff73f5e8ceae", kill_on_drop: false }` [INFO] [stdout] 628016a6d50379272f8afb0a91d2490eef8085655ad2b988841dff73f5e8ceae [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ad3c8f4ed9f8b7f3ed2a37797eaa3657bbebc0855c20f55f1135292dee01f028 [INFO] running `Command { std: "docker" "start" "-a" "ad3c8f4ed9f8b7f3ed2a37797eaa3657bbebc0855c20f55f1135292dee01f028", kill_on_drop: false }` [INFO] [stderr] Checking Rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::Pointer` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Pointer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:375:8 [INFO] [stdout] | [INFO] [stdout] 375 | if (arr[arr.len()] < 400000 && cf != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 375 - if (arr[arr.len()] < 400000 && cf != 0) { [INFO] [stdout] 375 + if arr[arr.len()] < 400000 && cf != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:420:8 [INFO] [stdout] | [INFO] [stdout] 420 | if (answer[4] != answer[0]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 420 - if (answer[4] != answer[0]) { [INFO] [stdout] 420 + if answer[4] != answer[0] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_value` is assigned to, but never used [INFO] [stdout] --> src/main.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let mut last_value = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last_value` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_value` is never read [INFO] [stdout] --> src/main.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | last_value = i; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let mut a_x: [i64; 12] = [42, 36, 93, 23, 46, 89, 30, 42, 74, 35, 26, 42]; [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: function `shapes` is never used [INFO] [stdout] --> src/main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn shapes () { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `averages` is never used [INFO] [stdout] --> src/main.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn averages () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `i_counter` is never used [INFO] [stdout] --> src/main.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | static mut i_counter: i64 = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `i_answer` is never used [INFO] [stdout] --> src/main.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 188 | static mut i_answer: [i64; 20] = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; // supports up to 20 factorials [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `i_OriginalNum` is never used [INFO] [stdout] --> src/main.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | static mut i_OriginalNum: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorials` is never used [INFO] [stdout] --> src/main.rs:191:4 [INFO] [stdout] | [INFO] [stdout] 191 | fn factorials (input: f64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sqrt` is never used [INFO] [stdout] --> src/main.rs:231:4 [INFO] [stdout] | [INFO] [stdout] 231 | fn sqrt () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ratios` is never used [INFO] [stdout] --> src/main.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn ratios () { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `i_problem1_counter` is never used [INFO] [stdout] --> src/main.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 337 | static mut i_problem1_counter: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `i_problem1_answer` is never used [INFO] [stdout] --> src/main.rs:338:12 [INFO] [stdout] | [INFO] [stdout] 338 | static mut i_problem1_answer: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `problem_1` is never used [INFO] [stdout] --> src/main.rs:340:4 [INFO] [stdout] | [INFO] [stdout] 340 | fn problem_1 () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `startingnum` is never used [INFO] [stdout] --> src/main.rs:366:8 [INFO] [stdout] | [INFO] [stdout] 366 | static startingnum: i64 = 1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `problem_2` is never used [INFO] [stdout] --> src/main.rs:368:4 [INFO] [stdout] | [INFO] [stdout] 368 | fn problem_2 (mut cf: usize, mut arr: [i64; 100]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `o` is never used [INFO] [stdout] --> src/main.rs:401:7 [INFO] [stdout] | [INFO] [stdout] 401 | const o: [i64; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `problem_3` is never used [INFO] [stdout] --> src/main.rs:403:4 [INFO] [stdout] | [INFO] [stdout] 403 | fn problem_3 (num: [i64; 5]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `i_counter` should have an upper case name [INFO] [stdout] --> src/main.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | static mut i_counter: i64 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `I_COUNTER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `i_answer` should have an upper case name [INFO] [stdout] --> src/main.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 188 | static mut i_answer: [i64; 20] = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; // supports up to 20 factorials [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `I_ANSWER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `i_OriginalNum` should have an upper case name [INFO] [stdout] --> src/main.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | static mut i_OriginalNum: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `I_ORIGINAL_NUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:213:54 [INFO] [stdout] | [INFO] [stdout] 213 | println!("Recorded factorials of {} : ", i_OriginalNum); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:214:30 [INFO] [stdout] | [INFO] [stdout] 214 | println!("{:?}", i_answer); [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Pointer` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Pointer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:375:8 [INFO] [stdout] | [INFO] [stdout] 375 | if (arr[arr.len()] < 400000 && cf != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 375 - if (arr[arr.len()] < 400000 && cf != 0) { [INFO] [stdout] 375 + if arr[arr.len()] < 400000 && cf != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:420:8 [INFO] [stdout] | [INFO] [stdout] 420 | if (answer[4] != answer[0]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 420 - if (answer[4] != answer[0]) { [INFO] [stdout] 420 + if answer[4] != answer[0] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:239:5 [INFO] [stdout] | [INFO] [stdout] 239 | io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 239 | let _ = io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:247:5 [INFO] [stdout] | [INFO] [stdout] 247 | io::stdin().read_line(&mut input2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 247 | let _ = io::stdin().read_line(&mut input2); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `i_problem1_counter` should have an upper case name [INFO] [stdout] --> src/main.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 337 | static mut i_problem1_counter: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `I_PROBLEM1_COUNTER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `i_problem1_answer` should have an upper case name [INFO] [stdout] --> src/main.rs:338:12 [INFO] [stdout] | [INFO] [stdout] 338 | static mut i_problem1_answer: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `I_PROBLEM1_ANSWER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:348:49 [INFO] [stdout] | [INFO] [stdout] 348 | println!("{} X {} = {}", iMultiple, i_problem1_counter, i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:354:88 [INFO] [stdout] | [INFO] [stdout] 354 | println!("The sum of all multiples of {} up to {} is {}", iMultiple, iMax, i_problem1_answer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `startingnum` should have an upper case name [INFO] [stdout] --> src/main.rs:366:8 [INFO] [stdout] | [INFO] [stdout] 366 | static startingnum: i64 = 1; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `STARTINGNUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `o` should have an upper case name [INFO] [stdout] --> src/main.rs:401:7 [INFO] [stdout] | [INFO] [stdout] 401 | const o: [i64; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `O` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_value` is assigned to, but never used [INFO] [stdout] --> src/main.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let mut last_value = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last_value` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_value` is never read [INFO] [stdout] --> src/main.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | last_value = i; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let mut a_x: [i64; 12] = [42, 36, 93, 23, 46, 89, 30, 42, 74, 35, 26, 42]; [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: function `shapes` is never used [INFO] [stdout] --> src/main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn shapes () { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `averages` is never used [INFO] [stdout] --> src/main.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn averages () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `i_counter` is never used [INFO] [stdout] --> src/main.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | static mut i_counter: i64 = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `i_answer` is never used [INFO] [stdout] --> src/main.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 188 | static mut i_answer: [i64; 20] = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; // supports up to 20 factorials [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `i_OriginalNum` is never used [INFO] [stdout] --> src/main.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | static mut i_OriginalNum: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorials` is never used [INFO] [stdout] --> src/main.rs:191:4 [INFO] [stdout] | [INFO] [stdout] 191 | fn factorials (input: f64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sqrt` is never used [INFO] [stdout] --> src/main.rs:231:4 [INFO] [stdout] | [INFO] [stdout] 231 | fn sqrt () { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ratios` is never used [INFO] [stdout] --> src/main.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn ratios () { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `i_problem1_counter` is never used [INFO] [stdout] --> src/main.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 337 | static mut i_problem1_counter: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `i_problem1_answer` is never used [INFO] [stdout] --> src/main.rs:338:12 [INFO] [stdout] | [INFO] [stdout] 338 | static mut i_problem1_answer: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `problem_1` is never used [INFO] [stdout] --> src/main.rs:340:4 [INFO] [stdout] | [INFO] [stdout] 340 | fn problem_1 () { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `startingnum` is never used [INFO] [stdout] --> src/main.rs:366:8 [INFO] [stdout] | [INFO] [stdout] 366 | static startingnum: i64 = 1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `problem_2` is never used [INFO] [stdout] --> src/main.rs:368:4 [INFO] [stdout] | [INFO] [stdout] 368 | fn problem_2 (mut cf: usize, mut arr: [i64; 100]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `o` is never used [INFO] [stdout] --> src/main.rs:401:7 [INFO] [stdout] | [INFO] [stdout] 401 | const o: [i64; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `problem_3` is never used [INFO] [stdout] --> src/main.rs:403:4 [INFO] [stdout] | [INFO] [stdout] 403 | fn problem_3 (num: [i64; 5]) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `i_counter` should have an upper case name [INFO] [stdout] --> src/main.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | static mut i_counter: i64 = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `I_COUNTER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `i_answer` should have an upper case name [INFO] [stdout] --> src/main.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 188 | static mut i_answer: [i64; 20] = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; // supports up to 20 factorials [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `I_ANSWER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `i_OriginalNum` should have an upper case name [INFO] [stdout] --> src/main.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | static mut i_OriginalNum: f64 = 0.0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `I_ORIGINAL_NUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:213:54 [INFO] [stdout] | [INFO] [stdout] 213 | println!("Recorded factorials of {} : ", i_OriginalNum); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:214:30 [INFO] [stdout] | [INFO] [stdout] 214 | println!("{:?}", i_answer); [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:239:5 [INFO] [stdout] | [INFO] [stdout] 239 | io::stdin().read_line(&mut input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 239 | let _ = io::stdin().read_line(&mut input); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:247:5 [INFO] [stdout] | [INFO] [stdout] 247 | io::stdin().read_line(&mut input2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 247 | let _ = io::stdin().read_line(&mut input2); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `i_problem1_counter` should have an upper case name [INFO] [stdout] --> src/main.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 337 | static mut i_problem1_counter: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `I_PROBLEM1_COUNTER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `i_problem1_answer` should have an upper case name [INFO] [stdout] --> src/main.rs:338:12 [INFO] [stdout] | [INFO] [stdout] 338 | static mut i_problem1_answer: i64 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `I_PROBLEM1_ANSWER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:348:49 [INFO] [stdout] | [INFO] [stdout] 348 | println!("{} X {} = {}", iMultiple, i_problem1_counter, i); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:354:88 [INFO] [stdout] | [INFO] [stdout] 354 | println!("The sum of all multiples of {} up to {} is {}", iMultiple, iMax, i_problem1_answer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `startingnum` should have an upper case name [INFO] [stdout] --> src/main.rs:366:8 [INFO] [stdout] | [INFO] [stdout] 366 | static startingnum: i64 = 1; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `STARTINGNUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `o` should have an upper case name [INFO] [stdout] --> src/main.rs:401:7 [INFO] [stdout] | [INFO] [stdout] 401 | const o: [i64; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^ help: convert the identifier to upper case (notice the capitalization): `O` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] running `Command { std: "docker" "inspect" "ad3c8f4ed9f8b7f3ed2a37797eaa3657bbebc0855c20f55f1135292dee01f028", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad3c8f4ed9f8b7f3ed2a37797eaa3657bbebc0855c20f55f1135292dee01f028", kill_on_drop: false }` [INFO] [stdout] ad3c8f4ed9f8b7f3ed2a37797eaa3657bbebc0855c20f55f1135292dee01f028