[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#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShyanJMC%2FRust-Source-Code-Tutorial" "/workspace/builds/worker-101/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-101/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ShyanJMC/Rust-Source-Code-Tutorial on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-101/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a51a3dca30385fbdf2631ac298133b7c7d4677b3d38995665e6c3329d2c7ff28 [INFO] running `Command { std: "docker" "start" "-a" "a51a3dca30385fbdf2631ac298133b7c7d4677b3d38995665e6c3329d2c7ff28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a51a3dca30385fbdf2631ac298133b7c7d4677b3d38995665e6c3329d2c7ff28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a51a3dca30385fbdf2631ac298133b7c7d4677b3d38995665e6c3329d2c7ff28", kill_on_drop: false }` [INFO] [stdout] a51a3dca30385fbdf2631ac298133b7c7d4677b3d38995665e6c3329d2c7ff28 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-101/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d645ab63cb5a8374422aa3165e34240754a904cf85f907c77d4463d964b5933 [INFO] running `Command { std: "docker" "start" "-a" "1d645ab63cb5a8374422aa3165e34240754a904cf85f907c77d4463d964b5933", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking SourceCodeTutorial v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (13 fixes) [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: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: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: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 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: 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: value assigned to `s` is never read [INFO] [stdout] --> src/main.rs:1582:13 [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: 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: 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: value assigned to `s` is never read [INFO] [stdout] --> src/main.rs:1582:13 [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: 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: `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: 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: 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: `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: `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: `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: `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: `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: 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: 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: 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: 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: 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: 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: 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: 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: `function` [INFO] [stdout] --> src/main.rs:1364:7 [INFO] [stdout] | [INFO] [stdout] 1364 | fn function() { [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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.85s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking SourceCodeTutorial v0.1.0 (/tmp/fixit) [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: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: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 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: 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: value assigned to `s` is never read [INFO] [stdout] --> src/main.rs:1582:13 [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: 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: value assigned to `s` is never read [INFO] [stdout] --> src/main.rs:1582:13 [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: 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: 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: 30 warnings emitted [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: 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: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.46s [INFO] running `Command { std: "docker" "inspect" "1d645ab63cb5a8374422aa3165e34240754a904cf85f907c77d4463d964b5933", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d645ab63cb5a8374422aa3165e34240754a904cf85f907c77d4463d964b5933", kill_on_drop: false }` [INFO] [stdout] 1d645ab63cb5a8374422aa3165e34240754a904cf85f907c77d4463d964b5933