[INFO] cloning repository https://github.com/ShyanJMC/Rust-Source-Code-Tutorial [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ShyanJMC/Rust-Source-Code-Tutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShyanJMC%2FRust-Source-Code-Tutorial", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShyanJMC%2FRust-Source-Code-Tutorial'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cd62ae06b84eafba33029410288589895238e088 [INFO] checking ShyanJMC/Rust-Source-Code-Tutorial against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShyanJMC%2FRust-Source-Code-Tutorial" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ShyanJMC/Rust-Source-Code-Tutorial on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ShyanJMC/Rust-Source-Code-Tutorial [INFO] finished tweaking git repo https://github.com/ShyanJMC/Rust-Source-Code-Tutorial [INFO] tweaked toml for git repo https://github.com/ShyanJMC/Rust-Source-Code-Tutorial written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/ShyanJMC/Rust-Source-Code-Tutorial already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 66c052bb6c4876d125cf9f7556a6436387345dad0f6a187c41a65e71caaccba1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "66c052bb6c4876d125cf9f7556a6436387345dad0f6a187c41a65e71caaccba1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66c052bb6c4876d125cf9f7556a6436387345dad0f6a187c41a65e71caaccba1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66c052bb6c4876d125cf9f7556a6436387345dad0f6a187c41a65e71caaccba1", kill_on_drop: false }` [INFO] [stdout] 66c052bb6c4876d125cf9f7556a6436387345dad0f6a187c41a65e71caaccba1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5c1d230a597555993132d7d2cd67507de3bf7f6d1777e7bc0c0a5bf735eccc1b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5c1d230a597555993132d7d2cd67507de3bf7f6d1777e7bc0c0a5bf735eccc1b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking SourceCodeTutorial v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:719:12 [INFO] [stdout] | [INFO] [stdout] 719 | if (_counter >= 10) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:838:8 [INFO] [stdout] | [INFO] [stdout] 838 | if (s == "This is a value to by passed by reference." ){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:719:12 [INFO] [stdout] | [INFO] [stdout] 719 | if (_counter >= 10) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:938:6 [INFO] [stdout] | [INFO] [stdout] 938 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:1092:6 [INFO] [stdout] | [INFO] [stdout] 1092 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:1109:10 [INFO] [stdout] | [INFO] [stdout] 1109 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:1120:10 [INFO] [stdout] | [INFO] [stdout] 1120 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:1157:6 [INFO] [stdout] | [INFO] [stdout] 1157 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:838:8 [INFO] [stdout] | [INFO] [stdout] 838 | if (s == "This is a value to by passed by reference." ){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::*` [INFO] [stdout] --> src/main.rs:1465:7 [INFO] [stdout] | [INFO] [stdout] 1465 | use std::collections::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/main.rs:1623:9 [INFO] [stdout] | [INFO] [stdout] 1465 | use std::collections::*; [INFO] [stdout] | ------------------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 1623 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:938:6 [INFO] [stdout] | [INFO] [stdout] 938 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:1092:6 [INFO] [stdout] | [INFO] [stdout] 1092 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:1109:10 [INFO] [stdout] | [INFO] [stdout] 1109 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:1120:10 [INFO] [stdout] | [INFO] [stdout] 1120 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:1157:6 [INFO] [stdout] | [INFO] [stdout] 1157 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::*` [INFO] [stdout] --> src/main.rs:1465:7 [INFO] [stdout] | [INFO] [stdout] 1465 | use std::collections::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/main.rs:1623:9 [INFO] [stdout] | [INFO] [stdout] 1465 | use std::collections::*; [INFO] [stdout] | ------------------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 1623 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:1242:9 [INFO] [stdout] | [INFO] [stdout] 1240 | _var_compare2 => println!("Match!."), [INFO] [stdout] | ------------- matches any value [INFO] [stdout] 1241 | // Just remember put " _ " at the end of match, because if you put before another arm will not check it. [INFO] [stdout] 1242 | _ => println!("Don't match with _var_compare."), [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `firstvalue` [INFO] [stdout] --> src/main.rs:1540:9 [INFO] [stdout] | [INFO] [stdout] 1540 | let firstvalue = vvariable.get(0); // Remember. The index start from zero. [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_firstvalue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/main.rs:1562:9 [INFO] [stdout] | [INFO] [stdout] 1562 | let data = vec![ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `s` is never read [INFO] [stdout] --> src/main.rs:1582:9 [INFO] [stdout] | [INFO] [stdout] 1582 | let mut s: String = String::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `s` is never read [INFO] [stdout] --> src/main.rs:1583:5 [INFO] [stdout] | [INFO] [stdout] 1583 | s = "Hello ".to_string(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vfile` [INFO] [stdout] --> src/main.rs:1723:9 [INFO] [stdout] | [INFO] [stdout] 1723 | let vfile = File::open("test1.txt"); // If we don't spcify the absolute path, will be used [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_vfile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vfile2` [INFO] [stdout] --> src/main.rs:1743:8 [INFO] [stdout] | [INFO] [stdout] 1743 | let vfile2 = File::open("test2.txt").unwrap_or_else(|error| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vfile2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:1766:9 [INFO] [stdout] | [INFO] [stdout] 1766 | let f = File::open("hello.txt").expect("Failed to open hello.txt"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vtrait` [INFO] [stdout] --> src/main.rs:1914:9 [INFO] [stdout] | [INFO] [stdout] 1914 | let vtrait: std::str::Chars = TraitPrime::prime_string(&(String::from("hello world"))); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vtrait` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/main.rs:1936:20 [INFO] [stdout] | [INFO] [stdout] 1936 | pub fn notify2(item: &(impl TraitPrime + TraitPrime)) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/main.rs:1938:48 [INFO] [stdout] | [INFO] [stdout] 1938 | pub fn notify3(item: &T) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:1242:9 [INFO] [stdout] | [INFO] [stdout] 1240 | _var_compare2 => println!("Match!."), [INFO] [stdout] | ------------- matches any value [INFO] [stdout] 1241 | // Just remember put " _ " at the end of match, because if you put before another arm will not check it. [INFO] [stdout] 1242 | _ => println!("Don't match with _var_compare."), [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `firstvalue` [INFO] [stdout] --> src/main.rs:1540:9 [INFO] [stdout] | [INFO] [stdout] 1540 | let firstvalue = vvariable.get(0); // Remember. The index start from zero. [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_firstvalue` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/main.rs:1562:9 [INFO] [stdout] | [INFO] [stdout] 1562 | let data = vec![ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `s` is never read [INFO] [stdout] --> src/main.rs:1582:9 [INFO] [stdout] | [INFO] [stdout] 1582 | let mut s: String = String::new(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `s` is never read [INFO] [stdout] --> src/main.rs:1583:5 [INFO] [stdout] | [INFO] [stdout] 1583 | s = "Hello ".to_string(); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vfile` [INFO] [stdout] --> src/main.rs:1723:9 [INFO] [stdout] | [INFO] [stdout] 1723 | let vfile = File::open("test1.txt"); // If we don't spcify the absolute path, will be used [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_vfile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vfile2` [INFO] [stdout] --> src/main.rs:1743:8 [INFO] [stdout] | [INFO] [stdout] 1743 | let vfile2 = File::open("test2.txt").unwrap_or_else(|error| { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vfile2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:1766:9 [INFO] [stdout] | [INFO] [stdout] 1766 | let f = File::open("hello.txt").expect("Failed to open hello.txt"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vtrait` [INFO] [stdout] --> src/main.rs:1914:9 [INFO] [stdout] | [INFO] [stdout] 1914 | let vtrait: std::str::Chars = TraitPrime::prime_string(&(String::from("hello world"))); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_vtrait` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/main.rs:1936:20 [INFO] [stdout] | [INFO] [stdout] 1936 | pub fn notify2(item: &(impl TraitPrime + TraitPrime)) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/main.rs:1938:48 [INFO] [stdout] | [INFO] [stdout] 1938 | pub fn notify3(item: &T) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1506:9 [INFO] [stdout] | [INFO] [stdout] 1506 | let mut vvariable2 = vec![1,2,3]; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1655:9 [INFO] [stdout] | [INFO] [stdout] 1655 | let mut blue_team_score = 100; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `age` [INFO] [stdout] --> src/main.rs:936:9 [INFO] [stdout] | [INFO] [stdout] 936 | age: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `civil` [INFO] [stdout] --> src/main.rs:937:9 [INFO] [stdout] | [INFO] [stdout] 937 | civil: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `UnitLikeStruct` [INFO] [stdout] --> src/main.rs:1006:12 [INFO] [stdout] | [INFO] [stdout] 1006 | struct UnitLikeStruct(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_time` [INFO] [stdout] --> src/main.rs:1037:9 [INFO] [stdout] | [INFO] [stdout] 1037 | last_time: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `vtype` [INFO] [stdout] --> src/main.rs:1089:9 [INFO] [stdout] | [INFO] [stdout] 1089 | vtype: IpAddress, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `address` [INFO] [stdout] --> src/main.rs:1091:9 [INFO] [stdout] | [INFO] [stdout] 1091 | address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `first_name` [INFO] [stdout] --> src/main.rs:1154:9 [INFO] [stdout] | [INFO] [stdout] 1154 | first_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `second_name` [INFO] [stdout] --> src/main.rs:1155:9 [INFO] [stdout] | [INFO] [stdout] 1155 | second_name: Option, // can be any type of data. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_name` [INFO] [stdout] --> src/main.rs:1156:9 [INFO] [stdout] | [INFO] [stdout] 1156 | last_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `outside_funct` [INFO] [stdout] --> src/main.rs:1362:5 [INFO] [stdout] | [INFO] [stdout] 1362 | fn outside_funct() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/main.rs:1364:7 [INFO] [stdout] | [INFO] [stdout] 1364 | fn function() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HouseMeasurements` [INFO] [stdout] --> src/main.rs:1373:14 [INFO] [stdout] | [INFO] [stdout] 1373 | pub struct HouseMeasurements { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `house_measurements_fn` [INFO] [stdout] --> src/main.rs:1381:11 [INFO] [stdout] | [INFO] [stdout] 1381 | pub fn house_measurements_fn(wid: u16, lar: u16) -> HouseMeasurements { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `separated_function1` [INFO] [stdout] --> src/lib_source_code.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn separated_function1() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `external1` [INFO] [stdout] --> src/main.rs:1478:6 [INFO] [stdout] | [INFO] [stdout] 1478 | fn external1(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/main.rs:1816:5 [INFO] [stdout] | [INFO] [stdout] 1816 | x: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/main.rs:1817:5 [INFO] [stdout] | [INFO] [stdout] 1817 | y: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x` [INFO] [stdout] --> src/main.rs:1823:12 [INFO] [stdout] | [INFO] [stdout] 1823 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point2` [INFO] [stdout] --> src/main.rs:1829:8 [INFO] [stdout] | [INFO] [stdout] 1829 | struct Point2{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fnc1_0` [INFO] [stdout] --> src/main.rs:1835:8 [INFO] [stdout] | [INFO] [stdout] 1835 | fn fnc1_0(self, other: Point2) -> Point2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `traits` [INFO] [stdout] --> src/main.rs:1855:4 [INFO] [stdout] | [INFO] [stdout] 1855 | fn traits(){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `SourceCodeTutorial` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `source_code_tutorial` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: path statement with no effect [INFO] [stdout] --> src/main.rs:1436:4 [INFO] [stdout] | [INFO] [stdout] 1436 | the_same_tobe_or_not_tobe::something; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1506:9 [INFO] [stdout] | [INFO] [stdout] 1506 | let mut vvariable2 = vec![1,2,3]; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1655:9 [INFO] [stdout] | [INFO] [stdout] 1655 | let mut blue_team_score = 100; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `age` [INFO] [stdout] --> src/main.rs:936:9 [INFO] [stdout] | [INFO] [stdout] 936 | age: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `civil` [INFO] [stdout] --> src/main.rs:937:9 [INFO] [stdout] | [INFO] [stdout] 937 | civil: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `UnitLikeStruct` [INFO] [stdout] --> src/main.rs:1006:12 [INFO] [stdout] | [INFO] [stdout] 1006 | struct UnitLikeStruct(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_time` [INFO] [stdout] --> src/main.rs:1037:9 [INFO] [stdout] | [INFO] [stdout] 1037 | last_time: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `vtype` [INFO] [stdout] --> src/main.rs:1089:9 [INFO] [stdout] | [INFO] [stdout] 1089 | vtype: IpAddress, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `address` [INFO] [stdout] --> src/main.rs:1091:9 [INFO] [stdout] | [INFO] [stdout] 1091 | address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `first_name` [INFO] [stdout] --> src/main.rs:1154:9 [INFO] [stdout] | [INFO] [stdout] 1154 | first_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `second_name` [INFO] [stdout] --> src/main.rs:1155:9 [INFO] [stdout] | [INFO] [stdout] 1155 | second_name: Option, // can be any type of data. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_name` [INFO] [stdout] --> src/main.rs:1156:9 [INFO] [stdout] | [INFO] [stdout] 1156 | last_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `outside_funct` [INFO] [stdout] --> src/main.rs:1362:5 [INFO] [stdout] | [INFO] [stdout] 1362 | fn outside_funct() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/main.rs:1364:7 [INFO] [stdout] | [INFO] [stdout] 1364 | fn function() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HouseMeasurements` [INFO] [stdout] --> src/main.rs:1373:14 [INFO] [stdout] | [INFO] [stdout] 1373 | pub struct HouseMeasurements { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `house_measurements_fn` [INFO] [stdout] --> src/main.rs:1381:11 [INFO] [stdout] | [INFO] [stdout] 1381 | pub fn house_measurements_fn(wid: u16, lar: u16) -> HouseMeasurements { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `separated_function1` [INFO] [stdout] --> src/lib_source_code.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn separated_function1() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `external1` [INFO] [stdout] --> src/main.rs:1478:6 [INFO] [stdout] | [INFO] [stdout] 1478 | fn external1(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/main.rs:1816:5 [INFO] [stdout] | [INFO] [stdout] 1816 | x: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/main.rs:1817:5 [INFO] [stdout] | [INFO] [stdout] 1817 | y: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x` [INFO] [stdout] --> src/main.rs:1823:12 [INFO] [stdout] | [INFO] [stdout] 1823 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point2` [INFO] [stdout] --> src/main.rs:1829:8 [INFO] [stdout] | [INFO] [stdout] 1829 | struct Point2{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `fnc1_0` [INFO] [stdout] --> src/main.rs:1835:8 [INFO] [stdout] | [INFO] [stdout] 1835 | fn fnc1_0(self, other: Point2) -> Point2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `traits` [INFO] [stdout] --> src/main.rs:1855:4 [INFO] [stdout] | [INFO] [stdout] 1855 | fn traits(){ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `SourceCodeTutorial` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `source_code_tutorial` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: path statement with no effect [INFO] [stdout] --> src/main.rs:1436:4 [INFO] [stdout] | [INFO] [stdout] 1436 | the_same_tobe_or_not_tobe::something; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.83s [INFO] running `Command { std: "docker" "inspect" "5c1d230a597555993132d7d2cd67507de3bf7f6d1777e7bc0c0a5bf735eccc1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c1d230a597555993132d7d2cd67507de3bf7f6d1777e7bc0c0a5bf735eccc1b", kill_on_drop: false }` [INFO] [stdout] 5c1d230a597555993132d7d2cd67507de3bf7f6d1777e7bc0c0a5bf735eccc1b