[INFO] cloning repository https://github.com/JustUzair/rust-basics [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JustUzair/rust-basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJustUzair%2Frust-basics", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJustUzair%2Frust-basics'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 515d8195d26e16a318ff7991755f1aadb68d5722 [INFO] checking JustUzair/rust-basics against try#21cad1f647cfd05a566220f933edd88a53e50bcf for pr-129249-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJustUzair%2Frust-basics" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JustUzair/rust-basics [INFO] finished tweaking git repo https://github.com/JustUzair/rust-basics [INFO] tweaked toml for git repo https://github.com/JustUzair/rust-basics written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JustUzair/rust-basics on toolchain 21cad1f647cfd05a566220f933edd88a53e50bcf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+21cad1f647cfd05a566220f933edd88a53e50bcf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JustUzair/rust-basics 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" "+21cad1f647cfd05a566220f933edd88a53e50bcf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] b97470e5f896d85872df3f912da7f97f52d8666bd2bd6e298c083376905f03ce [INFO] running `Command { std: "docker" "start" "b97470e5f896d85872df3f912da7f97f52d8666bd2bd6e298c083376905f03ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b97470e5f896d85872df3f912da7f97f52d8666bd2bd6e298c083376905f03ce" "/opt/rustwide/cargo-home/bin/cargo" "+21cad1f647cfd05a566220f933edd88a53e50bcf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b97470e5f896d85872df3f912da7f97f52d8666bd2bd6e298c083376905f03ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b97470e5f896d85872df3f912da7f97f52d8666bd2bd6e298c083376905f03ce" "/opt/rustwide/cargo-home/bin/cargo" "+21cad1f647cfd05a566220f933edd88a53e50bcf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking basics v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> src/main.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> src/main.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut this_is_main_block = 10; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut this_is_main_block = 10; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut this_is_nested_block = 20; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut this_is_nested_block = 20; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut x = 5; // x is Mutable - ✅ [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let mut msg; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:354:9 [INFO] [stdout] | [INFO] [stdout] 354 | let mut my_vector_two = vec![12, 23, 58]; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:477:9 [INFO] [stdout] | [INFO] [stdout] 477 | let mut vector = vec![12, 23, 45]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `this_is_immutable_variable` is assigned to, but never used [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut this_is_immutable_variable = 2; // Mutable - ✅ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_this_is_immutable_variable` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut x = 5; // x is Mutable - ✅ [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let mut msg; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this_is_main_block` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut this_is_main_block = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_is_main_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:354:9 [INFO] [stdout] | [INFO] [stdout] 354 | let mut my_vector_two = vec![12, 23, 58]; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this_is_nested_block` [INFO] [stdout] --> src/main.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut this_is_nested_block = 20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_is_nested_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:477:9 [INFO] [stdout] | [INFO] [stdout] 477 | let mut vector = vec![12, 23, 45]; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let x = x; // x is Immutable - 🚧 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `this_is_immutable_variable` is assigned to, but never used [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut this_is_immutable_variable = 2; // Mutable - ✅ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_this_is_immutable_variable` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let value = "YO! What's Up?"; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this_is_main_block` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut this_is_main_block = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_is_main_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf2` [INFO] [stdout] --> src/main.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | let buf2 = [1, 2, 4]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_buf2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this_is_nested_block` [INFO] [stdout] --> src/main.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut this_is_nested_block = 20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_is_nested_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `msg` is assigned to, but never used [INFO] [stdout] --> src/main.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let mut msg; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_msg` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg2` [INFO] [stdout] --> src/main.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let msg2 = if num == 5 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_msg2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let x = x; // x is Immutable - 🚧 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let value = "YO! What's Up?"; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf2` [INFO] [stdout] --> src/main.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | let buf2 = [1, 2, 4]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_buf2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/main.rs:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | for num in [25, 12, 5].iter() { // .iter() iterates over the array [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `msg` is assigned to, but never used [INFO] [stdout] --> src/main.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let mut msg; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_msg` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_slice` [INFO] [stdout] --> src/main.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | let string_slice = "This is slice"; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg2` [INFO] [stdout] --> src/main.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let msg2 = if num == 5 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_msg2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `byte_string` [INFO] [stdout] --> src/main.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | let byte_string = string_type.bytes(); // returns byte array [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_byte_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/main.rs:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | for num in [25, 12, 5].iter() { // .iter() iterates over the array [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/main.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 271 | let s3 = s2.clone(); // s2 is used because currently "s2" is the owner of the string from "s1" 📧 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_slice` [INFO] [stdout] --> src/main.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | let string_slice = "This is slice"; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `byte_string` [INFO] [stdout] --> src/main.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | let byte_string = string_type.bytes(); // returns byte array [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_byte_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/main.rs:271:9 [INFO] [stdout] | [INFO] [stdout] 271 | let s3 = s2.clone(); // s2 is used because currently "s2" is the owner of the string from "s1" 📧 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:350:9 [INFO] [stdout] | [INFO] [stdout] 350 | let x = my_vector.pop(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_vector_two` [INFO] [stdout] --> src/main.rs:354:9 [INFO] [stdout] | [INFO] [stdout] 354 | let mut my_vector_two = vec![12, 23, 58]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_vector_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hifi` [INFO] [stdout] --> src/main.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | let hifi = my_hashmap.remove("val").unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hifi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/main.rs:389:9 [INFO] [stdout] | [INFO] [stdout] 389 | let item = Empty; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:350:9 [INFO] [stdout] | [INFO] [stdout] 350 | let x = my_vector.pop(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/main.rs:390:9 [INFO] [stdout] | [INFO] [stdout] 390 | let item2 = Things(String::from("Can"), 32); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_vector_two` [INFO] [stdout] --> src/main.rs:354:9 [INFO] [stdout] | [INFO] [stdout] 354 | let mut my_vector_two = vec![12, 23, 58]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_vector_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item3` [INFO] [stdout] --> src/main.rs:391:9 [INFO] [stdout] | [INFO] [stdout] 391 | let item3 = Place { x: 25, y: 10 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hifi` [INFO] [stdout] --> src/main.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | let hifi = my_hashmap.remove("val").unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_hifi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:447:12 [INFO] [stdout] | [INFO] [stdout] 447 | Ok(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/main.rs:389:9 [INFO] [stdout] | [INFO] [stdout] 389 | let item = Empty; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/main.rs:390:9 [INFO] [stdout] | [INFO] [stdout] 390 | let item2 = Things(String::from("Can"), 32); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item3` [INFO] [stdout] --> src/main.rs:391:9 [INFO] [stdout] | [INFO] [stdout] 391 | let item3 = Place { x: 25, y: 10 }; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:447:12 [INFO] [stdout] | [INFO] [stdout] 447 | Ok(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:451:13 [INFO] [stdout] | [INFO] [stdout] 451 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `this_is_immutable_variable` is never read [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | this_is_immutable_variable = 10; // this is valid [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `msg` is never read [INFO] [stdout] --> src/main.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | msg = "meh!!" [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `msg` is never read [INFO] [stdout] --> src/main.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | msg = "thirty-two" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `msg` is never read [INFO] [stdout] --> src/main.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | msg = "five"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:451:13 [INFO] [stdout] | [INFO] [stdout] 451 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `this_is_immutable_variable` is never read [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | this_is_immutable_variable = 10; // this is valid [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `msg` is never read [INFO] [stdout] --> src/main.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | msg = "meh!!" [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `msg` is never read [INFO] [stdout] --> src/main.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | msg = "thirty-two" [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `msg` is never read [INFO] [stdout] --> src/main.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | msg = "five"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WARP_FACTOR` is never used [INFO] [stdout] --> src/main.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | const WARP_FACTOR: f64 = 9.9; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `this_is_a_function` is never used [INFO] [stdout] --> src/main.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | fn this_is_a_function() {} // Simple Function [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `this_is_parameterized` is never used [INFO] [stdout] --> src/main.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn this_is_parameterized(length: f64, breadth: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/main.rs:294:8 [INFO] [stdout] | [INFO] [stdout] 294 | fn test(s: &mut String, s2: &mut String) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Sound` is never used [INFO] [stdout] --> src/main.rs:332:11 [INFO] [stdout] | [INFO] [stdout] 332 | trait Sound { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Color` is never used [INFO] [stdout] --> src/main.rs:374:10 [INFO] [stdout] | [INFO] [stdout] 374 | enum Color { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/main.rs:383:16 [INFO] [stdout] | [INFO] [stdout] 383 | Things(String, i32), [INFO] [stdout] | ------ ^^^^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 383 - Things(String, i32), [INFO] [stdout] 383 + Things((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/main.rs:384:17 [INFO] [stdout] | [INFO] [stdout] 384 | Place { x: i32, y: i32 }, [INFO] [stdout] | ----- ^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `display` is never used [INFO] [stdout] --> src/main.rs:396:12 [INFO] [stdout] | [INFO] [stdout] 395 | impl Dispenser { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 396 | fn display(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:424:5 [INFO] [stdout] | [INFO] [stdout] 424 | File::open("foo"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 424 | let _ = File::open("foo"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:424:5 [INFO] [stdout] | [INFO] [stdout] 424 | File::open("foo"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 424 | let _ = File::open("foo"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.98s [INFO] running `Command { std: "docker" "inspect" "b97470e5f896d85872df3f912da7f97f52d8666bd2bd6e298c083376905f03ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b97470e5f896d85872df3f912da7f97f52d8666bd2bd6e298c083376905f03ce", kill_on_drop: false }` [INFO] [stdout] b97470e5f896d85872df3f912da7f97f52d8666bd2bd6e298c083376905f03ce