[INFO] cloning repository https://github.com/abhinavm24/learn-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/abhinavm24/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabhinavm24%2Flearn-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabhinavm24%2Flearn-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 12483c97379e663d7f498daf235dd938580866fa
[INFO] checking abhinavm24/learn-rust against 98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3 for pr-160235-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fabhinavm24%2Flearn-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/abhinavm24/learn-rust
[INFO] removed 0 missing examples
[INFO] finished tweaking git repo https://github.com/abhinavm24/learn-rust
[INFO] tweaked toml for git repo https://github.com/abhinavm24/learn-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/abhinavm24/learn-rust on toolchain 98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/abhinavm24/learn-rust 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" "+98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3" "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-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 9c4b8b0bdfdb6937c0d28291479f4c8f45161aff16dbfa95c041b22bea07fbb1
[INFO] running `Command { std: "docker" "start" "9c4b8b0bdfdb6937c0d28291479f4c8f45161aff16dbfa95c041b22bea07fbb1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9c4b8b0bdfdb6937c0d28291479f4c8f45161aff16dbfa95c041b22bea07fbb1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "9c4b8b0bdfdb6937c0d28291479f4c8f45161aff16dbfa95c041b22bea07fbb1" "/opt/rustwide/cargo-home/bin/cargo" "+98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9c4b8b0bdfdb6937c0d28291479f4c8f45161aff16dbfa95c041b22bea07fbb1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "9c4b8b0bdfdb6937c0d28291479f4c8f45161aff16dbfa95c041b22bea07fbb1" "/opt/rustwide/cargo-home/bin/cargo" "+98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking rust-book-examples v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: function `demonstrate_cli_patterns` is never used
[INFO] [stdout]    --> examples/ch12_01_accepting_cli_args.rs:142:4
[INFO] [stdout]     |
[INFO] [stdout] 142 | fn demonstrate_cli_patterns() {
[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 `read_file_safe` is never used
[INFO] [stdout]    --> examples/ch12_01_accepting_cli_args.rs:219:12
[INFO] [stdout]     |
[INFO] [stdout] 219 |     pub fn read_file_safe(path: &str) -> Result<String, String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `internal_multiply` is never used
[INFO] [stdout]   --> examples/ch11_03_test_organization.rs:74:8
[INFO] [stdout]    |
[INFO] [stdout] 22 | impl Calculator {
[INFO] [stdout]    | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 74 |     fn internal_multiply(&self, a: i32, b: i32) -> i32 {
[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 `internal_helper` is never used
[INFO] [stdout]   --> examples/ch11_03_test_organization.rs:85:4
[INFO] [stdout]    |
[INFO] [stdout] 85 | fn internal_helper(x: i32) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `write_file_safe` is never used
[INFO] [stdout]    --> examples/ch12_01_accepting_cli_args.rs:224:12
[INFO] [stdout]     |
[INFO] [stdout] 224 |     pub fn write_file_safe(path: &str, content: &str) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `file_exists` is never used
[INFO] [stdout]    --> examples/ch12_01_accepting_cli_args.rs:229:12
[INFO] [stdout]     |
[INFO] [stdout] 229 |     pub fn file_exists(path: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `interactive_input` is never used
[INFO] [stdout]    --> examples/ch12_01_accepting_cli_args.rs:233:12
[INFO] [stdout]     |
[INFO] [stdout] 233 |     pub fn interactive_input(prompt: &str) -> Result<String, io::Error> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_sample_file` is never used
[INFO] [stdout]    --> examples/ch12_01_accepting_cli_args.rs:242:12
[INFO] [stdout]     |
[INFO] [stdout] 242 |     pub fn create_sample_file(filename: &str) -> Result<(), String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `CliError` is never used
[INFO] [stdout]    --> examples/ch12_01_accepting_cli_args.rs:259:14
[INFO] [stdout]     |
[INFO] [stdout] 259 |     pub enum CliError {
[INFO] [stdout]     |              ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_cli_error` is never used
[INFO] [stdout]    --> examples/ch12_01_accepting_cli_args.rs:277:12
[INFO] [stdout]     |
[INFO] [stdout] 277 |     pub fn handle_cli_error(error: CliError) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `1` and `2` are never read
[INFO] [stdout]   --> examples/ch05_01_defining_structs.rs:12:19
[INFO] [stdout]    |
[INFO] [stdout] 12 | struct Color(i32, i32, i32);
[INFO] [stdout]    |        -----      ^^^  ^^^
[INFO] [stdout]    |        |
[INFO] [stdout]    |        fields in this struct
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider removing these fields
[INFO] [stdout]    = note: `Color` 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] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `1` and `2` are never read
[INFO] [stdout]   --> examples/ch05_01_defining_structs.rs:15:19
[INFO] [stdout]    |
[INFO] [stdout] 15 | struct Point(i32, i32, i32);
[INFO] [stdout]    |        -----      ^^^  ^^^
[INFO] [stdout]    |        |
[INFO] [stdout]    |        fields in this struct
[INFO] [stdout]    |
[INFO] [stdout]    = help: consider removing these fields
[INFO] [stdout]    = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id`, `active`, and `department` are never read
[INFO] [stdout]   --> examples/ch05_01_defining_structs.rs:85:9
[INFO] [stdout]    |
[INFO] [stdout] 84 |     struct Employee {
[INFO] [stdout]    |            -------- fields in this struct
[INFO] [stdout] 85 |         id: u32,
[INFO] [stdout]    |         ^^
[INFO] [stdout] ...
[INFO] [stdout] 88 |         active: bool,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 89 |         department: String,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Employee` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]   --> examples/ch10_03_lifetime_syntax.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 42 |     let r: Option<&i32> = None;  // Declare 'r' with type annotation
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `value` is never read
[INFO] [stdout]   --> examples/ch15_06_reference_cycles.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 49 |     struct CyclicNode {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] 50 |         value: i32,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CyclicNode` 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] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]    --> examples/ch15_06_reference_cycles.rs:225:9
[INFO] [stdout]     |
[INFO] [stdout] 224 |     struct Connection {
[INFO] [stdout]     |            ---------- field in this struct
[INFO] [stdout] 225 |         id: u32,
[INFO] [stdout]     |         ^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Connection` 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 `longest_with_announcement` is never used
[INFO] [stdout]    --> examples/ch10_03_lifetime_syntax.rs:101:8
[INFO] [stdout]     |
[INFO] [stdout] 101 |     fn longest_with_announcement<'a>(
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `workers` is never read
[INFO] [stdout]   --> examples/ch20_02_multithreaded.rs:52:5
[INFO] [stdout]    |
[INFO] [stdout] 51 | pub struct ThreadPool {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] 52 |     workers: Vec<Worker>,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id` and `thread` are never read
[INFO] [stdout]   --> examples/ch20_02_multithreaded.rs:58:5
[INFO] [stdout]    |
[INFO] [stdout] 57 | struct Worker {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 58 |     id: usize,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 59 |     thread: thread::JoinHandle<()>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sum` is assigned to, but never used
[INFO] [stdout]    --> examples/ch13_04_performance_comparison.rs:239:9
[INFO] [stdout]     |
[INFO] [stdout] 239 |     let mut sum = 0;
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_sum` instead
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sum` is never read
[INFO] [stdout]    --> examples/ch13_04_performance_comparison.rs:241:9
[INFO] [stdout]     |
[INFO] [stdout] 241 |         sum += item * 2;
[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: field `value` is never read
[INFO] [stdout]    --> examples/ch15_01_smart_pointers.rs:437:9
[INFO] [stdout]     |
[INFO] [stdout] 436 |     struct MutableNode {
[INFO] [stdout]     |            ----------- field in this struct
[INFO] [stdout] 437 |         value: i32,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `MutableNode` 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] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_children` is never used
[INFO] [stdout]    --> examples/ch15_01_smart_pointers.rs:457:12
[INFO] [stdout]     |
[INFO] [stdout] 441 |     impl MutableNode {
[INFO] [stdout]     |     ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 457 |         fn get_children(&self) -> Vec<Rc<MutableNode>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `function_parameter_coercion` is never used
[INFO] [stdout]    --> examples/ch15_02_deref_trait.rs:206:4
[INFO] [stdout]     |
[INFO] [stdout] 206 | fn function_parameter_coercion() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CustomStruct` is never constructed
[INFO] [stdout]    --> examples/ch07_04_bringing_paths_into_scope.rs:154:16
[INFO] [stdout]     |
[INFO] [stdout] 154 |     pub struct CustomStruct {
[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 `demonstrate_patterns` is never used
[INFO] [stdout]    --> examples/ch07_04_bringing_paths_into_scope.rs:165:12
[INFO] [stdout]     |
[INFO] [stdout] 165 |     pub fn demonstrate_patterns() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `demonstrate_glob` is never used
[INFO] [stdout]    --> examples/ch07_04_bringing_paths_into_scope.rs:187:12
[INFO] [stdout]     |
[INFO] [stdout] 187 |     pub fn demonstrate_glob() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `demonstrate_external_usage` is never used
[INFO] [stdout]    --> examples/ch07_04_bringing_paths_into_scope.rs:202:12
[INFO] [stdout]     |
[INFO] [stdout] 202 |     pub fn demonstrate_external_usage() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> examples/ch07_04_bringing_paths_into_scope.rs:42:5
[INFO] [stdout]    |
[INFO] [stdout] 42 |     name_collision_examples();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 42 |     let _ = name_collision_examples();
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: path statement with no effect
[INFO] [stdout]   --> examples/ch07_04_bringing_paths_into_scope.rs:89:5
[INFO] [stdout]    |
[INFO] [stdout] 89 |     re_export::PrimaryColor::Red;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(path_statements)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `level1_function` in module `crate::complex_paths`
[INFO] [stdout]    --> examples/ch07_03_module_paths.rs:149:43
[INFO] [stdout]     |
[INFO] [stdout] 149 |                     crate::complex_paths::level1_function();
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^ not found in `crate::complex_paths`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 140 +                 use crate::complex_paths::level1::level1_function;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `level1_function`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 149 -                     crate::complex_paths::level1_function();
[INFO] [stdout] 149 +                     level1_function();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `salad`
[INFO] [stdout]    --> examples/ch07_03_module_paths.rs:125:9
[INFO] [stdout]     |
[INFO] [stdout] 125 |     let salad = back_of_house::Appetizer::Salad;
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Salad`
[INFO] [stdout]     |
[INFO] [stdout] 125 -     let salad = back_of_house::Appetizer::Salad;
[INFO] [stdout] 125 +     let back_of_house::Appetizer::Salad = back_of_house::Appetizer::Salad;
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 125 |     let _salad = back_of_house::Appetizer::Salad;
[INFO] [stdout]     |         +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bread_sticks`
[INFO] [stdout]    --> examples/ch07_03_module_paths.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 |     let bread_sticks = back_of_house::Appetizer::BreadSticks;
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `BreadSticks`
[INFO] [stdout]     |
[INFO] [stdout] 126 -     let bread_sticks = back_of_house::Appetizer::BreadSticks;
[INFO] [stdout] 126 +     let back_of_house::Appetizer::BreadSticks = back_of_house::Appetizer::BreadSticks;
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 126 |     let _bread_sticks = back_of_house::Appetizer::BreadSticks;
[INFO] [stdout]     |         +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] warning: function `demonstrate_large_project` is never used
[INFO] [stdout]    --> examples/ch07_05_separating_modules.rs:152:12
[INFO] [stdout]     |
[INFO] [stdout] 152 |     pub fn demonstrate_large_project() {
[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 `demonstrate_privacy` is never used
[INFO] [stdout]    --> examples/ch07_05_separating_modules.rs:191:12
[INFO] [stdout]     |
[INFO] [stdout] 191 |     pub fn demonstrate_privacy() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-book-examples` (example "ch07_03_module_paths") due to 1 previous error; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: function `deliver_order` is never used
[INFO] [stdout]   --> examples/ch07_02_defining_modules.rs:93:8
[INFO] [stdout]    |
[INFO] [stdout] 93 |     fn deliver_order() {
[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 `fix_incorrect_order` is never used
[INFO] [stdout]   --> examples/ch07_02_defining_modules.rs:60:16
[INFO] [stdout]    |
[INFO] [stdout] 60 |         pub fn fix_incorrect_order() {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cook_order` is never used
[INFO] [stdout]   --> examples/ch07_02_defining_modules.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 66 |         fn cook_order() {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `seasonal_fruit` is never read
[INFO] [stdout]   --> examples/ch07_02_defining_modules.rs:73:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |         pub struct Breakfast {
[INFO] [stdout]    |                    --------- field in this struct
[INFO] [stdout] 72 |             pub toast: String,        // Public field
[INFO] [stdout] 73 |             seasonal_fruit: String,   // Private field
[INFO] [stdout]    |             ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `clarinet` is never used
[INFO] [stdout]    --> examples/ch07_02_defining_modules.rs:130:20
[INFO] [stdout]     |
[INFO] [stdout] 130 |             pub fn clarinet() {
[INFO] [stdout]     |                    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `job_tx`
[INFO] [stdout]    --> examples/ch16_02_message_passing.rs:198:10
[INFO] [stdout]     |
[INFO] [stdout] 198 |     let (job_tx, job_rx) = mpsc::channel::<Job>();
[INFO] [stdout]     |          ^^^^^^ help: if this is intentional, prefix it with an underscore: `_job_tx`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `job_rx`
[INFO] [stdout]    --> examples/ch16_02_message_passing.rs:198:18
[INFO] [stdout]     |
[INFO] [stdout] 198 |     let (job_tx, job_rx) = mpsc::channel::<Job>();
[INFO] [stdout]     |                  ^^^^^^ help: if this is intentional, prefix it with an underscore: `_job_rx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result_rx`
[INFO] [stdout]    --> examples/ch16_02_message_passing.rs:199:21
[INFO] [stdout]     |
[INFO] [stdout] 199 |     let (result_tx, result_rx) = mpsc::channel::<JobResult>();
[INFO] [stdout]     |                     ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_rx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result_tx`
[INFO] [stdout]    --> examples/ch16_02_message_passing.rs:204:13
[INFO] [stdout]     |
[INFO] [stdout] 204 |         let result_tx = result_tx.clone();
[INFO] [stdout]     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_tx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `post2`
[INFO] [stdout]    --> examples/ch17_03_oop_implementations.rs:233:9
[INFO] [stdout]     |
[INFO] [stdout] 233 |     let post2 = post2.reject(); // Back to draft
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_post2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_position` is never used
[INFO] [stdout]    --> examples/ch17_01_oop_characteristics.rs:140:12
[INFO] [stdout]     |
[INFO] [stdout] 138 |     trait Movable {
[INFO] [stdout]     |           ------- method in this trait
[INFO] [stdout] 139 |         fn move_to(&mut self, x: f64, y: f64);
[INFO] [stdout] 140 |         fn get_position(&self) -> (f64, f64);
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `method`, `url`, `headers`, and `body` are never read
[INFO] [stdout]    --> examples/ch17_01_oop_characteristics.rs:411:9
[INFO] [stdout]     |
[INFO] [stdout] 410 |     struct HttpRequest {
[INFO] [stdout]     |            ----------- fields in this struct
[INFO] [stdout] 411 |         method: String,
[INFO] [stdout]     |         ^^^^^^
[INFO] [stdout] 412 |         url: String,
[INFO] [stdout]     |         ^^^
[INFO] [stdout] 413 |         headers: Vec<(String, String)>,
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout] 414 |         body: Option<String>,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `HttpRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `state` is never read
[INFO] [stdout]    --> examples/ch17_01_oop_characteristics.rs:488:9
[INFO] [stdout]     |
[INFO] [stdout] 486 |     struct Post<State> {
[INFO] [stdout]     |            ---- field in this struct
[INFO] [stdout] 487 |         content: String,
[INFO] [stdout] 488 |         state: State,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `reject` is never used
[INFO] [stdout]    --> examples/ch17_01_oop_characteristics.rs:519:12
[INFO] [stdout]     |
[INFO] [stdout] 511 |     impl Post<PendingReview> {
[INFO] [stdout]     |     ------------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 519 |         fn reject(self) -> Post<Draft> {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `work_tx`
[INFO] [stdout]    --> examples/ch16_02_message_passing.rs:280:10
[INFO] [stdout]     |
[INFO] [stdout] 280 |     let (work_tx, work_rx) = mpsc::channel::<i32>();
[INFO] [stdout]     |          ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_work_tx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `work_rx`
[INFO] [stdout]    --> examples/ch16_02_message_passing.rs:280:19
[INFO] [stdout]     |
[INFO] [stdout] 280 |     let (work_tx, work_rx) = mpsc::channel::<i32>();
[INFO] [stdout]     |                   ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_work_rx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Nickel` and `Dime` are never constructed
[INFO] [stdout]   --> examples/ch06_02_match_control_flow.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | enum Coin {
[INFO] [stdout]    |      ---- variants in this enum
[INFO] [stdout] 18 |     Penny,
[INFO] [stdout] 19 |     Nickel,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 20 |     Dime,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Coin` 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] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Alabama`, `California`, and `Texas` are never constructed
[INFO] [stdout]   --> examples/ch06_02_match_control_flow.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | enum UsState {
[INFO] [stdout]    |      ------- variants in this enum
[INFO] [stdout] 26 |     Alabama,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 27 |     Alaska,
[INFO] [stdout] 28 |     California,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 29 |     Texas,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `UsState` 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 `Draw` is more private than the item `Screen::components`
[INFO] [stdout]   --> examples/ch17_02_trait_objects.rs:97:5
[INFO] [stdout]    |
[INFO] [stdout] 97 |     pub components: Vec<Box<dyn Draw>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Screen::components` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)`
[INFO] [stdout]   --> examples/ch17_02_trait_objects.rs:31:1
[INFO] [stdout]    |
[INFO] [stdout] 31 | trait Draw {
[INFO] [stdout]    | ^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Draw` is more private than the item `Screen::add_component`
[INFO] [stdout]    --> examples/ch17_02_trait_objects.rs:107:5
[INFO] [stdout]     |
[INFO] [stdout] 107 |     pub fn add_component(&mut self, component: Box<dyn Draw>) {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Screen::add_component` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> examples/ch17_02_trait_objects.rs:31:1
[INFO] [stdout]     |
[INFO] [stdout]  31 | trait Draw {
[INFO] [stdout]     | ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `NotObjectSafe` is never used
[INFO] [stdout]    --> examples/ch17_02_trait_objects.rs:249:7
[INFO] [stdout]     |
[INFO] [stdout] 249 | trait NotObjectSafe {
[INFO] [stdout]     |       ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed
[INFO] [stdout]   --> examples/ch18_01_pattern_locations.rs:44:5
[INFO] [stdout]    |
[INFO] [stdout] 43 | enum Coin {
[INFO] [stdout]    |      ---- variants in this enum
[INFO] [stdout] 44 |     Penny,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 45 |     Nickel,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 46 |     Dime,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Coin` 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] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Alabama`, `California`, and `Texas` are never constructed
[INFO] [stdout]   --> examples/ch18_01_pattern_locations.rs:52:5
[INFO] [stdout]    |
[INFO] [stdout] 51 | enum UsState {
[INFO] [stdout]    |      ------- variants in this enum
[INFO] [stdout] 52 |     Alabama,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 53 |     Alaska,
[INFO] [stdout] 54 |     California,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 55 |     Texas,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Write` and `ChangeColor` are never constructed
[INFO] [stdout]    --> examples/ch18_01_pattern_locations.rs:139:9
[INFO] [stdout]     |
[INFO] [stdout] 137 |     enum Message {
[INFO] [stdout]     |          ------- variants in this enum
[INFO] [stdout] 138 |         Hello { id: i32 },
[INFO] [stdout] 139 |         Write(String),
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 140 |         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: field `street` is never read
[INFO] [stdout]    --> examples/ch18_01_pattern_locations.rs:468:9
[INFO] [stdout]     |
[INFO] [stdout] 467 |     struct Address {
[INFO] [stdout]     |            ------- field in this struct
[INFO] [stdout] 468 |         street: String,
[INFO] [stdout]     |         ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Address` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Quit` is never constructed
[INFO] [stdout]    --> examples/ch18_01_pattern_locations.rs:505:9
[INFO] [stdout]     |
[INFO] [stdout] 504 |     enum Message {
[INFO] [stdout]     |          ------- variant in this enum
[INFO] [stdout] 505 |         Quit,
[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] [stderr] warning: unused dependency `rand`
[INFO] [stderr]  --> Cargo.toml:2:1
[INFO] [stderr]   |
[INFO] [stderr] 2 | rand = "0.8"
[INFO] [stderr]   | ^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `cargo::unused_dependencies` is set to `warn` by default
[INFO] [stderr] help: consider removing the dependency on `rand`
[INFO] [stderr] warning: `rust-book-examples` (manifest) generated 1 warning
[INFO] running `Command { std: "docker" "inspect" "9c4b8b0bdfdb6937c0d28291479f4c8f45161aff16dbfa95c041b22bea07fbb1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9c4b8b0bdfdb6937c0d28291479f4c8f45161aff16dbfa95c041b22bea07fbb1", kill_on_drop: false }`
[INFO] [stdout] 9c4b8b0bdfdb6937c0d28291479f4c8f45161aff16dbfa95c041b22bea07fbb1
