[INFO] cloning repository https://github.com/yussifm/my_rust_learning_repo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yussifm/my_rust_learning_repo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyussifm%2Fmy_rust_learning_repo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyussifm%2Fmy_rust_learning_repo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bce7d78ec4eb834289d73009cbdaa0773f7bf5b7 [INFO] checking yussifm/my_rust_learning_repo against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyussifm%2Fmy_rust_learning_repo" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yussifm/my_rust_learning_repo on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yussifm/my_rust_learning_repo [INFO] finished tweaking git repo https://github.com/yussifm/my_rust_learning_repo [INFO] tweaked toml for git repo https://github.com/yussifm/my_rust_learning_repo written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/yussifm/my_rust_learning_repo 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8e4ab65894b77b87ae9e95735ab54d1adcbda83004178ff4daddb80750efe537 [INFO] running `Command { std: "docker" "start" "-a" "8e4ab65894b77b87ae9e95735ab54d1adcbda83004178ff4daddb80750efe537", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8e4ab65894b77b87ae9e95735ab54d1adcbda83004178ff4daddb80750efe537", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e4ab65894b77b87ae9e95735ab54d1adcbda83004178ff4daddb80750efe537", kill_on_drop: false }` [INFO] [stdout] 8e4ab65894b77b87ae9e95735ab54d1adcbda83004178ff4daddb80750efe537 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4fd784546b03080669e0e4010312cc98c92bad861c96cdfed8d8353f92c65acc [INFO] running `Command { std: "docker" "start" "-a" "4fd784546b03080669e0e4010312cc98c92bad861c96cdfed8d8353f92c65acc", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking adder v0.1.0 (/opt/rustwide/workdir/adder) [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hello_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `add_one_v2` [INFO] [stdout] --> src/closures_in_rs.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let add_one_v2 = |x: u32| -> u32 { x + 1 }; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one_v2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `add_one_v2` [INFO] [stdout] --> src/closures_in_rs.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let add_one_v2 = |x: u32| -> u32 { x + 1 }; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_add_one_v2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3` [INFO] [stdout] --> src/common_collections_rs.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let v3 = vec![ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3` [INFO] [stdout] --> src/common_collections_rs.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let v3 = vec![ [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s11` [INFO] [stdout] --> src/common_collections_rs.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | let s11 = &hello[0..4]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_s11` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s11` [INFO] [stdout] --> src/common_collections_rs.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | let s11 = &hello[0..4]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_s11` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/enums_in_rust.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let x: i8 = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/enums_in_rust.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let x: i8 = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/enums_in_rust.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let y: Option = Some(5); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/enums_in_rust.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let y: Option = Some(5); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/enums_in_rust.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/enums_in_rust.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/enums_in_rust.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/enums_in_rust.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let none = plus_one(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_result` [INFO] [stdout] --> src/handling_errors_in_rs.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let file_result = match op_file { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file` [INFO] [stdout] --> src/handling_errors_in_rs.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let greeting_file = File::open("hello.txt").unwrap_or_else(|error| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_result` [INFO] [stdout] --> src/handling_errors_in_rs.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let file_result = match op_file { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `greeting_file` [INFO] [stdout] --> src/handling_errors_in_rs.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let greeting_file = File::open("hello.txt").unwrap_or_else(|error| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_greeting_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s5` [INFO] [stdout] --> src/ownership_in_rust.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let s5 = gives_ownership(); // gives_ownership moves its return value into s5 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s7` [INFO] [stdout] --> src/ownership_in_rust.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let s7 = takes_and_gives_back(s6); // s6 is moved into [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s5` [INFO] [stdout] --> src/ownership_in_rust.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let s5 = gives_ownership(); // gives_ownership moves its return value into s5 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s7` [INFO] [stdout] --> src/ownership_in_rust.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let s7 = takes_and_gives_back(s6); // s6 is moved into [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ownership_in_rust.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut s2 = String::from("Hello"); [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/ownership_in_rust.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut s2 = String::from("Hello"); [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: unused variable: `list` [INFO] [stdout] --> src/smart_pointers_in_rs.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let list = List::Cons( [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/smart_pointers_in_rs.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let list = List::Cons( [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subject` [INFO] [stdout] --> src/structures_in_rust.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let subject = AlwaysEqual; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `subject` [INFO] [stdout] --> src/structures_in_rust.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let subject = AlwaysEqual; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/area_of_circle.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 60 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 61 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/area_of_circle.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 66 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/closures_in_rs.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 3 | width: u32, [INFO] [stdout] 4 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_one_v1` is never used [INFO] [stdout] --> src/closures_in_rs.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn add_one_v1(x: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/closures_in_rs.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shoes_in_size` is never used [INFO] [stdout] --> src/closures_in_rs.rs:110:4 [INFO] [stdout] | [INFO] [stdout] 110 | fn shoes_in_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/common_collections_rs.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 62 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/area_of_circle.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 60 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 61 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/common_collections_rs.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | Float(f32), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 63 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/area_of_circle.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 66 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/common_collections_rs.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 64 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums_in_rust.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddressKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/closures_in_rs.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 3 | width: u32, [INFO] [stdout] 4 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_one_v1` is never used [INFO] [stdout] --> src/closures_in_rs.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn add_one_v1(x: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/closures_in_rs.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums_in_rust.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddressKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shoes_in_size` is never used [INFO] [stdout] --> src/closures_in_rs.rs:110:4 [INFO] [stdout] | [INFO] [stdout] 110 | fn shoes_in_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/enums_in_rust.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/common_collections_rs.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 62 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums_in_rust.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | Speak(String), // includes a single String . [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 34 | Speak(()), // includes a single String . [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/common_collections_rs.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | Float(f32), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 63 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enums_in_rust.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 32 | Quit, // has no data associated with it at all. [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | Move { x: u32, y: u32 }, // has named fields, like a struct does. [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | Speak(String), // includes a single String . [INFO] [stdout] 35 | ChangeColor(i32, i32, i32), // includes three i32 values [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/common_collections_rs.rs:64:14 [INFO] [stdout] | [INFO] [stdout] 64 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 64 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `value_in_cents` is never used [INFO] [stdout] --> src/enums_in_rust.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | fn value_in_cents(coin: Coin) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `route` is never used [INFO] [stdout] --> src/enums_in_rust.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn route(ip_kind: &IpAddressKind) -> &IpAddressKind { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generics_traaits_in_rs.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub x: T, [INFO] [stdout] | ^ [INFO] [stdout] 5 | pub y: T, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums_in_rust.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddressKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/generics_traaits_in_rs.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 11 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums_in_rust.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddressKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generics_traaits_in_rs.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct MPoint { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 19 | pub x: T, [INFO] [stdout] | ^ [INFO] [stdout] 20 | pub y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `MPoint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/enums_in_rust.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file` is never used [INFO] [stdout] --> src/handling_errors_in_rs.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_with_propa` is never used [INFO] [stdout] --> src/handling_errors_in_rs.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn read_username_from_file_with_propa() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums_in_rust.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | Speak(String), // includes a single String . [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 34 | Speak(()), // includes a single String . [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers_in_rs.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | Cons(i32, Box), [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] 44 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyBox` is never constructed [INFO] [stdout] --> src/smart_pointers_in_rs.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct MyBox(T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enums_in_rust.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 32 | Quit, // has no data associated with it at all. [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | Move { x: u32, y: u32 }, // has named fields, like a struct does. [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | Speak(String), // includes a single String . [INFO] [stdout] 35 | ChangeColor(i32, i32, i32), // includes three i32 values [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/smart_pointers_in_rs.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 68 | impl MyBox { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 69 | fn new(x: T) -> MyBox { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `value_in_cents` is never used [INFO] [stdout] --> src/enums_in_rust.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | fn value_in_cents(coin: Coin) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `route` is never used [INFO] [stdout] --> src/enums_in_rust.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn route(ip_kind: &IpAddressKind) -> &IpAddressKind { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/smart_pointers_in_rs.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 86 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 87 | parent: RefCell>, [INFO] [stdout] 88 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generics_traaits_in_rs.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub x: T, [INFO] [stdout] | ^ [INFO] [stdout] 5 | pub y: T, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QuitMessage` is never constructed [INFO] [stdout] --> src/structures_in_rust.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct QuitMessage; // unit struct [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MoveMessage` is never constructed [INFO] [stdout] --> src/structures_in_rust.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct MoveMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/generics_traaits_in_rs.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 11 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WriteMessage` is never constructed [INFO] [stdout] --> src/structures_in_rust.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct WriteMessage(String); // tuple struct [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/generics_traaits_in_rs.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct MPoint { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 19 | pub x: T, [INFO] [stdout] | ^ [INFO] [stdout] 20 | pub y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `MPoint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChangeColorMessage` is never constructed [INFO] [stdout] --> src/structures_in_rust.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct ChangeColorMessage(i32, i32, i32); // tuple struct [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file` is never used [INFO] [stdout] --> src/handling_errors_in_rs.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_with_propa` is never used [INFO] [stdout] --> src/handling_errors_in_rs.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn read_username_from_file_with_propa() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `2` are never read [INFO] [stdout] --> src/structures_in_rust.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [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] 19 | struct Color((), i32, ()); [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smart_pointers_in_rs.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | Cons(i32, Box), [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] 44 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/structures_in_rust.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | struct Points(i32, i32, i32); [INFO] [stdout] | ------ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/traits_in_rs.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn notify(item: &impl Summary) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyBox` is never constructed [INFO] [stdout] --> src/smart_pointers_in_rs.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct MyBox(T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_bound` is never used [INFO] [stdout] --> src/traits_in_rs.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn notify_bound(item: &T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/smart_pointers_in_rs.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 68 | impl MyBox { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 69 | fn new(x: T) -> MyBox { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/traits_in_rs.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 57 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> src/smart_pointers_in_rs.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 85 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 86 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 87 | parent: RefCell>, [INFO] [stdout] 88 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reply` and `retweet` are never read [INFO] [stdout] --> src/traits_in_rs.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 68 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 69 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QuitMessage` is never constructed [INFO] [stdout] --> src/structures_in_rust.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct QuitMessage; // unit struct [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `diffList` should have a snake case name [INFO] [stdout] --> src/closures_in_rs.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut diffList = vec![2, 4, 5]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `diff_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MoveMessage` is never constructed [INFO] [stdout] --> src/structures_in_rust.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct MoveMessage { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mStr` should have a snake case name [INFO] [stdout] --> src/references_borrowing.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mStr = change_reference(&mut s1); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `m_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WriteMessage` is never constructed [INFO] [stdout] --> src/structures_in_rust.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct WriteMessage(String); // tuple struct [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChangeColorMessage` is never constructed [INFO] [stdout] --> src/structures_in_rust.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct ChangeColorMessage(i32, i32, i32); // tuple struct [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `2` are never read [INFO] [stdout] --> src/structures_in_rust.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [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] 19 | struct Color((), i32, ()); [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/structures_in_rust.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | struct Points(i32, i32, i32); [INFO] [stdout] | ------ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/traits_in_rs.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn notify(item: &impl Summary) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_bound` is never used [INFO] [stdout] --> src/traits_in_rs.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn notify_bound(item: &T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/traits_in_rs.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 57 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reply` and `retweet` are never read [INFO] [stdout] --> src/traits_in_rs.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 68 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 69 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `diffList` should have a snake case name [INFO] [stdout] --> src/closures_in_rs.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut diffList = vec![2, 4, 5]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `diff_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mStr` should have a snake case name [INFO] [stdout] --> src/references_borrowing.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mStr = change_reference(&mut s1); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `m_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.18s [INFO] running `Command { std: "docker" "inspect" "4fd784546b03080669e0e4010312cc98c92bad861c96cdfed8d8353f92c65acc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fd784546b03080669e0e4010312cc98c92bad861c96cdfed8d8353f92c65acc", kill_on_drop: false }` [INFO] [stdout] 4fd784546b03080669e0e4010312cc98c92bad861c96cdfed8d8353f92c65acc