[INFO] cloning repository https://github.com/c4collins/the-rust-programming-language-rust-2021
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/c4collins/the-rust-programming-language-rust-2021" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fc4collins%2Fthe-rust-programming-language-rust-2021", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fc4collins%2Fthe-rust-programming-language-rust-2021'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 19a8c595b4beacbde9b2952938b4773130120cf0
[INFO] checking c4collins/the-rust-programming-language-rust-2021 against try#22cc29ba5b459fb386c0406b9baf3a49eb0fba39 for pr-146095
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fc4collins%2Fthe-rust-programming-language-rust-2021" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/c4collins/the-rust-programming-language-rust-2021
[INFO] finished tweaking git repo https://github.com/c4collins/the-rust-programming-language-rust-2021
[INFO] tweaked toml for git repo https://github.com/c4collins/the-rust-programming-language-rust-2021 written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/c4collins/the-rust-programming-language-rust-2021 on toolchain 22cc29ba5b459fb386c0406b9baf3a49eb0fba39
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+22cc29ba5b459fb386c0406b9baf3a49eb0fba39" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/c4collins/the-rust-programming-language-rust-2021 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" "+22cc29ba5b459fb386c0406b9baf3a49eb0fba39" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+22cc29ba5b459fb386c0406b9baf3a49eb0fba39" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 638e90ef83ccd7abe9c0d0f8b937b0951b1671fd7f743fe9e46165c9b82b023f
[INFO] running `Command { std: "docker" "start" "-a" "638e90ef83ccd7abe9c0d0f8b937b0951b1671fd7f743fe9e46165c9b82b023f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "638e90ef83ccd7abe9c0d0f8b937b0951b1671fd7f743fe9e46165c9b82b023f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "638e90ef83ccd7abe9c0d0f8b937b0951b1671fd7f743fe9e46165c9b82b023f", kill_on_drop: false }`
[INFO] [stdout] 638e90ef83ccd7abe9c0d0f8b937b0951b1671fd7f743fe9e46165c9b82b023f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+22cc29ba5b459fb386c0406b9baf3a49eb0fba39" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 61c8fea7ab3ae6993269dfedd52c437782a6fcaf5a862bdda5866a0950dffbc7
[INFO] running `Command { std: "docker" "start" "-a" "61c8fea7ab3ae6993269dfedd52c437782a6fcaf5a862bdda5866a0950dffbc7", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.16
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling libc v0.2.147
[INFO] [stderr]    Compiling num-bigint v0.4.3
[INFO] [stderr]    Compiling num-iter v0.1.43
[INFO] [stderr]    Compiling quote v1.0.32
[INFO] [stderr]     Checking strum v0.25.0
[INFO] [stderr]    Compiling syn v2.0.27
[INFO] [stderr]     Checking getrandom v0.2.10
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking num-complex v0.4.3
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking num-rational v0.4.1
[INFO] [stderr]     Checking num v0.4.1
[INFO] [stderr]    Compiling strum_macros v0.25.1
[INFO] [stderr]     Checking rust-book v0.14.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Display`, `Formatter`, and `Result`
[INFO] [stdout]  --> src/chapters/c20_multithreaded_web_server/http.rs:1:16
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt::{Display, Formatter, Result};
[INFO] [stdout]   |                ^^^^^^^  ^^^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thread`
[INFO] [stdout]  --> src/chapters/c20_multithreaded_web_server/server.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 |     thread,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Display`, `Formatter`, and `Result`
[INFO] [stdout]  --> src/chapters/c20_multithreaded_web_server/http.rs:1:16
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt::{Display, Formatter, Result};
[INFO] [stdout]   |                ^^^^^^^  ^^^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thread`
[INFO] [stdout]  --> src/chapters/c20_multithreaded_web_server/server.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 |     thread,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `post`
[INFO] [stdout]   --> src/chapters/c17_object_orientation_in_rust/blog.rs:46:27
[INFO] [stdout]    |
[INFO] [stdout] 46 |     fn content<'a>(&self, post: &'a Post) -> &'a str {
[INFO] [stdout]    |                           ^^^^ help: if this is intentional, prefix it with an underscore: `_post`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> src/chapters/c18_patterns_and_matching/matching.rs:88:17
[INFO] [stdout]    |
[INFO] [stdout] 88 |         Point { x, y } => println!("On neither axis (x, y)"),
[INFO] [stdout]    |                 ^ help: try ignoring the field: `x: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> src/chapters/c18_patterns_and_matching/matching.rs:88:20
[INFO] [stdout]    |
[INFO] [stdout] 88 |         Point { x, y } => println!("On neither axis (x, y)"),
[INFO] [stdout]    |                    ^ help: try ignoring the field: `y: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `z`
[INFO] [stdout]    --> src/chapters/c18_patterns_and_matching/matching.rs:171:9
[INFO] [stdout]     |
[INFO] [stdout] 171 |     let z = 30; // Will get a warning because it's unused
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_z`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]   --> src/chapters/c19_advanced_features/unsafe_rust.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let r = address as *const i32;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/chapters/c06_enums_and_pattern_matching/enums/mod.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 |     V4(String),
[INFO] [stdout]   |     -- ^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `IpAddress` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[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] 3 -     V4(String),
[INFO] [stdout] 3 +     V4(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/chapters/c06_enums_and_pattern_matching/enums/mod.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 |     V6(String),
[INFO] [stdout]   |     -- ^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `IpAddress` 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] 4 -     V6(String),
[INFO] [stdout] 4 +     V6(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c08_common_collections/vectors/mod.rs:46:13
[INFO] [stdout]    |
[INFO] [stdout] 46 |         Int(i32),
[INFO] [stdout]    |         --- ^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` 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] 46 -         Int(i32),
[INFO] [stdout] 46 +         Int(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c08_common_collections/vectors/mod.rs:47:15
[INFO] [stdout]    |
[INFO] [stdout] 47 |         Float(f64),
[INFO] [stdout]    |         ----- ^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` 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] 47 -         Float(f64),
[INFO] [stdout] 47 +         Float(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c08_common_collections/vectors/mod.rs:48:14
[INFO] [stdout]    |
[INFO] [stdout] 48 |         Text(String),
[INFO] [stdout]    |         ---- ^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` 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] 48 -         Text(String),
[INFO] [stdout] 48 +         Text(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `location` and `content` are never read
[INFO] [stdout]   --> src/chapters/c10_generic_types_traits_and_lifetimes/generics/summaries/mod.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct NewsArticle {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 14 |     pub headline: String,
[INFO] [stdout] 15 |     pub location: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 16 |     pub author: String,
[INFO] [stdout] 17 |     pub content: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read
[INFO] [stdout]   --> src/chapters/c10_generic_types_traits_and_lifetimes/generics/summaries/mod.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct Tweet {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] 38 |     pub username: String,
[INFO] [stdout] 39 |     pub content: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 40 |     pub reply: bool,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 41 |     pub retweet: bool,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]  --> src/chapters/c15_smart_pointers/list.rs:6:10
[INFO] [stdout]   |
[INFO] [stdout] 6 |     Cons(i32, Box<List>),
[INFO] [stdout]   |     ---- ^^^  ^^^^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     fields in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[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] 6 -     Cons(i32, Box<List>),
[INFO] [stdout] 6 +     Cons((), ()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/list.rs:12:10
[INFO] [stdout]    |
[INFO] [stdout] 12 |     Cons(i32, Rc<RefCountList>),
[INFO] [stdout]    |     ---- ^^^  ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RefCountList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[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] 12 -     Cons(i32, Rc<RefCountList>),
[INFO] [stdout] 12 +     Cons((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/list.rs:18:10
[INFO] [stdout]    |
[INFO] [stdout] 18 |     Cons(Rc<RefCell<i32>>, Rc<RefCellRefCountList>),
[INFO] [stdout]    |     ---- ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RefCellRefCountList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[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] 18 -     Cons(Rc<RefCell<i32>>, Rc<RefCellRefCountList>),
[INFO] [stdout] 18 +     Cons((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/list.rs:27:10
[INFO] [stdout]    |
[INFO] [stdout] 27 |     Cons(i32, CycleRefCell),
[INFO] [stdout]    |     ---- ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CycleList` 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] 27 -     Cons(i32, CycleRefCell),
[INFO] [stdout] 27 +     Cons((), CycleRefCell),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `value` and `children` are never read
[INFO] [stdout]  --> src/chapters/c15_smart_pointers/tree_graph.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Node {
[INFO] [stdout]   |            ---- fields in this struct
[INFO] [stdout] 6 |     pub value: i32,
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout] 7 |     pub children: RefCell<Vec<Rc<Node>>>,
[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 `y` and `z` are never read
[INFO] [stdout]    --> src/chapters/c18_patterns_and_matching/matching.rs:187:9
[INFO] [stdout]     |
[INFO] [stdout] 185 |     struct Point {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] 186 |         x: i32,
[INFO] [stdout] 187 |         y: i32,
[INFO] [stdout]     |         ^
[INFO] [stdout] 188 |         z: i32,
[INFO] [stdout]     |         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c19_advanced_features/advanced_functions_and_closures.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |         Value(u32),
[INFO] [stdout]    |         ----- ^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Status` 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] 37 -         Value(u32),
[INFO] [stdout] 37 +         Value(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/chapters/c19_advanced_features/advanced_types.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | struct Metre(u32); // Thin wrapper around type
[INFO] [stdout]   |        ----- ^^^
[INFO] [stdout]   |        |
[INFO] [stdout]   |        field in this struct
[INFO] [stdout]   |
[INFO] [stdout]   = help: consider removing this field
[INFO] [stdout]   = note: `Metre` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Foo` is never used
[INFO] [stdout]   --> src/chapters/c19_advanced_features/unsafe_rust.rs:98:14
[INFO] [stdout]    |
[INFO] [stdout] 98 | unsafe trait Foo {}
[INFO] [stdout]    |              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `HttpMethod` is never used
[INFO] [stdout]  --> src/chapters/c20_multithreaded_web_server/http.rs:3:6
[INFO] [stdout]   |
[INFO] [stdout] 3 | enum HttpMethod {
[INFO] [stdout]   |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `HttpHeader` is never constructed
[INFO] [stdout]   --> src/chapters/c20_multithreaded_web_server/http.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct HttpHeader {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `HttpRequest` is never constructed
[INFO] [stdout]   --> src/chapters/c20_multithreaded_web_server/http.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct HttpRequest {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/chapters/c19_advanced_features/unsafe_rust.rs:93:33
[INFO] [stdout]    |
[INFO] [stdout] 93 |         println!("COUNTER: {}", COUNTER);
[INFO] [stdout]    |                                 ^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `post`
[INFO] [stdout]   --> src/chapters/c17_object_orientation_in_rust/blog.rs:46:27
[INFO] [stdout]    |
[INFO] [stdout] 46 |     fn content<'a>(&self, post: &'a Post) -> &'a str {
[INFO] [stdout]    |                           ^^^^ help: if this is intentional, prefix it with an underscore: `_post`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> src/chapters/c18_patterns_and_matching/matching.rs:88:17
[INFO] [stdout]    |
[INFO] [stdout] 88 |         Point { x, y } => println!("On neither axis (x, y)"),
[INFO] [stdout]    |                 ^ help: try ignoring the field: `x: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> src/chapters/c18_patterns_and_matching/matching.rs:88:20
[INFO] [stdout]    |
[INFO] [stdout] 88 |         Point { x, y } => println!("On neither axis (x, y)"),
[INFO] [stdout]    |                    ^ help: try ignoring the field: `y: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `z`
[INFO] [stdout]    --> src/chapters/c18_patterns_and_matching/matching.rs:171:9
[INFO] [stdout]     |
[INFO] [stdout] 171 |     let z = 30; // Will get a warning because it's unused
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_z`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]   --> src/chapters/c19_advanced_features/unsafe_rust.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let r = address as *const i32;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/chapters/c06_enums_and_pattern_matching/enums/mod.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 |     V4(String),
[INFO] [stdout]   |     -- ^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `IpAddress` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[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] 3 -     V4(String),
[INFO] [stdout] 3 +     V4(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/chapters/c06_enums_and_pattern_matching/enums/mod.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 |     V6(String),
[INFO] [stdout]   |     -- ^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `IpAddress` 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] 4 -     V6(String),
[INFO] [stdout] 4 +     V6(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c08_common_collections/vectors/mod.rs:46:13
[INFO] [stdout]    |
[INFO] [stdout] 46 |         Int(i32),
[INFO] [stdout]    |         --- ^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` 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] 46 -         Int(i32),
[INFO] [stdout] 46 +         Int(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c08_common_collections/vectors/mod.rs:47:15
[INFO] [stdout]    |
[INFO] [stdout] 47 |         Float(f64),
[INFO] [stdout]    |         ----- ^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` 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] 47 -         Float(f64),
[INFO] [stdout] 47 +         Float(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c08_common_collections/vectors/mod.rs:48:14
[INFO] [stdout]    |
[INFO] [stdout] 48 |         Text(String),
[INFO] [stdout]    |         ---- ^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` 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] 48 -         Text(String),
[INFO] [stdout] 48 +         Text(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `location` and `content` are never read
[INFO] [stdout]   --> src/chapters/c10_generic_types_traits_and_lifetimes/generics/summaries/mod.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct NewsArticle {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 14 |     pub headline: String,
[INFO] [stdout] 15 |     pub location: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 16 |     pub author: String,
[INFO] [stdout] 17 |     pub content: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read
[INFO] [stdout]   --> src/chapters/c10_generic_types_traits_and_lifetimes/generics/summaries/mod.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct Tweet {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] 38 |     pub username: String,
[INFO] [stdout] 39 |     pub content: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 40 |     pub reply: bool,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 41 |     pub retweet: bool,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rectangle` is never constructed
[INFO] [stdout]  --> src/chapters/c11_writing_automated_tests/rectangle/mod.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub struct Rectangle {
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `can_hold` is never used
[INFO] [stdout]  --> src/chapters/c11_writing_automated_tests/rectangle/mod.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | impl Rectangle {
[INFO] [stdout]   | -------------- method in this implementation
[INFO] [stdout] 8 |     pub fn can_hold(&self, other: &Rectangle) -> bool {
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Shoe` is never constructed
[INFO] [stdout]  --> src/chapters/c13_iterators_and_closures/iterators/mod.rs:2:8
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct Shoe {
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shoes_in_size` is never used
[INFO] [stdout]   --> src/chapters/c13_iterators_and_closures/iterators/mod.rs:22:4
[INFO] [stdout]    |
[INFO] [stdout] 22 | fn shoes_in_size(shoes: Vec<Shoe>, shoe_size: u32) -> Vec<Shoe> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Messenger` is never used
[INFO] [stdout]  --> src/chapters/c15_smart_pointers/limit_tracker.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub trait Messenger {
[INFO] [stdout]   |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LimitTracker` is never constructed
[INFO] [stdout]  --> src/chapters/c15_smart_pointers/limit_tracker.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct LimitTracker<'a, T: Messenger> {
[INFO] [stdout]   |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `set_value` are never used
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/limit_tracker.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | / impl<'a, T> LimitTracker<'a, T>
[INFO] [stdout] 12 | | where
[INFO] [stdout] 13 | |     T: Messenger,
[INFO] [stdout]    | |_________________- associated items in this implementation
[INFO] [stdout] 14 |   {
[INFO] [stdout] 15 |       pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> {
[INFO] [stdout]    |              ^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 |       pub fn set_value(&mut self, value: usize) {
[INFO] [stdout]    |              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]  --> src/chapters/c15_smart_pointers/list.rs:6:10
[INFO] [stdout]   |
[INFO] [stdout] 6 |     Cons(i32, Box<List>),
[INFO] [stdout]   |     ---- ^^^  ^^^^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     fields in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[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] 6 -     Cons(i32, Box<List>),
[INFO] [stdout] 6 +     Cons((), ()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/list.rs:12:10
[INFO] [stdout]    |
[INFO] [stdout] 12 |     Cons(i32, Rc<RefCountList>),
[INFO] [stdout]    |     ---- ^^^  ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RefCountList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[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] 12 -     Cons(i32, Rc<RefCountList>),
[INFO] [stdout] 12 +     Cons((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/list.rs:18:10
[INFO] [stdout]    |
[INFO] [stdout] 18 |     Cons(Rc<RefCell<i32>>, Rc<RefCellRefCountList>),
[INFO] [stdout]    |     ---- ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RefCellRefCountList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[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] 18 -     Cons(Rc<RefCell<i32>>, Rc<RefCellRefCountList>),
[INFO] [stdout] 18 +     Cons((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/list.rs:27:10
[INFO] [stdout]    |
[INFO] [stdout] 27 |     Cons(i32, CycleRefCell),
[INFO] [stdout]    |     ---- ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CycleList` 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] 27 -     Cons(i32, CycleRefCell),
[INFO] [stdout] 27 +     Cons((), CycleRefCell),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `value` and `children` are never read
[INFO] [stdout]  --> src/chapters/c15_smart_pointers/tree_graph.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Node {
[INFO] [stdout]   |            ---- fields in this struct
[INFO] [stdout] 6 |     pub value: i32,
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout] 7 |     pub children: RefCell<Vec<Rc<Node>>>,
[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 `y` and `z` are never read
[INFO] [stdout]    --> src/chapters/c18_patterns_and_matching/matching.rs:187:9
[INFO] [stdout]     |
[INFO] [stdout] 185 |     struct Point {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] 186 |         x: i32,
[INFO] [stdout] 187 |         y: i32,
[INFO] [stdout]     |         ^
[INFO] [stdout] 188 |         z: i32,
[INFO] [stdout]     |         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c19_advanced_features/advanced_functions_and_closures.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |         Value(u32),
[INFO] [stdout]    |         ----- ^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Status` 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] 37 -         Value(u32),
[INFO] [stdout] 37 +         Value(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/chapters/c19_advanced_features/advanced_types.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | struct Metre(u32); // Thin wrapper around type
[INFO] [stdout]   |        ----- ^^^
[INFO] [stdout]   |        |
[INFO] [stdout]   |        field in this struct
[INFO] [stdout]   |
[INFO] [stdout]   = help: consider removing this field
[INFO] [stdout]   = note: `Metre` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Foo` is never used
[INFO] [stdout]   --> src/chapters/c19_advanced_features/unsafe_rust.rs:98:14
[INFO] [stdout]    |
[INFO] [stdout] 98 | unsafe trait Foo {}
[INFO] [stdout]    |              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `HttpMethod` is never used
[INFO] [stdout]  --> src/chapters/c20_multithreaded_web_server/http.rs:3:6
[INFO] [stdout]   |
[INFO] [stdout] 3 | enum HttpMethod {
[INFO] [stdout]   |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `HttpHeader` is never constructed
[INFO] [stdout]   --> src/chapters/c20_multithreaded_web_server/http.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct HttpHeader {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `HttpRequest` is never constructed
[INFO] [stdout]   --> src/chapters/c20_multithreaded_web_server/http.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct HttpRequest {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/chapters/c19_advanced_features/unsafe_rust.rs:93:33
[INFO] [stdout]    |
[INFO] [stdout] 93 |         println!("COUNTER: {}", COUNTER);
[INFO] [stdout]    |                                 ^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Display`, `Formatter`, and `Result`
[INFO] [stdout]  --> src/chapters/c20_multithreaded_web_server/http.rs:1:16
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt::{Display, Formatter, Result};
[INFO] [stdout]   |                ^^^^^^^  ^^^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thread`
[INFO] [stdout]  --> src/chapters/c20_multithreaded_web_server/server.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 |     thread,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Display`, `Formatter`, and `Result`
[INFO] [stdout]  --> src/chapters/c20_multithreaded_web_server/http.rs:1:16
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt::{Display, Formatter, Result};
[INFO] [stdout]   |                ^^^^^^^  ^^^^^^^^^  ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thread`
[INFO] [stdout]  --> src/chapters/c20_multithreaded_web_server/server.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 |     thread,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `post`
[INFO] [stdout]   --> src/chapters/c17_object_orientation_in_rust/blog.rs:46:27
[INFO] [stdout]    |
[INFO] [stdout] 46 |     fn content<'a>(&self, post: &'a Post) -> &'a str {
[INFO] [stdout]    |                           ^^^^ help: if this is intentional, prefix it with an underscore: `_post`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> src/chapters/c18_patterns_and_matching/matching.rs:88:17
[INFO] [stdout]    |
[INFO] [stdout] 88 |         Point { x, y } => println!("On neither axis (x, y)"),
[INFO] [stdout]    |                 ^ help: try ignoring the field: `x: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> src/chapters/c18_patterns_and_matching/matching.rs:88:20
[INFO] [stdout]    |
[INFO] [stdout] 88 |         Point { x, y } => println!("On neither axis (x, y)"),
[INFO] [stdout]    |                    ^ help: try ignoring the field: `y: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `z`
[INFO] [stdout]    --> src/chapters/c18_patterns_and_matching/matching.rs:171:9
[INFO] [stdout]     |
[INFO] [stdout] 171 |     let z = 30; // Will get a warning because it's unused
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_z`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]   --> src/chapters/c19_advanced_features/unsafe_rust.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let r = address as *const i32;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/chapters/c06_enums_and_pattern_matching/enums/mod.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 |     V4(String),
[INFO] [stdout]   |     -- ^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `IpAddress` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[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] 3 -     V4(String),
[INFO] [stdout] 3 +     V4(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/chapters/c06_enums_and_pattern_matching/enums/mod.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 |     V6(String),
[INFO] [stdout]   |     -- ^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `IpAddress` 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] 4 -     V6(String),
[INFO] [stdout] 4 +     V6(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c08_common_collections/vectors/mod.rs:46:13
[INFO] [stdout]    |
[INFO] [stdout] 46 |         Int(i32),
[INFO] [stdout]    |         --- ^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` 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] 46 -         Int(i32),
[INFO] [stdout] 46 +         Int(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c08_common_collections/vectors/mod.rs:47:15
[INFO] [stdout]    |
[INFO] [stdout] 47 |         Float(f64),
[INFO] [stdout]    |         ----- ^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` 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] 47 -         Float(f64),
[INFO] [stdout] 47 +         Float(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c08_common_collections/vectors/mod.rs:48:14
[INFO] [stdout]    |
[INFO] [stdout] 48 |         Text(String),
[INFO] [stdout]    |         ---- ^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` 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] 48 -         Text(String),
[INFO] [stdout] 48 +         Text(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `location` and `content` are never read
[INFO] [stdout]   --> src/chapters/c10_generic_types_traits_and_lifetimes/generics/summaries/mod.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct NewsArticle {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 14 |     pub headline: String,
[INFO] [stdout] 15 |     pub location: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 16 |     pub author: String,
[INFO] [stdout] 17 |     pub content: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read
[INFO] [stdout]   --> src/chapters/c10_generic_types_traits_and_lifetimes/generics/summaries/mod.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct Tweet {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] 38 |     pub username: String,
[INFO] [stdout] 39 |     pub content: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 40 |     pub reply: bool,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 41 |     pub retweet: bool,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rectangle` is never constructed
[INFO] [stdout]  --> src/chapters/c11_writing_automated_tests/rectangle/mod.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub struct Rectangle {
[INFO] [stdout]   |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `can_hold` is never used
[INFO] [stdout]  --> src/chapters/c11_writing_automated_tests/rectangle/mod.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | impl Rectangle {
[INFO] [stdout]   | -------------- method in this implementation
[INFO] [stdout] 8 |     pub fn can_hold(&self, other: &Rectangle) -> bool {
[INFO] [stdout]   |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Shoe` is never constructed
[INFO] [stdout]  --> src/chapters/c13_iterators_and_closures/iterators/mod.rs:2:8
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct Shoe {
[INFO] [stdout]   |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `shoes_in_size` is never used
[INFO] [stdout]   --> src/chapters/c13_iterators_and_closures/iterators/mod.rs:22:4
[INFO] [stdout]    |
[INFO] [stdout] 22 | fn shoes_in_size(shoes: Vec<Shoe>, shoe_size: u32) -> Vec<Shoe> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Messenger` is never used
[INFO] [stdout]  --> src/chapters/c15_smart_pointers/limit_tracker.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub trait Messenger {
[INFO] [stdout]   |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LimitTracker` is never constructed
[INFO] [stdout]  --> src/chapters/c15_smart_pointers/limit_tracker.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct LimitTracker<'a, T: Messenger> {
[INFO] [stdout]   |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `set_value` are never used
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/limit_tracker.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | / impl<'a, T> LimitTracker<'a, T>
[INFO] [stdout] 12 | | where
[INFO] [stdout] 13 | |     T: Messenger,
[INFO] [stdout]    | |_________________- associated items in this implementation
[INFO] [stdout] 14 |   {
[INFO] [stdout] 15 |       pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> {
[INFO] [stdout]    |              ^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 |       pub fn set_value(&mut self, value: usize) {
[INFO] [stdout]    |              ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]  --> src/chapters/c15_smart_pointers/list.rs:6:10
[INFO] [stdout]   |
[INFO] [stdout] 6 |     Cons(i32, Box<List>),
[INFO] [stdout]   |     ---- ^^^  ^^^^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     fields in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[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] 6 -     Cons(i32, Box<List>),
[INFO] [stdout] 6 +     Cons((), ()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/list.rs:12:10
[INFO] [stdout]    |
[INFO] [stdout] 12 |     Cons(i32, Rc<RefCountList>),
[INFO] [stdout]    |     ---- ^^^  ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RefCountList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[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] 12 -     Cons(i32, Rc<RefCountList>),
[INFO] [stdout] 12 +     Cons((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/list.rs:18:10
[INFO] [stdout]    |
[INFO] [stdout] 18 |     Cons(Rc<RefCell<i32>>, Rc<RefCellRefCountList>),
[INFO] [stdout]    |     ---- ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RefCellRefCountList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[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] 18 -     Cons(Rc<RefCell<i32>>, Rc<RefCellRefCountList>),
[INFO] [stdout] 18 +     Cons((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/list.rs:27:10
[INFO] [stdout]    |
[INFO] [stdout] 27 |     Cons(i32, CycleRefCell),
[INFO] [stdout]    |     ---- ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CycleList` 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] 27 -     Cons(i32, CycleRefCell),
[INFO] [stdout] 27 +     Cons((), CycleRefCell),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `value` and `children` are never read
[INFO] [stdout]  --> src/chapters/c15_smart_pointers/tree_graph.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Node {
[INFO] [stdout]   |            ---- fields in this struct
[INFO] [stdout] 6 |     pub value: i32,
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout] 7 |     pub children: RefCell<Vec<Rc<Node>>>,
[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 `y` and `z` are never read
[INFO] [stdout]    --> src/chapters/c18_patterns_and_matching/matching.rs:187:9
[INFO] [stdout]     |
[INFO] [stdout] 185 |     struct Point {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] 186 |         x: i32,
[INFO] [stdout] 187 |         y: i32,
[INFO] [stdout]     |         ^
[INFO] [stdout] 188 |         z: i32,
[INFO] [stdout]     |         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c19_advanced_features/advanced_functions_and_closures.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |         Value(u32),
[INFO] [stdout]    |         ----- ^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Status` 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] 37 -         Value(u32),
[INFO] [stdout] 37 +         Value(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/chapters/c19_advanced_features/advanced_types.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | struct Metre(u32); // Thin wrapper around type
[INFO] [stdout]   |        ----- ^^^
[INFO] [stdout]   |        |
[INFO] [stdout]   |        field in this struct
[INFO] [stdout]   |
[INFO] [stdout]   = help: consider removing this field
[INFO] [stdout]   = note: `Metre` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Foo` is never used
[INFO] [stdout]   --> src/chapters/c19_advanced_features/unsafe_rust.rs:98:14
[INFO] [stdout]    |
[INFO] [stdout] 98 | unsafe trait Foo {}
[INFO] [stdout]    |              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `HttpMethod` is never used
[INFO] [stdout]  --> src/chapters/c20_multithreaded_web_server/http.rs:3:6
[INFO] [stdout]   |
[INFO] [stdout] 3 | enum HttpMethod {
[INFO] [stdout]   |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `HttpHeader` is never constructed
[INFO] [stdout]   --> src/chapters/c20_multithreaded_web_server/http.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct HttpHeader {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `HttpRequest` is never constructed
[INFO] [stdout]   --> src/chapters/c20_multithreaded_web_server/http.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct HttpRequest {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `post`
[INFO] [stdout]   --> src/chapters/c17_object_orientation_in_rust/blog.rs:46:27
[INFO] [stdout]    |
[INFO] [stdout] 46 |     fn content<'a>(&self, post: &'a Post) -> &'a str {
[INFO] [stdout]    |                           ^^^^ help: if this is intentional, prefix it with an underscore: `_post`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/chapters/c19_advanced_features/unsafe_rust.rs:93:33
[INFO] [stdout]    |
[INFO] [stdout] 93 |         println!("COUNTER: {}", COUNTER);
[INFO] [stdout]    |                                 ^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> src/chapters/c18_patterns_and_matching/matching.rs:88:17
[INFO] [stdout]    |
[INFO] [stdout] 88 |         Point { x, y } => println!("On neither axis (x, y)"),
[INFO] [stdout]    |                 ^ help: try ignoring the field: `x: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> src/chapters/c18_patterns_and_matching/matching.rs:88:20
[INFO] [stdout]    |
[INFO] [stdout] 88 |         Point { x, y } => println!("On neither axis (x, y)"),
[INFO] [stdout]    |                    ^ help: try ignoring the field: `y: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `z`
[INFO] [stdout]    --> src/chapters/c18_patterns_and_matching/matching.rs:171:9
[INFO] [stdout]     |
[INFO] [stdout] 171 |     let z = 30; // Will get a warning because it's unused
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_z`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]   --> src/chapters/c19_advanced_features/unsafe_rust.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let r = address as *const i32;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/chapters/c06_enums_and_pattern_matching/enums/mod.rs:3:8
[INFO] [stdout]   |
[INFO] [stdout] 3 |     V4(String),
[INFO] [stdout]   |     -- ^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `IpAddress` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[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] 3 -     V4(String),
[INFO] [stdout] 3 +     V4(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/chapters/c06_enums_and_pattern_matching/enums/mod.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 |     V6(String),
[INFO] [stdout]   |     -- ^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     field in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `IpAddress` 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] 4 -     V6(String),
[INFO] [stdout] 4 +     V6(()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c08_common_collections/vectors/mod.rs:46:13
[INFO] [stdout]    |
[INFO] [stdout] 46 |         Int(i32),
[INFO] [stdout]    |         --- ^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` 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] 46 -         Int(i32),
[INFO] [stdout] 46 +         Int(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c08_common_collections/vectors/mod.rs:47:15
[INFO] [stdout]    |
[INFO] [stdout] 47 |         Float(f64),
[INFO] [stdout]    |         ----- ^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` 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] 47 -         Float(f64),
[INFO] [stdout] 47 +         Float(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c08_common_collections/vectors/mod.rs:48:14
[INFO] [stdout]    |
[INFO] [stdout] 48 |         Text(String),
[INFO] [stdout]    |         ---- ^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SpreadsheetCell` 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] 48 -         Text(String),
[INFO] [stdout] 48 +         Text(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `location` and `content` are never read
[INFO] [stdout]   --> src/chapters/c10_generic_types_traits_and_lifetimes/generics/summaries/mod.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub struct NewsArticle {
[INFO] [stdout]    |            ----------- fields in this struct
[INFO] [stdout] 14 |     pub headline: String,
[INFO] [stdout] 15 |     pub location: String,
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 16 |     pub author: String,
[INFO] [stdout] 17 |     pub content: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read
[INFO] [stdout]   --> src/chapters/c10_generic_types_traits_and_lifetimes/generics/summaries/mod.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub struct Tweet {
[INFO] [stdout]    |            ----- fields in this struct
[INFO] [stdout] 38 |     pub username: String,
[INFO] [stdout] 39 |     pub content: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 40 |     pub reply: bool,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 41 |     pub retweet: bool,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]  --> src/chapters/c15_smart_pointers/list.rs:6:10
[INFO] [stdout]   |
[INFO] [stdout] 6 |     Cons(i32, Box<List>),
[INFO] [stdout]   |     ---- ^^^  ^^^^^^^^^
[INFO] [stdout]   |     |
[INFO] [stdout]   |     fields in this variant
[INFO] [stdout]   |
[INFO] [stdout]   = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[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] 6 -     Cons(i32, Box<List>),
[INFO] [stdout] 6 +     Cons((), ()),
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/list.rs:12:10
[INFO] [stdout]    |
[INFO] [stdout] 12 |     Cons(i32, Rc<RefCountList>),
[INFO] [stdout]    |     ---- ^^^  ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RefCountList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[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] 12 -     Cons(i32, Rc<RefCountList>),
[INFO] [stdout] 12 +     Cons((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/list.rs:18:10
[INFO] [stdout]    |
[INFO] [stdout] 18 |     Cons(Rc<RefCell<i32>>, Rc<RefCellRefCountList>),
[INFO] [stdout]    |     ---- ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `RefCellRefCountList` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[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] 18 -     Cons(Rc<RefCell<i32>>, Rc<RefCellRefCountList>),
[INFO] [stdout] 18 +     Cons((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c15_smart_pointers/list.rs:27:10
[INFO] [stdout]    |
[INFO] [stdout] 27 |     Cons(i32, CycleRefCell),
[INFO] [stdout]    |     ---- ^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CycleList` 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] 27 -     Cons(i32, CycleRefCell),
[INFO] [stdout] 27 +     Cons((), CycleRefCell),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `value` and `children` are never read
[INFO] [stdout]  --> src/chapters/c15_smart_pointers/tree_graph.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Node {
[INFO] [stdout]   |            ---- fields in this struct
[INFO] [stdout] 6 |     pub value: i32,
[INFO] [stdout]   |         ^^^^^
[INFO] [stdout] 7 |     pub children: RefCell<Vec<Rc<Node>>>,
[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 `y` and `z` are never read
[INFO] [stdout]    --> src/chapters/c18_patterns_and_matching/matching.rs:187:9
[INFO] [stdout]     |
[INFO] [stdout] 185 |     struct Point {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] 186 |         x: i32,
[INFO] [stdout] 187 |         y: i32,
[INFO] [stdout]     |         ^
[INFO] [stdout] 188 |         z: i32,
[INFO] [stdout]     |         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/chapters/c19_advanced_features/advanced_functions_and_closures.rs:37:15
[INFO] [stdout]    |
[INFO] [stdout] 37 |         Value(u32),
[INFO] [stdout]    |         ----- ^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Status` 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] 37 -         Value(u32),
[INFO] [stdout] 37 +         Value(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]  --> src/chapters/c19_advanced_features/advanced_types.rs:7:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | struct Metre(u32); // Thin wrapper around type
[INFO] [stdout]   |        ----- ^^^
[INFO] [stdout]   |        |
[INFO] [stdout]   |        field in this struct
[INFO] [stdout]   |
[INFO] [stdout]   = help: consider removing this field
[INFO] [stdout]   = note: `Metre` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Foo` is never used
[INFO] [stdout]   --> src/chapters/c19_advanced_features/unsafe_rust.rs:98:14
[INFO] [stdout]    |
[INFO] [stdout] 98 | unsafe trait Foo {}
[INFO] [stdout]    |              ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `HttpMethod` is never used
[INFO] [stdout]  --> src/chapters/c20_multithreaded_web_server/http.rs:3:6
[INFO] [stdout]   |
[INFO] [stdout] 3 | enum HttpMethod {
[INFO] [stdout]   |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `HttpHeader` is never constructed
[INFO] [stdout]   --> src/chapters/c20_multithreaded_web_server/http.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct HttpHeader {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `HttpRequest` is never constructed
[INFO] [stdout]   --> src/chapters/c20_multithreaded_web_server/http.rs:28:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct HttpRequest {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/chapters/c19_advanced_features/unsafe_rust.rs:93:33
[INFO] [stdout]    |
[INFO] [stdout] 93 |         println!("COUNTER: {}", COUNTER);
[INFO] [stdout]    |                                 ^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.50s
[INFO] running `Command { std: "docker" "inspect" "61c8fea7ab3ae6993269dfedd52c437782a6fcaf5a862bdda5866a0950dffbc7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "61c8fea7ab3ae6993269dfedd52c437782a6fcaf5a862bdda5866a0950dffbc7", kill_on_drop: false }`
[INFO] [stdout] 61c8fea7ab3ae6993269dfedd52c437782a6fcaf5a862bdda5866a0950dffbc7
