[INFO] cloning repository https://github.com/GiorgiKumelashvili/rust-playground [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GiorgiKumelashvili/rust-playground" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGiorgiKumelashvili%2Frust-playground", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGiorgiKumelashvili%2Frust-playground'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8d03b3921d6a59845613e9247cb3cd7a823f1ee6 [INFO] checking GiorgiKumelashvili/rust-playground/8d03b3921d6a59845613e9247cb3cd7a823f1ee6 against master#fd0c901b00ee1e08a250039cdb90258603497e20 for pr-153692 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGiorgiKumelashvili%2Frust-playground" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-0-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/GiorgiKumelashvili/rust-playground [INFO] finished tweaking git repo https://github.com/GiorgiKumelashvili/rust-playground [INFO] tweaked toml for git repo https://github.com/GiorgiKumelashvili/rust-playground written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/GiorgiKumelashvili/rust-playground on toolchain fd0c901b00ee1e08a250039cdb90258603497e20 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fd0c901b00ee1e08a250039cdb90258603497e20" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/GiorgiKumelashvili/rust-playground 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" "+fd0c901b00ee1e08a250039cdb90258603497e20" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded uuid v1.19.0 [INFO] [stderr] Downloaded dummy v0.11.0 [INFO] [stderr] Downloaded figlet-rs v0.1.5 [INFO] [stderr] Downloaded deranged v0.5.5 [INFO] [stderr] Downloaded fake v4.4.0 [INFO] [stderr] Downloaded quick-xml v0.31.0 [INFO] [stderr] Downloaded text-to-ascii-art v0.1.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+fd0c901b00ee1e08a250039cdb90258603497e20" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 785d5f50ebe82820b5d8471724bb56def107faf2dd4dbe88f4ed26dffc65438f [INFO] running `Command { std: "docker" "start" "-a" "785d5f50ebe82820b5d8471724bb56def107faf2dd4dbe88f4ed26dffc65438f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "785d5f50ebe82820b5d8471724bb56def107faf2dd4dbe88f4ed26dffc65438f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "785d5f50ebe82820b5d8471724bb56def107faf2dd4dbe88f4ed26dffc65438f", kill_on_drop: false }` [INFO] [stdout] 785d5f50ebe82820b5d8471724bb56def107faf2dd4dbe88f4ed26dffc65438f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+fd0c901b00ee1e08a250039cdb90258603497e20" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9adf775f228d604f5342ea3ccfec739c74f70620c42ec79eeebbca3368f7276 [INFO] running `Command { std: "docker" "start" "-a" "c9adf775f228d604f5342ea3ccfec739c74f70620c42ec79eeebbca3368f7276", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Checking deranged v0.5.5 [INFO] [stderr] Checking atomic v0.6.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking indexmap v2.12.1 [INFO] [stderr] Checking winnow v0.7.14 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking uuid v1.19.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking csv-core v0.1.13 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Checking deunicode v1.6.2 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking figlet-rs v0.1.5 [INFO] [stderr] Checking text-to-ascii-art v0.1.10 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking csv v1.4.0 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling dummy v0.11.0 [INFO] [stderr] Checking fake v4.4.0 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking quick-xml v0.31.0 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking rust-playground v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/ch_3_common_programming_concepts/mod.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | let x = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rect_ref` [INFO] [stdout] --> src/ch_5_structs/rectangle_example2.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | let rect_ref = ▭ // ❌ PROBLEM: Creates IMMUTABLE reference &Rectangle (read-only) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rect_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ch_5_structs/rectangle_example2.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 53 | let mut rect_ref = &mut rect; // &mut rect = mutable reference [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user2` [INFO] [stdout] --> src/ch_5_structs/mod.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | let user2 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p` is never read [INFO] [stdout] --> src/ch_5_structs/mod.rs:44:3 [INFO] [stdout] | [INFO] [stdout] 44 | p.y += 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p` is never read [INFO] [stdout] --> src/ch_5_structs/mod.rs:53:3 [INFO] [stdout] | [INFO] [stdout] 53 | / p = Point { [INFO] [stdout] 54 | | // x: dbg!(1), [INFO] [stdout] 55 | | x: 1, [INFO] [stdout] 56 | | y: 0 [INFO] [stdout] 57 | | }; [INFO] [stdout] | |___^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read` is never used [INFO] [stdout] --> src/ch_3_common_programming_concepts/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn read(y: bool) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/ch_3_common_programming_concepts/mod.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `email`, `age`, and `fav_color` are never read [INFO] [stdout] --> src/ch_5_structs/mod.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 5 | struct User<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | fav_color: &'a str [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Empty` is never constructed [INFO] [stdout] --> src/ch_5_structs/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Empty; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `max` is never used [INFO] [stdout] --> src/ch_5_structs/rectangle_example2.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 6 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | fn max(self, other: Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_with_issue` is never used [INFO] [stdout] --> src/ch_5_structs/rectangle_example2.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn main_with_issue() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/ch_6_enums/mod.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 5 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | Write(String), [INFO] [stdout] 8 | ChangeColor(i32, i32, i32) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` 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 `deliver_order` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn deliver_order() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `private` is never read [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:49:3 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct CheckStruct { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 48 | pub public: u32, [INFO] [stdout] 49 | private: u32 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CheckStruct` 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 `main` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/test_folder.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/test_folder/analize.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Point(i32, pub i32); [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [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] 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] 31 - pub struct Point(i32, pub i32); [INFO] [stdout] 31 + pub struct Point((), pub i32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CheckStruct2` is never constructed [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct CheckStruct2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_to_waitlist` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn add_to_waitlist() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn seat_at_table() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn take_payment() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn take_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `something` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:98:10 [INFO] [stdout] | [INFO] [stdout] 98 | fn something() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/ch_3_common_programming_concepts/mod.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | let x = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rect_ref` [INFO] [stdout] --> src/ch_5_structs/rectangle_example2.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | let rect_ref = ▭ // ❌ PROBLEM: Creates IMMUTABLE reference &Rectangle (read-only) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rect_ref` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ch_5_structs/rectangle_example2.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 53 | let mut rect_ref = &mut rect; // &mut rect = mutable reference [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user2` [INFO] [stdout] --> src/ch_5_structs/mod.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | let user2 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p` is never read [INFO] [stdout] --> src/ch_5_structs/mod.rs:44:3 [INFO] [stdout] | [INFO] [stdout] 44 | p.y += 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p` is never read [INFO] [stdout] --> src/ch_5_structs/mod.rs:53:3 [INFO] [stdout] | [INFO] [stdout] 53 | / p = Point { [INFO] [stdout] 54 | | // x: dbg!(1), [INFO] [stdout] 55 | | x: 1, [INFO] [stdout] 56 | | y: 0 [INFO] [stdout] 57 | | }; [INFO] [stdout] | |___^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read` is never used [INFO] [stdout] --> src/ch_3_common_programming_concepts/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn read(y: bool) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/ch_3_common_programming_concepts/mod.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `email`, `age`, and `fav_color` are never read [INFO] [stdout] --> src/ch_5_structs/mod.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 5 | struct User<'a> { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 9 | fav_color: &'a str [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Empty` is never constructed [INFO] [stdout] --> src/ch_5_structs/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Empty; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `max` is never used [INFO] [stdout] --> src/ch_5_structs/rectangle_example2.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 6 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | fn max(self, other: Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_with_issue` is never used [INFO] [stdout] --> src/ch_5_structs/rectangle_example2.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn main_with_issue() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/ch_6_enums/mod.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 5 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | Write(String), [INFO] [stdout] 8 | ChangeColor(i32, i32, i32) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` 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 `deliver_order` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn deliver_order() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `private` is never read [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:49:3 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct CheckStruct { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 48 | pub public: u32, [INFO] [stdout] 49 | private: u32 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CheckStruct` 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 `main` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/test_folder.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/test_folder/analize.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Point(i32, pub i32); [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [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] 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] 31 - pub struct Point(i32, pub i32); [INFO] [stdout] 31 + pub struct Point((), pub i32); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CheckStruct2` is never constructed [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct CheckStruct2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_to_waitlist` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn add_to_waitlist() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn seat_at_table() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn take_payment() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn take_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `something` is never used [INFO] [stdout] --> src/ch_7_package_crate_module/mod.rs:98:10 [INFO] [stdout] | [INFO] [stdout] 98 | fn something() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 40.61s [INFO] running `Command { std: "docker" "inspect" "c9adf775f228d604f5342ea3ccfec739c74f70620c42ec79eeebbca3368f7276", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9adf775f228d604f5342ea3ccfec739c74f70620c42ec79eeebbca3368f7276", kill_on_drop: false }` [INFO] [stdout] c9adf775f228d604f5342ea3ccfec739c74f70620c42ec79eeebbca3368f7276