[INFO] cloning repository https://github.com/pricelessjunk/rust-tutorial
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pricelessjunk/rust-tutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpricelessjunk%2Frust-tutorial", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpricelessjunk%2Frust-tutorial'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] bfc9eccfac69168ce6a9252a66ea252f63832871
[INFO] testing pricelessjunk/rust-tutorial against try#b8e88e5ddf5521a9f43ee3f62a702388c713e4bb for pr-155114
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpricelessjunk%2Frust-tutorial" "/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/pricelessjunk/rust-tutorial
[INFO] finished tweaking git repo https://github.com/pricelessjunk/rust-tutorial
[INFO] tweaked toml for git repo https://github.com/pricelessjunk/rust-tutorial written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/pricelessjunk/rust-tutorial on toolchain b8e88e5ddf5521a9f43ee3f62a702388c713e4bb
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b8e88e5ddf5521a9f43ee3f62a702388c713e4bb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/pricelessjunk/rust-tutorial 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" "+b8e88e5ddf5521a9f43ee3f62a702388c713e4bb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
[INFO] [stderr] package:   /workspace/builds/worker-0-tc2/source/chapter09/Cargo.toml
[INFO] [stderr] workspace: /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] [stderr] warning: /workspace/builds/worker-0-tc2/source/chapter12/Cargo.toml: unused manifest key: package.descriptions
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[ERROR] error running command: no output for 300 seconds
[INFO] testing pricelessjunk/rust-tutorial against try#b8e88e5ddf5521a9f43ee3f62a702388c713e4bb for pr-155114
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpricelessjunk%2Frust-tutorial" "/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/pricelessjunk/rust-tutorial
[INFO] finished tweaking git repo https://github.com/pricelessjunk/rust-tutorial
[INFO] tweaked toml for git repo https://github.com/pricelessjunk/rust-tutorial written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/pricelessjunk/rust-tutorial on toolchain b8e88e5ddf5521a9f43ee3f62a702388c713e4bb
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b8e88e5ddf5521a9f43ee3f62a702388c713e4bb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/pricelessjunk/rust-tutorial 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" "+b8e88e5ddf5521a9f43ee3f62a702388c713e4bb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
[INFO] [stderr] package:   /workspace/builds/worker-0-tc2/source/chapter09/Cargo.toml
[INFO] [stderr] workspace: /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] [stderr] warning: /workspace/builds/worker-0-tc2/source/chapter12/Cargo.toml: unused manifest key: package.descriptions
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded dtoa v1.0.10
[INFO] [stderr]   Downloaded miniz_oxide v0.8.7
[INFO] [stderr]   Downloaded scraper v0.17.1
[INFO] [stderr]   Downloaded derive_more v0.99.19
[INFO] [stderr]   Downloaded errno v0.3.11
[INFO] [stderr]   Downloaded icu_normalizer_data v1.5.1
[INFO] [stderr]   Downloaded tempfile v3.19.1
[INFO] [stderr]   Downloaded openssl-sys v0.9.107
[INFO] [stderr]   Downloaded cc v1.2.18
[INFO] [stderr]   Downloaded tokio-util v0.7.14
[INFO] [stderr]   Downloaded openssl v0.10.72
[INFO] [stderr]   Downloaded rustix v1.0.5
[INFO] [stderr]   Downloaded linux-raw-sys v0.9.3
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b8e88e5ddf5521a9f43ee3f62a702388c713e4bb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3155487da9e4f0933620e76a95c89aaae54d60b5a601540c7c932c042c1a4158
[INFO] running `Command { std: "docker" "start" "-a" "3155487da9e4f0933620e76a95c89aaae54d60b5a601540c7c932c042c1a4158", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3155487da9e4f0933620e76a95c89aaae54d60b5a601540c7c932c042c1a4158", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3155487da9e4f0933620e76a95c89aaae54d60b5a601540c7c932c042c1a4158", kill_on_drop: false }`
[INFO] [stdout] 3155487da9e4f0933620e76a95c89aaae54d60b5a601540c7c932c042c1a4158
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b8e88e5ddf5521a9f43ee3f62a702388c713e4bb" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 57d1eea409f1459afe50920e0d4b148e3f8966f9c059ba39b2ec3a6cec39c913
[INFO] running `Command { std: "docker" "start" "-a" "57d1eea409f1459afe50920e0d4b148e3f8966f9c059ba39b2ec3a6cec39c913", kill_on_drop: false }`
[INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
[INFO] [stderr] package:   /opt/rustwide/workdir/chapter09/Cargo.toml
[INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml
[INFO] [stderr] warning: /opt/rustwide/workdir/chapter12/Cargo.toml: unused manifest key: package.descriptions
[INFO] [stderr]    Compiling proc-macro2 v1.0.94
[INFO] [stderr]    Compiling libc v0.2.171
[INFO] [stderr]    Compiling smallvec v1.15.0
[INFO] [stderr]    Compiling stable_deref_trait v1.2.0
[INFO] [stderr]    Compiling zerocopy v0.8.24
[INFO] [stderr]    Compiling phf_shared v0.11.3
[INFO] [stderr]    Compiling phf_shared v0.10.0
[INFO] [stderr]    Compiling cc v1.2.18
[INFO] [stderr]    Compiling litemap v0.7.5
[INFO] [stderr]    Compiling icu_locid_transform_data v1.5.1
[INFO] [stderr]    Compiling writeable v0.5.5
[INFO] [stderr]    Compiling icu_properties_data v1.5.1
[INFO] [stderr]    Compiling new_debug_unreachable v1.0.6
[INFO] [stderr]    Compiling icu_normalizer_data v1.5.1
[INFO] [stderr]    Compiling openssl v0.10.72
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling http v0.2.12
[INFO] [stderr]    Compiling mac v0.1.1
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling precomputed-hash v0.1.1
[INFO] [stderr]    Compiling write16 v1.0.0
[INFO] [stderr]    Compiling futures-task v0.3.31
[INFO] [stderr]    Compiling utf16_iter v1.0.5
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling futf v0.1.5
[INFO] [stderr]    Compiling indexmap v2.9.0
[INFO] [stderr]    Compiling phf v0.10.1
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling dtoa v1.0.10
[INFO] [stderr]    Compiling tendril v0.4.3
[INFO] [stderr]    Compiling ahash v0.8.11
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling fxhash v0.2.1
[INFO] [stderr]    Compiling servo_arc v0.3.0
[INFO] [stderr]    Compiling rustls-pemfile v1.0.4
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling dtoa-short v0.3.5
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling getopts v0.2.21
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling ego-tree v0.6.3
[INFO] [stderr]    Compiling ipnet v2.11.0
[INFO] [stderr]    Compiling sync_wrapper v0.1.2
[INFO] [stderr]    Compiling chapter12 v0.1.0 (/opt/rustwide/workdir/chapter12)
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling socket2 v0.5.9
[INFO] [stderr]    Compiling syn v2.0.100
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling mio v1.0.3
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stdout] warning: struct `Config` is never constructed
[INFO] [stdout]   --> chapter12/src/main.rs:55:8
[INFO] [stdout]    |
[INFO] [stdout] 55 | struct Config {
[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 `parse_config` is never used
[INFO] [stdout]   --> chapter12/src/main.rs:60:4
[INFO] [stdout]    |
[INFO] [stdout] 60 | fn parse_config(args: &[String]) -> Config {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> chapter12/src/main.rs:75:8
[INFO] [stdout]    |
[INFO] [stdout] 74 | impl Config {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 75 |     fn new(args: &[String]) -> Result<Config, &'static str> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling string_cache v0.8.9
[INFO] [stderr]    Compiling chapter13 v0.1.0 (/opt/rustwide/workdir/chapter13)
[INFO] [stderr]    Compiling chapter18 v0.1.0 (/opt/rustwide/workdir/chapter18)
[INFO] [stderr]    Compiling chapter09 v0.1.0 (/opt/rustwide/workdir/chapter09)
[INFO] [stdout] warning: unused variable: `the_file`
[INFO] [stdout]   --> chapter09/src/main.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let the_file = match file_result {
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_the_file`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `another_file`
[INFO] [stdout]   --> chapter09/src/main.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |     let another_file = File::open("something.txt").unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `third_file`
[INFO] [stdout]   --> chapter09/src/main.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |     let third_file = File::open("lla").expect("Custom error message");
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_third_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `manual_panic` is never used
[INFO] [stdout]   --> chapter09/src/main.rs:28:4
[INFO] [stdout]    |
[INFO] [stdout] 28 | fn manual_panic() {
[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 `unwrap_method` is never used
[INFO] [stdout]   --> chapter09/src/main.rs:33:4
[INFO] [stdout]    |
[INFO] [stdout] 33 | fn unwrap_method() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `expect_method` is never used
[INFO] [stdout]   --> chapter09/src/main.rs:38:4
[INFO] [stdout]    |
[INFO] [stdout] 38 | fn expect_method() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_from_file` is never used
[INFO] [stdout]   --> chapter09/src/main.rs:45:4
[INFO] [stdout]    |
[INFO] [stdout] 45 | fn read_from_file() -> Result<String, Box<dyn Error>> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling chapter20 v0.1.0 (/opt/rustwide/workdir/chapter20)
[INFO] [stderr]    Compiling try_out v0.1.0 (/opt/rustwide/workdir/try_out)
[INFO] [stderr]    Compiling chapter11 v0.1.0 (/opt/rustwide/workdir/chapter11)
[INFO] [stderr]    Compiling chapter19 v0.1.0 (/opt/rustwide/workdir/chapter19)
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> try_out/src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::env;
[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 variable: `s`
[INFO] [stdout]  --> try_out/src/main.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let s = true;
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stdout] warning: struct `Try` is never constructed
[INFO] [stdout]  --> try_out/src/main.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | struct Try {
[INFO] [stdout]   |        ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `z`
[INFO] [stdout]   --> chapter19/src/main.rs:30:23
[INFO] [stdout]    |
[INFO] [stdout] 30 |     let Point { x, y, z } = p;
[INFO] [stdout]    |                       ^ help: try ignoring the field: `z: _`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling chapter16 v0.1.0 (/opt/rustwide/workdir/chapter16)
[INFO] [stdout] warning: function `dangerous` is never used
[INFO] [stdout]   --> chapter20/src/main.rs:28:11
[INFO] [stdout]    |
[INFO] [stdout] 28 | unsafe fn dangerous() {}
[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 `abs` is never used
[INFO] [stdout]   --> chapter20/src/main.rs:58:8
[INFO] [stdout]    |
[INFO] [stdout] 58 |     fn abs(input: c_int) -> c_int;
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Iterator` is never used
[INFO] [stdout]  --> chapter20/src/advanced_traits.rs:6:11
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub trait Iterator {
[INFO] [stdout]   |           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Point` is never constructed
[INFO] [stdout]   --> chapter20/src/advanced_traits.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | struct Point {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Millimeters` is never constructed
[INFO] [stdout]   --> chapter20/src/advanced_traits.rs:43:8
[INFO] [stdout]    |
[INFO] [stdout] 43 | struct Millimeters(u32);
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Meters` is never constructed
[INFO] [stdout]   --> chapter20/src/advanced_traits.rs:44:8
[INFO] [stdout]    |
[INFO] [stdout] 44 | struct Meters(u32);
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Trait1` is never used
[INFO] [stdout]   --> chapter20/src/advanced_traits.rs:55:7
[INFO] [stdout]    |
[INFO] [stdout] 55 | trait Trait1 {
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Trait2` is never used
[INFO] [stdout]   --> chapter20/src/advanced_traits.rs:59:7
[INFO] [stdout]    |
[INFO] [stdout] 59 | trait Trait2 {
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Child` is never constructed
[INFO] [stdout]   --> chapter20/src/advanced_traits.rs:64:8
[INFO] [stdout]    |
[INFO] [stdout] 64 | struct Child;
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `func_name` and `no_self_func` are never used
[INFO] [stdout]   --> chapter20/src/advanced_traits.rs:83:8
[INFO] [stdout]    |
[INFO] [stdout] 82 | impl Child {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 83 |     fn func_name(&self) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 87 |     fn no_self_func() {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `OutlinePrint` is never used
[INFO] [stdout]    --> chapter20/src/advanced_traits.rs:103:7
[INFO] [stdout]     |
[INFO] [stdout] 103 | trait OutlinePrint: fmt::Display {}
[INFO] [stdout]     |       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Wrapper` is never constructed
[INFO] [stdout]    --> chapter20/src/advanced_traits.rs:113:8
[INFO] [stdout]     |
[INFO] [stdout] 113 | struct Wrapper(Vec<String>);
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling chapter06 v0.1.0 (/opt/rustwide/workdir/chapter06)
[INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, `mpsc`, `thread`, and `time::Duration`
[INFO] [stdout]  --> chapter16/src/main.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 |     sync::{Arc, Mutex, mpsc},
[INFO] [stdout]   |            ^^^  ^^^^^  ^^^^
[INFO] [stdout] 3 |     thread,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 4 |     time::Duration,
[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 variable: `four`
[INFO] [stdout]  --> chapter06/src/main.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let four = IpAddrKind::V4;
[INFO] [stdout]   |         ^^^^ help: if this is intentional, prefix it with an underscore: `_four`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `six`
[INFO] [stdout]  --> chapter06/src/main.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let six = IpAddrKind::V6;
[INFO] [stdout]   |         ^^^ help: if this is intentional, prefix it with an underscore: `_six`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `home`
[INFO] [stdout]  --> chapter06/src/main.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |     let home = IpAddr::V4(String::from("127.0.0.1"));
[INFO] [stdout]   |         ^^^^ help: if this is intentional, prefix it with an underscore: `_home`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> chapter06/src/main.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let x: Option<i8> = Some(6);
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> chapter06/src/main.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let y: i8 = 3;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> chapter06/src/main.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |         other => 0,
[INFO] [stdout]    |         ^^^^^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> chapter06/src/main.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |         IpAddrKind::V4 => 4,
[INFO] [stdout]    |         -------------- matches some of the same values
[INFO] [stdout] 36 |         IpAddrKind::V6 => 6,
[INFO] [stdout]    |         -------------- matches some of the same values
[INFO] [stdout] 37 |         other => 0,
[INFO] [stdout]    |         ^^^^^ collectively making this unreachable
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> chapter06/src/main.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |         _ => 0,
[INFO] [stdout]    |         ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> chapter06/src/main.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |         IpAddrKind::V4 => 4,
[INFO] [stdout]    |         -------------- matches some of the same values
[INFO] [stdout] 36 |         IpAddrKind::V6 => 6,
[INFO] [stdout]    |         -------------- matches some of the same values
[INFO] [stdout] 37 |         other => 0,
[INFO] [stdout] 38 |         _ => 0,
[INFO] [stdout]    |         ^ collectively making this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `other`
[INFO] [stdout]   --> chapter06/src/main.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |         other => 0,
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_other`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> chapter06/src/main.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 |     V4(String),
[INFO] [stdout]    |     -- ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[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] 48 -     V4(String),
[INFO] [stdout] 48 +     V4(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> chapter06/src/main.rs:49:8
[INFO] [stdout]    |
[INFO] [stdout] 49 |     V6(String),
[INFO] [stdout]    |     -- ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 49 -     V6(String),
[INFO] [stdout] 49 +     V6(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `optVal` should have a snake case name
[INFO] [stdout]   --> chapter06/src/main.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let optVal: Option<u8> = Some(5);
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `opt_val`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling chapter15 v0.1.0 (/opt/rustwide/workdir/chapter15)
[INFO] [stderr]    Compiling chapter05 v0.1.0 (/opt/rustwide/workdir/chapter05)
[INFO] [stderr]    Compiling chapter03 v0.1.0 (/opt/rustwide/workdir/chapter03)
[INFO] [stderr]    Compiling chapter04 v0.1.0 (/opt/rustwide/workdir/chapter04)
[INFO] [stdout] warning: unused import: `result`
[INFO] [stdout]  --> chapter03/src/main.rs:1:15
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{io, result};
[INFO] [stdout]   |               ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling chapter07 v0.1.0 (/opt/rustwide/workdir/chapter07)
[INFO] [stdout] warning: unused variable: `init_shorthand_user`
[INFO] [stdout]   --> chapter05/src/main.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let init_shorthand_user = User { active, name, age };
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_shorthand_user`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user_copy`
[INFO] [stdout]   --> chapter05/src/main.rs:28:9
[INFO] [stdout]    |
[INFO] [stdout] 28 |     let user_copy = User { age: 37, ..user };
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_copy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `active` is never read
[INFO] [stdout]   --> chapter05/src/main.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 46 | struct User {
[INFO] [stdout]    |        ---- field in this struct
[INFO] [stdout] 47 |     active: bool,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `User` 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] [stderr]    Compiling chapter10 v0.1.0 (/opt/rustwide/workdir/chapter10)
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> chapter03/src/main.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let mut y = 4; //changing to mut
[INFO] [stdout]   |         ----^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         help: remove this `mut`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> chapter03/src/main.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let mut spaces = "   ";
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> chapter03/src/main.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let mut spaces = spaces.len();
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]  --> chapter03/src/main.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |     let x = 5; // immutable i32
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]  --> chapter03/src/main.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let mut y = 4; //changing to mut
[INFO] [stdout]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `spaces`
[INFO] [stdout]   --> chapter03/src/main.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let mut spaces = spaces.len();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spaces`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `decimal`
[INFO] [stdout]   --> chapter03/src/main.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let decimal: i32 = 98_222;
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decimal`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hex`
[INFO] [stdout]   --> chapter03/src/main.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let hex = 0xfff;
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_hex`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `octal`
[INFO] [stdout]   --> chapter03/src/main.rs:33:9
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let octal = 0o77;
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_octal`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bin`
[INFO] [stdout]   --> chapter03/src/main.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |     let bin = 0b11110000;
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_bin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `byte`
[INFO] [stdout]   --> chapter03/src/main.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |     let byte: u8 = b'A';
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_byte`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> chapter03/src/main.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |     let x = 2.0; //f64
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> chapter03/src/main.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let y: f32 = 2.0; //f32
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> chapter03/src/main.rs:40:9
[INFO] [stdout]    |
[INFO] [stdout] 40 |     let t = true;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]   --> chapter03/src/main.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     let f = false;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `heart_eyed_cat`
[INFO] [stdout]   --> chapter03/src/main.rs:43:9
[INFO] [stdout]    |
[INFO] [stdout] 43 |     let heart_eyed_cat = '😻';
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heart_eyed_cat`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]   --> chapter03/src/main.rs:49:10
[INFO] [stdout]    |
[INFO] [stdout] 49 |     let (a, b, c) = tup;
[INFO] [stdout]    |          ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout]   --> chapter03/src/main.rs:49:13
[INFO] [stdout]    |
[INFO] [stdout] 49 |     let (a, b, c) = tup;
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `c`
[INFO] [stdout]   --> chapter03/src/main.rs:49:16
[INFO] [stdout]    |
[INFO] [stdout] 49 |     let (a, b, c) = tup;
[INFO] [stdout]    |                ^ help: if this is intentional, prefix it with an underscore: `_c`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `months`
[INFO] [stdout]   --> chapter03/src/main.rs:55:9
[INFO] [stdout]    |
[INFO] [stdout] 55 |     let months: [&str; 2] = ["Jan", "Feb"];
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `threeArr`
[INFO] [stdout]   --> chapter03/src/main.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let threeArr = [3; 5]; // [3, 3, 3, 3, 3]
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threeArr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `element`
[INFO] [stdout]   --> chapter03/src/main.rs:65:9
[INFO] [stdout]    |
[INFO] [stdout] 65 |     let element = arr[index]; // Throws error at runtime if size greater
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `absNumber`
[INFO] [stdout]   --> chapter03/src/main.rs:80:9
[INFO] [stdout]    |
[INFO] [stdout] 80 |     let absNumber = if number < 0 { number * -1 } else { number };
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_absNumber`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> chapter03/src/main.rs:89:9
[INFO] [stdout]    |
[INFO] [stdout] 89 |     let result = loop {
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]  --> chapter04/src/main.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let r = &mut s;
[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: unused variable: `r_immut`
[INFO] [stdout]  --> chapter04/src/main.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let r_immut = &s;
[INFO] [stdout]   |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_immut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r_immut_2`
[INFO] [stdout]   --> chapter04/src/main.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let r_immut_2 = &s;
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_immut_2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `THREE` is never used
[INFO] [stdout]  --> chapter03/src/main.rs:8:11
[INFO] [stdout]   |
[INFO] [stdout] 8 |     const THREE: u32 = 3;
[INFO] [stdout]   |           ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `threeArr` should have a snake case name
[INFO] [stdout]   --> chapter03/src/main.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let threeArr = [3; 5]; // [3, 3, 3, 3, 3]
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `three_arr`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `absNumber` should have a snake case name
[INFO] [stdout]   --> chapter03/src/main.rs:80:9
[INFO] [stdout]    |
[INFO] [stdout] 80 |     let absNumber = if number < 0 { number * -1 } else { number };
[INFO] [stdout]    |         ^^^^^^^^^ help: convert the identifier to snake case: `abs_number`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `dangling_reference` is never used
[INFO] [stdout]   --> chapter04/src/main.rs:35:4
[INFO] [stdout]    |
[INFO] [stdout] 35 | fn dangling_reference() -> String {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]   --> chapter10/src/traits.rs:45:18
[INFO] [stdout]    |
[INFO] [stdout] 45 | fn combined_func(item: &(impl Summary + Display)) {}
[INFO] [stdout]    |                  ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]   --> chapter10/src/traits.rs:47:44
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn combined_func_gen<T: Summary + Display>(item: &T) {}
[INFO] [stdout]    |                                            ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> chapter10/src/traits.rs:50:23
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn where_clause<T, U>(t: &T, u: &U) -> i32
[INFO] [stdout]    |                       ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `u`
[INFO] [stdout]   --> chapter10/src/traits.rs:50:30
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn where_clause<T, U>(t: &T, u: &U) -> i32
[INFO] [stdout]    |                              ^ help: if this is intentional, prefix it with an underscore: `_u`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `y` is never read
[INFO] [stdout]   --> chapter10/src/main.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 30 | struct Point<T> {
[INFO] [stdout]    |        ----- field in this struct
[INFO] [stdout] 31 |     x: T,
[INFO] [stdout] 32 |     y: T,
[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 `notify_genral` is never used
[INFO] [stdout]   --> chapter10/src/traits.rs:40:4
[INFO] [stdout]    |
[INFO] [stdout] 40 | fn notify_genral<T: Summary>(item: &T) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `combined_func` is never used
[INFO] [stdout]   --> chapter10/src/traits.rs:45:4
[INFO] [stdout]    |
[INFO] [stdout] 45 | fn combined_func(item: &(impl Summary + Display)) {}
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `combined_func_gen` is never used
[INFO] [stdout]   --> chapter10/src/traits.rs:47:4
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn combined_func_gen<T: Summary + Display>(item: &T) {}
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `where_clause` is never used
[INFO] [stdout]   --> chapter10/src/traits.rs:50:4
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn where_clause<T, U>(t: &T, u: &U) -> i32
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `return_types` is never used
[INFO] [stdout]   --> chapter10/src/traits.rs:59:4
[INFO] [stdout]    |
[INFO] [stdout] 59 | fn return_types(flag: bool) -> impl Summary {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `longest_with_announcement` is never used
[INFO] [stdout]   --> chapter10/src/traits.rs:81:4
[INFO] [stdout]    |
[INFO] [stdout] 81 | fn longest_with_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `outer_func` is never used
[INFO] [stdout]   --> chapter07/src/main.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 |     fn outer_func() {}
[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 `seat_at_table` is never used
[INFO] [stdout]   --> chapter07/src/main.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 10 |         fn seat_at_table() {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `take_order` is never used
[INFO] [stdout]   --> chapter07/src/main.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 17 |         fn take_order() {}
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `serve_order` is never used
[INFO] [stdout]   --> chapter07/src/main.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 |         fn serve_order() {}
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `take_payment` is never used
[INFO] [stdout]   --> chapter07/src/main.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 |         fn take_payment() {}
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling chapter08 v0.1.0 (/opt/rustwide/workdir/chapter08)
[INFO] [stderr]    Compiling openssl-sys v0.9.107
[INFO] [stdout] warning: unused import: `fmt`
[INFO] [stdout]  --> chapter08/src/main.rs:1:33
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{collections::HashMap, fmt};
[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 variable: `v2`
[INFO] [stdout]   --> chapter08/src/main.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let v2 = vec![1, 2, 3]; // At the end of the scope this contents of the elements will also
[INFO] [stdout]    |         ^^ help: if this is intentional, prefix it with an underscore: `_v2`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `third`
[INFO] [stdout]   --> chapter08/src/main.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let third: &i32 = &v[2];
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_third`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `hindiStr` should have a snake case name
[INFO] [stdout]   --> chapter08/src/main.rs:67:9
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let hindiStr = String::from("नमस्ते");
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `hindi_str`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::str::<impl str>::split_whitespace` that must be used
[INFO] [stdout]   --> chapter08/src/main.rs:95:5
[INFO] [stdout]    |
[INFO] [stdout] 95 |     text.split_whitespace();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this returns the split string as an iterator, without modifying the original
[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] 95 |     let _ = text.split_whitespace();
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling phf_generator v0.11.3
[INFO] [stderr]    Compiling phf_generator v0.10.0
[INFO] [stderr]    Compiling phf_codegen v0.10.0
[INFO] [stderr]    Compiling selectors v0.25.0
[INFO] [stderr]    Compiling string_cache_codegen v0.5.4
[INFO] [stderr]    Compiling markup5ever v0.11.0
[INFO] [stderr]    Compiling synstructure v0.13.1
[INFO] [stderr]    Compiling html5ever v0.26.0
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.7.5
[INFO] [stderr]    Compiling zerovec-derive v0.10.3
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling icu_provider_macros v1.5.0
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling phf_macros v0.11.3
[INFO] [stderr]    Compiling cssparser-macros v0.6.1
[INFO] [stderr]    Compiling derive_more v0.99.19
[INFO] [stderr]    Compiling tokio v1.44.2
[INFO] [stderr]    Compiling phf v0.11.3
[INFO] [stderr]    Compiling cssparser v0.31.2
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.7.5
[INFO] [stderr]    Compiling zerovec v0.10.4
[INFO] [stderr]    Compiling tinystr v0.7.6
[INFO] [stderr]    Compiling icu_collections v1.5.0
[INFO] [stderr]    Compiling scraper v0.17.1
[INFO] [stderr]    Compiling icu_locid v1.5.0
[INFO] [stderr]    Compiling icu_provider v1.5.0
[INFO] [stderr]    Compiling icu_locid_transform v1.5.0
[INFO] [stderr]    Compiling icu_properties v1.5.1
[INFO] [stderr]    Compiling tokio-util v0.7.14
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling icu_normalizer v1.5.0
[INFO] [stderr]    Compiling h2 v0.3.26
[INFO] [stderr]    Compiling idna_adapter v1.2.0
[INFO] [stderr]    Compiling idna v1.0.3
[INFO] [stderr]    Compiling url v2.5.4
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.27
[INFO] [stderr]    Compiling chapter17 v0.1.0 (/opt/rustwide/workdir/chapter17)
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> chapter17/src/async_traits.rs:3:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::pin::{self, Pin};
[INFO] [stdout]   |                ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Future` is never used
[INFO] [stdout]  --> chapter17/src/async_traits.rs:6:11
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub trait Future {
[INFO] [stdout]   |           ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Stream` is never used
[INFO] [stdout]   --> chapter17/src/async_traits.rs:28:7
[INFO] [stdout]    |
[INFO] [stdout] 28 | trait Stream {
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 59.27s
[INFO] running `Command { std: "docker" "inspect" "57d1eea409f1459afe50920e0d4b148e3f8966f9c059ba39b2ec3a6cec39c913", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "57d1eea409f1459afe50920e0d4b148e3f8966f9c059ba39b2ec3a6cec39c913", kill_on_drop: false }`
[INFO] [stdout] 57d1eea409f1459afe50920e0d4b148e3f8966f9c059ba39b2ec3a6cec39c913
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b8e88e5ddf5521a9f43ee3f62a702388c713e4bb" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1aaa35ff253974e478d41feb01ce27c3417340c9f9b03ee9b4c9f8071aee0d3c
[INFO] running `Command { std: "docker" "start" "-a" "1aaa35ff253974e478d41feb01ce27c3417340c9f9b03ee9b4c9f8071aee0d3c", kill_on_drop: false }`
[INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
[INFO] [stderr] package:   /opt/rustwide/workdir/chapter09/Cargo.toml
[INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml
[INFO] [stderr] warning: /opt/rustwide/workdir/chapter12/Cargo.toml: unused manifest key: package.descriptions
[INFO] [stderr]    Compiling chapter11 v0.1.0 (/opt/rustwide/workdir/chapter11)
[INFO] [stderr]    Compiling chapter12 v0.1.0 (/opt/rustwide/workdir/chapter12)
[INFO] [stderr]    Compiling chapter07 v0.1.0 (/opt/rustwide/workdir/chapter07)
[INFO] [stderr]    Compiling chapter20 v0.1.0 (/opt/rustwide/workdir/chapter20)
[INFO] [stderr]    Compiling chapter03 v0.1.0 (/opt/rustwide/workdir/chapter03)
[INFO] [stderr]    Compiling try_out v0.1.0 (/opt/rustwide/workdir/try_out)
[INFO] [stderr]    Compiling chapter19 v0.1.0 (/opt/rustwide/workdir/chapter19)
[INFO] [stderr]    Compiling chapter04 v0.1.0 (/opt/rustwide/workdir/chapter04)
[INFO] [stderr]    Compiling chapter16 v0.1.0 (/opt/rustwide/workdir/chapter16)
[INFO] [stderr]    Compiling chapter13 v0.1.0 (/opt/rustwide/workdir/chapter13)
[INFO] [stderr]    Compiling chapter08 v0.1.0 (/opt/rustwide/workdir/chapter08)
[INFO] [stderr]    Compiling chapter06 v0.1.0 (/opt/rustwide/workdir/chapter06)
[INFO] [stderr]    Compiling chapter05 v0.1.0 (/opt/rustwide/workdir/chapter05)
[INFO] [stderr]    Compiling chapter17 v0.1.0 (/opt/rustwide/workdir/chapter17)
[INFO] [stdout] warning: trait `Iterator` is never used
[INFO] [stdout]  --> chapter20/src/advanced_traits.rs:6:11
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub trait Iterator {
[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 `Point` is never constructed
[INFO] [stdout]   --> chapter20/src/advanced_traits.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | struct Point {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Millimeters` is never constructed
[INFO] [stdout]   --> chapter20/src/advanced_traits.rs:43:8
[INFO] [stdout]    |
[INFO] [stdout] 43 | struct Millimeters(u32);
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Meters` is never constructed
[INFO] [stdout]   --> chapter20/src/advanced_traits.rs:44:8
[INFO] [stdout]    |
[INFO] [stdout] 44 | struct Meters(u32);
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `OutlinePrint` is never used
[INFO] [stdout]    --> chapter20/src/advanced_traits.rs:103:7
[INFO] [stdout]     |
[INFO] [stdout] 103 | trait OutlinePrint: fmt::Display {}
[INFO] [stdout]     |       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Wrapper` is never constructed
[INFO] [stdout]    --> chapter20/src/advanced_traits.rs:113:8
[INFO] [stdout]     |
[INFO] [stdout] 113 | struct Wrapper(Vec<String>);
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `outer_func` is never used
[INFO] [stdout]   --> chapter07/src/main.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 |     fn outer_func() {}
[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 `seat_at_table` is never used
[INFO] [stdout]   --> chapter07/src/main.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 10 |         fn seat_at_table() {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `take_order` is never used
[INFO] [stdout]   --> chapter07/src/main.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 17 |         fn take_order() {}
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `serve_order` is never used
[INFO] [stdout]   --> chapter07/src/main.rs:18:12
[INFO] [stdout]    |
[INFO] [stdout] 18 |         fn serve_order() {}
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `take_payment` is never used
[INFO] [stdout]   --> chapter07/src/main.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 |         fn take_payment() {}
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r`
[INFO] [stdout]  --> chapter04/src/main.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let r = &mut s;
[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: unused variable: `r_immut`
[INFO] [stdout]  --> chapter04/src/main.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let r_immut = &s;
[INFO] [stdout]   |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_immut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `r_immut_2`
[INFO] [stdout]   --> chapter04/src/main.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let r_immut_2 = &s;
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_immut_2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> try_out/src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `dangling_reference` is never used
[INFO] [stdout]   --> chapter04/src/main.rs:35:4
[INFO] [stdout]    |
[INFO] [stdout] 35 | fn dangling_reference() -> String {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]  --> try_out/src/main.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let s = true;
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Try` is never constructed
[INFO] [stdout]  --> try_out/src/main.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | struct Try {
[INFO] [stdout]   |        ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `result`
[INFO] [stdout]  --> chapter03/src/main.rs:1:15
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{io, 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: `fmt`
[INFO] [stdout]  --> chapter08/src/main.rs:1:33
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{collections::HashMap, fmt};
[INFO] [stdout]   |                                 ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> chapter03/src/main.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let mut y = 4; //changing to mut
[INFO] [stdout]   |         ----^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         help: remove this `mut`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> chapter03/src/main.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let mut spaces = "   ";
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> chapter03/src/main.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let mut spaces = spaces.len();
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]  --> chapter03/src/main.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |     let x = 5; // immutable i32
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]  --> chapter03/src/main.rs:6:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let mut y = 4; //changing to mut
[INFO] [stdout]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `spaces`
[INFO] [stdout]   --> chapter03/src/main.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let mut spaces = spaces.len();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spaces`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `decimal`
[INFO] [stdout]   --> chapter03/src/main.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let decimal: i32 = 98_222;
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decimal`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `hex`
[INFO] [stdout]   --> chapter03/src/main.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let hex = 0xfff;
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_hex`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `octal`
[INFO] [stdout]   --> chapter03/src/main.rs:33:9
[INFO] [stdout]    |
[INFO] [stdout] 33 |     let octal = 0o77;
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_octal`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bin`
[INFO] [stdout]   --> chapter03/src/main.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |     let bin = 0b11110000;
[INFO] [stdout]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_bin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `byte`
[INFO] [stdout]   --> chapter03/src/main.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |     let byte: u8 = b'A';
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_byte`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> chapter03/src/main.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |     let x = 2.0; //f64
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> chapter03/src/main.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |     let y: f32 = 2.0; //f32
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> chapter03/src/main.rs:40:9
[INFO] [stdout]    |
[INFO] [stdout] 40 |     let t = true;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]   --> chapter03/src/main.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 |     let f = false;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `heart_eyed_cat`
[INFO] [stdout]   --> chapter03/src/main.rs:43:9
[INFO] [stdout]    |
[INFO] [stdout] 43 |     let heart_eyed_cat = '😻';
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heart_eyed_cat`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout]   --> chapter03/src/main.rs:49:10
[INFO] [stdout]    |
[INFO] [stdout] 49 |     let (a, b, c) = tup;
[INFO] [stdout]    |          ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout]   --> chapter03/src/main.rs:49:13
[INFO] [stdout]    |
[INFO] [stdout] 49 |     let (a, b, c) = tup;
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `c`
[INFO] [stdout]   --> chapter03/src/main.rs:49:16
[INFO] [stdout]    |
[INFO] [stdout] 49 |     let (a, b, c) = tup;
[INFO] [stdout]    |                ^ help: if this is intentional, prefix it with an underscore: `_c`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `months`
[INFO] [stdout]   --> chapter03/src/main.rs:55:9
[INFO] [stdout]    |
[INFO] [stdout] 55 |     let months: [&str; 2] = ["Jan", "Feb"];
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `threeArr`
[INFO] [stdout]   --> chapter03/src/main.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let threeArr = [3; 5]; // [3, 3, 3, 3, 3]
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threeArr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `element`
[INFO] [stdout]   --> chapter03/src/main.rs:65:9
[INFO] [stdout]    |
[INFO] [stdout] 65 |     let element = arr[index]; // Throws error at runtime if size greater
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `absNumber`
[INFO] [stdout]   --> chapter03/src/main.rs:80:9
[INFO] [stdout]    |
[INFO] [stdout] 80 |     let absNumber = if number < 0 { number * -1 } else { number };
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_absNumber`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result`
[INFO] [stdout]   --> chapter03/src/main.rs:89:9
[INFO] [stdout]    |
[INFO] [stdout] 89 |     let result = loop {
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `threeArr` should have a snake case name
[INFO] [stdout]   --> chapter03/src/main.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let threeArr = [3; 5]; // [3, 3, 3, 3, 3]
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `three_arr`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `absNumber` should have a snake case name
[INFO] [stdout]   --> chapter03/src/main.rs:80:9
[INFO] [stdout]    |
[INFO] [stdout] 80 |     let absNumber = if number < 0 { number * -1 } else { number };
[INFO] [stdout]    |         ^^^^^^^^^ help: convert the identifier to snake case: `abs_number`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v2`
[INFO] [stdout]   --> chapter08/src/main.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let v2 = vec![1, 2, 3]; // At the end of the scope this contents of the elements will also
[INFO] [stdout]    |         ^^ help: if this is intentional, prefix it with an underscore: `_v2`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `third`
[INFO] [stdout]   --> chapter08/src/main.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let third: &i32 = &v[2];
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_third`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `hindiStr` should have a snake case name
[INFO] [stdout]   --> chapter08/src/main.rs:67:9
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let hindiStr = String::from("नमस्ते");
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `hindi_str`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `core::str::<impl str>::split_whitespace` that must be used
[INFO] [stdout]   --> chapter08/src/main.rs:95:5
[INFO] [stdout]    |
[INFO] [stdout] 95 |     text.split_whitespace();
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this returns the split string as an iterator, without modifying the original
[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] 95 |     let _ = text.split_whitespace();
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `z`
[INFO] [stdout]   --> chapter19/src/main.rs:30:23
[INFO] [stdout]    |
[INFO] [stdout] 30 |     let Point { x, y, z } = p;
[INFO] [stdout]    |                       ^ help: try ignoring the field: `z: _`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> chapter17/src/async_traits.rs:3:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::pin::{self, Pin};
[INFO] [stdout]   |                ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling chapter10 v0.1.0 (/opt/rustwide/workdir/chapter10)
[INFO] [stdout] warning: unused variable: `four`
[INFO] [stdout]  --> chapter06/src/main.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let four = IpAddrKind::V4;
[INFO] [stdout]   |         ^^^^ help: if this is intentional, prefix it with an underscore: `_four`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `six`
[INFO] [stdout]  --> chapter06/src/main.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let six = IpAddrKind::V6;
[INFO] [stdout]   |         ^^^ help: if this is intentional, prefix it with an underscore: `_six`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `home`
[INFO] [stdout]  --> chapter06/src/main.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 |     let home = IpAddr::V4(String::from("127.0.0.1"));
[INFO] [stdout]   |         ^^^^ help: if this is intentional, prefix it with an underscore: `_home`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> chapter06/src/main.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout] 10 |     let x: Option<i8> = Some(6);
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]   --> chapter06/src/main.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let y: i8 = 3;
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Future` is never used
[INFO] [stdout]  --> chapter17/src/async_traits.rs:6:11
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub trait Future {
[INFO] [stdout]   |           ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Stream` is never used
[INFO] [stdout]   --> chapter17/src/async_traits.rs:28:7
[INFO] [stdout]    |
[INFO] [stdout] 28 | trait Stream {
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `init_shorthand_user`
[INFO] [stdout]   --> chapter05/src/main.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let init_shorthand_user = User { active, name, age };
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_shorthand_user`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user_copy`
[INFO] [stdout]   --> chapter05/src/main.rs:28:9
[INFO] [stdout]    |
[INFO] [stdout] 28 |     let user_copy = User { age: 37, ..user };
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_copy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> chapter06/src/main.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |         other => 0,
[INFO] [stdout]    |         ^^^^^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> chapter06/src/main.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |         IpAddrKind::V4 => 4,
[INFO] [stdout]    |         -------------- matches some of the same values
[INFO] [stdout] 36 |         IpAddrKind::V6 => 6,
[INFO] [stdout]    |         -------------- matches some of the same values
[INFO] [stdout] 37 |         other => 0,
[INFO] [stdout]    |         ^^^^^ collectively making this unreachable
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> chapter06/src/main.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |         _ => 0,
[INFO] [stdout]    |         ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout] note: multiple earlier patterns match some of the same values
[INFO] [stdout]   --> chapter06/src/main.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |         IpAddrKind::V4 => 4,
[INFO] [stdout]    |         -------------- matches some of the same values
[INFO] [stdout] 36 |         IpAddrKind::V6 => 6,
[INFO] [stdout]    |         -------------- matches some of the same values
[INFO] [stdout] 37 |         other => 0,
[INFO] [stdout] 38 |         _ => 0,
[INFO] [stdout]    |         ^ collectively making this unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `other`
[INFO] [stdout]   --> chapter06/src/main.rs:37:9
[INFO] [stdout]    |
[INFO] [stdout] 37 |         other => 0,
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_other`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> chapter06/src/main.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 |     V4(String),
[INFO] [stdout]    |     -- ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[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] 48 -     V4(String),
[INFO] [stdout] 48 +     V4(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> chapter06/src/main.rs:49:8
[INFO] [stdout]    |
[INFO] [stdout] 49 |     V6(String),
[INFO] [stdout]    |     -- ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stdout]    |
[INFO] [stdout] 49 -     V6(String),
[INFO] [stdout] 49 +     V6(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `optVal` should have a snake case name
[INFO] [stdout]   --> chapter06/src/main.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let optVal: Option<u8> = Some(5);
[INFO] [stdout]    |         ^^^^^^ help: convert the identifier to snake case: `opt_val`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `plus_2`
[INFO] [stdout]    --> chapter13/src/main.rs:115:9
[INFO] [stdout]     |
[INFO] [stdout] 115 |     let plus_2: Vec<i32> = v1_iter.map(|i| i + 2).collect();
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_plus_2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `active` is never read
[INFO] [stdout]   --> chapter05/src/main.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 46 | struct User {
[INFO] [stdout]    |        ---- field in this struct
[INFO] [stdout] 47 |     active: bool,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `User` 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] [stderr]    Compiling chapter09 v0.1.0 (/opt/rustwide/workdir/chapter09)
[INFO] [stderr]    Compiling chapter15 v0.1.0 (/opt/rustwide/workdir/chapter15)
[INFO] [stdout] warning: struct `Config` is never constructed
[INFO] [stdout]   --> chapter12/src/main.rs:55:8
[INFO] [stdout]    |
[INFO] [stdout] 55 | struct Config {
[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 `parse_config` is never used
[INFO] [stdout]   --> chapter12/src/main.rs:60:4
[INFO] [stdout]    |
[INFO] [stdout] 60 | fn parse_config(args: &[String]) -> Config {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> chapter12/src/main.rs:75:8
[INFO] [stdout]    |
[INFO] [stdout] 74 | impl Config {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 75 |     fn new(args: &[String]) -> Result<Config, &'static str> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling chapter18 v0.1.0 (/opt/rustwide/workdir/chapter18)
[INFO] [stdout] warning: unused variable: `the_file`
[INFO] [stdout]   --> chapter09/src/main.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let the_file = match file_result {
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_the_file`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `another_file`
[INFO] [stdout]   --> chapter09/src/main.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |     let another_file = File::open("something.txt").unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `third_file`
[INFO] [stdout]   --> chapter09/src/main.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |     let third_file = File::open("lla").expect("Custom error message");
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_third_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `manual_panic` is never used
[INFO] [stdout]   --> chapter09/src/main.rs:28:4
[INFO] [stdout]    |
[INFO] [stdout] 28 | fn manual_panic() {
[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 `unwrap_method` is never used
[INFO] [stdout]   --> chapter09/src/main.rs:33:4
[INFO] [stdout]    |
[INFO] [stdout] 33 | fn unwrap_method() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `expect_method` is never used
[INFO] [stdout]   --> chapter09/src/main.rs:38:4
[INFO] [stdout]    |
[INFO] [stdout] 38 | fn expect_method() {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_from_file` is never used
[INFO] [stdout]   --> chapter09/src/main.rs:45:4
[INFO] [stdout]    |
[INFO] [stdout] 45 | fn read_from_file() -> Result<String, Box<dyn Error>> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]   --> chapter10/src/traits.rs:45:18
[INFO] [stdout]    |
[INFO] [stdout] 45 | fn combined_func(item: &(impl Summary + Display)) {}
[INFO] [stdout]    |                  ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]   --> chapter10/src/traits.rs:47:44
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn combined_func_gen<T: Summary + Display>(item: &T) {}
[INFO] [stdout]    |                                            ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]   --> chapter10/src/traits.rs:50:23
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn where_clause<T, U>(t: &T, u: &U) -> i32
[INFO] [stdout]    |                       ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `u`
[INFO] [stdout]   --> chapter10/src/traits.rs:50:30
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn where_clause<T, U>(t: &T, u: &U) -> i32
[INFO] [stdout]    |                              ^ help: if this is intentional, prefix it with an underscore: `_u`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `y` is never read
[INFO] [stdout]   --> chapter10/src/main.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 30 | struct Point<T> {
[INFO] [stdout]    |        ----- field in this struct
[INFO] [stdout] 31 |     x: T,
[INFO] [stdout] 32 |     y: T,
[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 `notify_genral` is never used
[INFO] [stdout]   --> chapter10/src/traits.rs:40:4
[INFO] [stdout]    |
[INFO] [stdout] 40 | fn notify_genral<T: Summary>(item: &T) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `combined_func` is never used
[INFO] [stdout]   --> chapter10/src/traits.rs:45:4
[INFO] [stdout]    |
[INFO] [stdout] 45 | fn combined_func(item: &(impl Summary + Display)) {}
[INFO] [stdout]    |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `combined_func_gen` is never used
[INFO] [stdout]   --> chapter10/src/traits.rs:47:4
[INFO] [stdout]    |
[INFO] [stdout] 47 | fn combined_func_gen<T: Summary + Display>(item: &T) {}
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `where_clause` is never used
[INFO] [stdout]   --> chapter10/src/traits.rs:50:4
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn where_clause<T, U>(t: &T, u: &U) -> i32
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `return_types` is never used
[INFO] [stdout]   --> chapter10/src/traits.rs:59:4
[INFO] [stdout]    |
[INFO] [stdout] 59 | fn return_types(flag: bool) -> impl Summary {
[INFO] [stdout]    |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `longest_with_announcement` is never used
[INFO] [stdout]   --> chapter10/src/traits.rs:81:4
[INFO] [stdout]    |
[INFO] [stdout] 81 | fn longest_with_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.09s
[INFO] running `Command { std: "docker" "inspect" "1aaa35ff253974e478d41feb01ce27c3417340c9f9b03ee9b4c9f8071aee0d3c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1aaa35ff253974e478d41feb01ce27c3417340c9f9b03ee9b4c9f8071aee0d3c", kill_on_drop: false }`
[INFO] [stdout] 1aaa35ff253974e478d41feb01ce27c3417340c9f9b03ee9b4c9f8071aee0d3c
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b8e88e5ddf5521a9f43ee3f62a702388c713e4bb" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] c0ed84d3732d59ef7fb0361841500c752703fb098793c02c9ccfc6c83e77c3d0
[INFO] running `Command { std: "docker" "start" "-a" "c0ed84d3732d59ef7fb0361841500c752703fb098793c02c9ccfc6c83e77c3d0", kill_on_drop: false }`
[INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
[INFO] [stderr] package:   /opt/rustwide/workdir/chapter09/Cargo.toml
[INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml
[INFO] [stderr] warning: /opt/rustwide/workdir/chapter12/Cargo.toml: unused manifest key: package.descriptions
[INFO] [stderr] warning: struct `Config` is never constructed
[INFO] [stderr]   --> chapter12/src/main.rs:55:8
[INFO] [stderr]    |
[INFO] [stderr] 55 | struct Config {
[INFO] [stderr]    |        ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `parse_config` is never used
[INFO] [stderr]   --> chapter12/src/main.rs:60:4
[INFO] [stderr]    |
[INFO] [stderr] 60 | fn parse_config(args: &[String]) -> Config {
[INFO] [stderr]    |    ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]   --> chapter12/src/main.rs:75:8
[INFO] [stderr]    |
[INFO] [stderr] 74 | impl Config {
[INFO] [stderr]    | ----------- associated function in this implementation
[INFO] [stderr] 75 |     fn new(args: &[String]) -> Result<Config, &'static str> {
[INFO] [stderr]    |        ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `result`
[INFO] [stderr]  --> chapter03/src/main.rs:1:15
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::{io, result};
[INFO] [stderr]   |               ^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]  --> chapter03/src/main.rs:6:9
[INFO] [stderr]   |
[INFO] [stderr] 6 |     let mut y = 4; //changing to mut
[INFO] [stderr]   |         ----^
[INFO] [stderr]   |         |
[INFO] [stderr]   |         help: remove this `mut`
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> chapter03/src/main.rs:24:9
[INFO] [stderr]    |
[INFO] [stderr] 24 |     let mut spaces = "   ";
[INFO] [stderr]    |         ----^^^^^^
[INFO] [stderr]    |         |
[INFO] [stderr]    |         help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> chapter03/src/main.rs:26:9
[INFO] [stderr]    |
[INFO] [stderr] 26 |     let mut spaces = spaces.len();
[INFO] [stderr]    |         ----^^^^^^
[INFO] [stderr]    |         |
[INFO] [stderr]    |         help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `x`
[INFO] [stderr]  --> chapter03/src/main.rs:5:9
[INFO] [stderr]   |
[INFO] [stderr] 5 |     let x = 5; // immutable i32
[INFO] [stderr]   |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `y`
[INFO] [stderr]  --> chapter03/src/main.rs:6:9
[INFO] [stderr]   |
[INFO] [stderr] 6 |     let mut y = 4; //changing to mut
[INFO] [stderr]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `spaces`
[INFO] [stderr]   --> chapter03/src/main.rs:26:9
[INFO] [stderr]    |
[INFO] [stderr] 26 |     let mut spaces = spaces.len();
[INFO] [stderr]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spaces`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `decimal`
[INFO] [stderr]   --> chapter03/src/main.rs:31:9
[INFO] [stderr]    |
[INFO] [stderr] 31 |     let decimal: i32 = 98_222;
[INFO] [stderr]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decimal`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `hex`
[INFO] [stderr]   --> chapter03/src/main.rs:32:9
[INFO] [stderr]    |
[INFO] [stderr] 32 |     let hex = 0xfff;
[INFO] [stderr]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_hex`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `octal`
[INFO] [stderr]   --> chapter03/src/main.rs:33:9
[INFO] [stderr]    |
[INFO] [stderr] 33 |     let octal = 0o77;
[INFO] [stderr]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_octal`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `bin`
[INFO] [stderr]   --> chapter03/src/main.rs:34:9
[INFO] [stderr]    |
[INFO] [stderr] 34 |     let bin = 0b11110000;
[INFO] [stderr]    |         ^^^ help: if this is intentional, prefix it with an underscore: `_bin`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `byte`
[INFO] [stderr]   --> chapter03/src/main.rs:35:9
[INFO] [stderr]    |
[INFO] [stderr] 35 |     let byte: u8 = b'A';
[INFO] [stderr]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_byte`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `x`
[INFO] [stderr]   --> chapter03/src/main.rs:37:9
[INFO] [stderr]    |
[INFO] [stderr] 37 |     let x = 2.0; //f64
[INFO] [stderr]    |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `y`
[INFO] [stderr]   --> chapter03/src/main.rs:38:9
[INFO] [stderr]    |
[INFO] [stderr] 38 |     let y: f32 = 2.0; //f32
[INFO] [stderr]    |         ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `t`
[INFO] [stderr]   --> chapter03/src/main.rs:40:9
[INFO] [stderr]    |
[INFO] [stderr] 40 |     let t = true;
[INFO] [stderr]    |         ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `f`
[INFO] [stderr]   --> chapter03/src/main.rs:41:9
[INFO] [stderr]    |
[INFO] [stderr] 41 |     let f = false;
[INFO] [stderr]    |         ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `heart_eyed_cat`
[INFO] [stderr]   --> chapter03/src/main.rs:43:9
[INFO] [stderr]    |
[INFO] [stderr] 43 |     let heart_eyed_cat = '😻';
[INFO] [stderr]    |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heart_eyed_cat`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `a`
[INFO] [stderr]   --> chapter03/src/main.rs:49:10
[INFO] [stderr]    |
[INFO] [stderr] 49 |     let (a, b, c) = tup;
[INFO] [stderr]    |          ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `b`
[INFO] [stderr]   --> chapter03/src/main.rs:49:13
[INFO] [stderr]    |
[INFO] [stderr] 49 |     let (a, b, c) = tup;
[INFO] [stderr]    |             ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `c`
[INFO] [stderr]   --> chapter03/src/main.rs:49:16
[INFO] [stderr]    |
[INFO] [stderr] 49 |     let (a, b, c) = tup;
[INFO] [stderr]    |                ^ help: if this is intentional, prefix it with an underscore: `_c`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `months`
[INFO] [stderr]   --> chapter03/src/main.rs:55:9
[INFO] [stderr]    |
[INFO] [stderr] 55 |     let months: [&str; 2] = ["Jan", "Feb"];
[INFO] [stderr]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `threeArr`
[INFO] [stderr]   --> chapter03/src/main.rs:56:9
[INFO] [stderr]    |
[INFO] [stderr] 56 |     let threeArr = [3; 5]; // [3, 3, 3, 3, 3]
[INFO] [stderr]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threeArr`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `element`
[INFO] [stderr]   --> chapter03/src/main.rs:65:9
[INFO] [stderr]    |
[INFO] [stderr] 65 |     let element = arr[index]; // Throws error at runtime if size greater
[INFO] [stderr]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `absNumber`
[INFO] [stderr]   --> chapter03/src/main.rs:80:9
[INFO] [stderr]    |
[INFO] [stderr] 80 |     let absNumber = if number < 0 { number * -1 } else { number };
[INFO] [stderr]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_absNumber`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `result`
[INFO] [stderr]   --> chapter03/src/main.rs:89:9
[INFO] [stderr]    |
[INFO] [stderr] 89 |     let result = loop {
[INFO] [stderr]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `threeArr` should have a snake case name
[INFO] [stderr]   --> chapter03/src/main.rs:56:9
[INFO] [stderr]    |
[INFO] [stderr] 56 |     let threeArr = [3; 5]; // [3, 3, 3, 3, 3]
[INFO] [stderr]    |         ^^^^^^^^ help: convert the identifier to snake case: `three_arr`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable `absNumber` should have a snake case name
[INFO] [stderr]   --> chapter03/src/main.rs:80:9
[INFO] [stderr]    |
[INFO] [stderr] 80 |     let absNumber = if number < 0 { number * -1 } else { number };
[INFO] [stderr]    |         ^^^^^^^^^ help: convert the identifier to snake case: `abs_number`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `four`
[INFO] [stderr]  --> chapter06/src/main.rs:2:9
[INFO] [stderr]   |
[INFO] [stderr] 2 |     let four = IpAddrKind::V4;
[INFO] [stderr]   |         ^^^^ help: if this is intentional, prefix it with an underscore: `_four`
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `six`
[INFO] [stderr]  --> chapter06/src/main.rs:3:9
[INFO] [stderr]   |
[INFO] [stderr] 3 |     let six = IpAddrKind::V6;
[INFO] [stderr]   |         ^^^ help: if this is intentional, prefix it with an underscore: `_six`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `home`
[INFO] [stderr]  --> chapter06/src/main.rs:5:9
[INFO] [stderr]   |
[INFO] [stderr] 5 |     let home = IpAddr::V4(String::from("127.0.0.1"));
[INFO] [stderr]   |         ^^^^ help: if this is intentional, prefix it with an underscore: `_home`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `x`
[INFO] [stderr]   --> chapter06/src/main.rs:10:9
[INFO] [stderr]    |
[INFO] [stderr] 10 |     let x: Option<i8> = Some(6);
[INFO] [stderr]    |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `y`
[INFO] [stderr]   --> chapter06/src/main.rs:11:9
[INFO] [stderr]    |
[INFO] [stderr] 11 |     let y: i8 = 3;
[INFO] [stderr]    |         ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable pattern
[INFO] [stderr]   --> chapter06/src/main.rs:37:9
[INFO] [stderr]    |
[INFO] [stderr] 37 |         other => 0,
[INFO] [stderr]    |         ^^^^^ no value can reach this
[INFO] [stderr]    |
[INFO] [stderr] note: multiple earlier patterns match some of the same values
[INFO] [stderr]   --> chapter06/src/main.rs:37:9
[INFO] [stderr]    |
[INFO] [stderr] 35 |         IpAddrKind::V4 => 4,
[INFO] [stderr]    |         -------------- matches some of the same values
[INFO] [stderr] 36 |         IpAddrKind::V6 => 6,
[INFO] [stderr]    |         -------------- matches some of the same values
[INFO] [stderr] 37 |         other => 0,
[INFO] [stderr]    |         ^^^^^ collectively making this unreachable
[INFO] [stderr]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable pattern
[INFO] [stderr]   --> chapter06/src/main.rs:38:9
[INFO] [stderr]    |
[INFO] [stderr] 38 |         _ => 0,
[INFO] [stderr]    |         ^ no value can reach this
[INFO] [stderr]    |
[INFO] [stderr] note: multiple earlier patterns match some of the same values
[INFO] [stderr]   --> chapter06/src/main.rs:38:9
[INFO] [stderr]    |
[INFO] [stderr] 35 |         IpAddrKind::V4 => 4,
[INFO] [stderr]    |         -------------- matches some of the same values
[INFO] [stderr] 36 |         IpAddrKind::V6 => 6,
[INFO] [stderr]    |         -------------- matches some of the same values
[INFO] [stderr] 37 |         other => 0,
[INFO] [stderr] 38 |         _ => 0,
[INFO] [stderr]    |         ^ collectively making this unreachable
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `other`
[INFO] [stderr]   --> chapter06/src/main.rs:37:9
[INFO] [stderr]    |
[INFO] [stderr] 37 |         other => 0,
[INFO] [stderr]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_other`
[INFO] [stderr] 
[INFO] [stderr] warning: field `0` is never read
[INFO] [stderr]   --> chapter06/src/main.rs:48:8
[INFO] [stderr]    |
[INFO] [stderr] 48 |     V4(String),
[INFO] [stderr]    |     -- ^^^^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     field in this variant
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stderr]    |
[INFO] [stderr] 48 -     V4(String),
[INFO] [stderr] 48 +     V4(()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: field `0` is never read
[INFO] [stderr]   --> chapter06/src/main.rs:49:8
[INFO] [stderr]    |
[INFO] [stderr] 49 |     V6(String),
[INFO] [stderr]    |     -- ^^^^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     field in this variant
[INFO] [stderr]    |
[INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stderr]    |
[INFO] [stderr] 49 -     V6(String),
[INFO] [stderr] 49 +     V6(()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: variable `optVal` should have a snake case name
[INFO] [stderr]   --> chapter06/src/main.rs:17:9
[INFO] [stderr]    |
[INFO] [stderr] 17 |     let optVal: Option<u8> = Some(5);
[INFO] [stderr]    |         ^^^^^^ help: convert the identifier to snake case: `opt_val`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: trait `Iterator` is never used
[INFO] [stderr]  --> chapter20/src/advanced_traits.rs:6:11
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub trait Iterator {
[INFO] [stderr]   |           ^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Point` is never constructed
[INFO] [stderr]   --> chapter20/src/advanced_traits.rs:14:8
[INFO] [stderr]    |
[INFO] [stderr] 14 | struct Point {
[INFO] [stderr]    |        ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Millimeters` is never constructed
[INFO] [stderr]   --> chapter20/src/advanced_traits.rs:43:8
[INFO] [stderr]    |
[INFO] [stderr] 43 | struct Millimeters(u32);
[INFO] [stderr]    |        ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Meters` is never constructed
[INFO] [stderr]   --> chapter20/src/advanced_traits.rs:44:8
[INFO] [stderr]    |
[INFO] [stderr] 44 | struct Meters(u32);
[INFO] [stderr]    |        ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: trait `OutlinePrint` is never used
[INFO] [stderr]    --> chapter20/src/advanced_traits.rs:103:7
[INFO] [stderr]     |
[INFO] [stderr] 103 | trait OutlinePrint: fmt::Display {}
[INFO] [stderr]     |       ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Wrapper` is never constructed
[INFO] [stderr]    --> chapter20/src/advanced_traits.rs:113:8
[INFO] [stderr]     |
[INFO] [stderr] 113 | struct Wrapper(Vec<String>);
[INFO] [stderr]     |        ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `outer_func` is never used
[INFO] [stderr]   --> chapter07/src/main.rs:22:8
[INFO] [stderr]    |
[INFO] [stderr] 22 |     fn outer_func() {}
[INFO] [stderr]    |        ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `seat_at_table` is never used
[INFO] [stderr]   --> chapter07/src/main.rs:10:12
[INFO] [stderr]    |
[INFO] [stderr] 10 |         fn seat_at_table() {
[INFO] [stderr]    |            ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `take_order` is never used
[INFO] [stderr]   --> chapter07/src/main.rs:17:12
[INFO] [stderr]    |
[INFO] [stderr] 17 |         fn take_order() {}
[INFO] [stderr]    |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `serve_order` is never used
[INFO] [stderr]   --> chapter07/src/main.rs:18:12
[INFO] [stderr]    |
[INFO] [stderr] 18 |         fn serve_order() {}
[INFO] [stderr]    |            ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `take_payment` is never used
[INFO] [stderr]   --> chapter07/src/main.rs:19:12
[INFO] [stderr]    |
[INFO] [stderr] 19 |         fn take_payment() {}
[INFO] [stderr]    |            ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::env`
[INFO] [stderr]  --> try_out/src/main.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::env;
[INFO] [stderr]   |     ^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `s`
[INFO] [stderr]  --> try_out/src/main.rs:4:9
[INFO] [stderr]   |
[INFO] [stderr] 4 |     let s = true;
[INFO] [stderr]   |         ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Try` is never constructed
[INFO] [stderr]  --> try_out/src/main.rs:8:8
[INFO] [stderr]   |
[INFO] [stderr] 8 | struct Try {
[INFO] [stderr]   |        ^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `the_file`
[INFO] [stderr]   --> chapter09/src/main.rs:19:9
[INFO] [stderr]    |
[INFO] [stderr] 19 |     let the_file = match file_result {
[INFO] [stderr]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_the_file`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `another_file`
[INFO] [stderr]   --> chapter09/src/main.rs:34:9
[INFO] [stderr]    |
[INFO] [stderr] 34 |     let another_file = File::open("something.txt").unwrap();
[INFO] [stderr]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another_file`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `third_file`
[INFO] [stderr]   --> chapter09/src/main.rs:39:9
[INFO] [stderr]    |
[INFO] [stderr] 39 |     let third_file = File::open("lla").expect("Custom error message");
[INFO] [stderr]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_third_file`
[INFO] [stderr] 
[INFO] [stderr] warning: function `manual_panic` is never used
[INFO] [stderr]   --> chapter09/src/main.rs:28:4
[INFO] [stderr]    |
[INFO] [stderr] 28 | fn manual_panic() {
[INFO] [stderr]    |    ^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `unwrap_method` is never used
[INFO] [stderr]   --> chapter09/src/main.rs:33:4
[INFO] [stderr]    |
[INFO] [stderr] 33 | fn unwrap_method() {
[INFO] [stderr]    |    ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `expect_method` is never used
[INFO] [stderr]   --> chapter09/src/main.rs:38:4
[INFO] [stderr]    |
[INFO] [stderr] 38 | fn expect_method() {
[INFO] [stderr]    |    ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `read_from_file` is never used
[INFO] [stderr]   --> chapter09/src/main.rs:45:4
[INFO] [stderr]    |
[INFO] [stderr] 45 | fn read_from_file() -> Result<String, Box<dyn Error>> {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `z`
[INFO] [stderr]   --> chapter19/src/main.rs:30:23
[INFO] [stderr]    |
[INFO] [stderr] 30 |     let Point { x, y, z } = p;
[INFO] [stderr]    |                       ^ help: try ignoring the field: `z: _`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `chapter12` (bin "chapter12" test) generated 3 warnings
[INFO] [stderr] warning: `chapter03` (bin "chapter03" test) generated 27 warnings (run `cargo fix --bin "chapter03" -p chapter03 --tests` to apply 25 suggestions)
[INFO] [stderr] warning: `chapter06` (bin "chapter06" test) generated 11 warnings (run `cargo fix --bin "chapter06" -p chapter06 --tests` to apply 6 suggestions)
[INFO] [stderr] warning: `chapter20` (bin "chapter20" test) generated 6 warnings
[INFO] [stderr] warning: `chapter07` (bin "chapter07" test) generated 5 warnings
[INFO] [stderr] warning: `try_out` (bin "try_out" test) generated 3 warnings (run `cargo fix --bin "try_out" -p try_out --tests` to apply 2 suggestions)
[INFO] [stderr] warning: `chapter09` (bin "chapter09" test) generated 7 warnings (run `cargo fix --bin "chapter09" -p chapter09 --tests` to apply 3 suggestions)
[INFO] [stderr] warning: `chapter19` (bin "chapter19" test) generated 1 warning (run `cargo fix --bin "chapter19" -p chapter19 --tests` to apply 1 suggestion)
[INFO] [stderr] warning: unused variable: `init_shorthand_user`
[INFO] [stderr]   --> chapter05/src/main.rs:24:9
[INFO] [stderr]    |
[INFO] [stderr] 24 |     let init_shorthand_user = User { active, name, age };
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_init_shorthand_user`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `user_copy`
[INFO] [stderr]   --> chapter05/src/main.rs:28:9
[INFO] [stderr]    |
[INFO] [stderr] 28 |     let user_copy = User { age: 37, ..user };
[INFO] [stderr]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_copy`
[INFO] [stderr] 
[INFO] [stderr] warning: field `active` is never read
[INFO] [stderr]   --> chapter05/src/main.rs:47:5
[INFO] [stderr]    |
[INFO] [stderr] 46 | struct User {
[INFO] [stderr]    |        ---- field in this struct
[INFO] [stderr] 47 |     active: bool,
[INFO] [stderr]    |     ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `r`
[INFO] [stderr]  --> chapter04/src/main.rs:4:9
[INFO] [stderr]   |
[INFO] [stderr] 4 |     let r = &mut s;
[INFO] [stderr]   |         ^ help: if this is intentional, prefix it with an underscore: `_r`
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `r_immut`
[INFO] [stderr]  --> chapter04/src/main.rs:9:9
[INFO] [stderr]   |
[INFO] [stderr] 9 |     let r_immut = &s;
[INFO] [stderr]   |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_immut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `r_immut_2`
[INFO] [stderr]   --> chapter04/src/main.rs:10:9
[INFO] [stderr]    |
[INFO] [stderr] 10 |     let r_immut_2 = &s;
[INFO] [stderr]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_r_immut_2`
[INFO] [stderr] 
[INFO] [stderr] warning: function `dangling_reference` is never used
[INFO] [stderr]   --> chapter04/src/main.rs:35:4
[INFO] [stderr]    |
[INFO] [stderr] 35 | fn dangling_reference() -> String {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `fmt`
[INFO] [stderr]  --> chapter08/src/main.rs:1:33
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::{collections::HashMap, fmt};
[INFO] [stderr]   |                                 ^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `v2`
[INFO] [stderr]   --> chapter08/src/main.rs:12:9
[INFO] [stderr]    |
[INFO] [stderr] 12 |     let v2 = vec![1, 2, 3]; // At the end of the scope this contents of the elements will also
[INFO] [stderr]    |         ^^ help: if this is intentional, prefix it with an underscore: `_v2`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `third`
[INFO] [stderr]   --> chapter08/src/main.rs:19:9
[INFO] [stderr]    |
[INFO] [stderr] 19 |     let third: &i32 = &v[2];
[INFO] [stderr]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_third`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `hindiStr` should have a snake case name
[INFO] [stderr]   --> chapter08/src/main.rs:67:9
[INFO] [stderr]    |
[INFO] [stderr] 67 |     let hindiStr = String::from("नमस्ते");
[INFO] [stderr]    |         ^^^^^^^^ help: convert the identifier to snake case: `hindi_str`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused return value of `core::str::<impl str>::split_whitespace` that must be used
[INFO] [stderr]   --> chapter08/src/main.rs:95:5
[INFO] [stderr]    |
[INFO] [stderr] 95 |     text.split_whitespace();
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this returns the split string as an iterator, without modifying the original
[INFO] [stderr]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 95 |     let _ = text.split_whitespace();
[INFO] [stderr]    |     +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `item`
[INFO] [stderr]   --> chapter10/src/traits.rs:45:18
[INFO] [stderr]    |
[INFO] [stderr] 45 | fn combined_func(item: &(impl Summary + Display)) {}
[INFO] [stderr]    |                  ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `item`
[INFO] [stderr]   --> chapter10/src/traits.rs:47:44
[INFO] [stderr]    |
[INFO] [stderr] 47 | fn combined_func_gen<T: Summary + Display>(item: &T) {}
[INFO] [stderr]    |                                            ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `t`
[INFO] [stderr]   --> chapter10/src/traits.rs:50:23
[INFO] [stderr]    |
[INFO] [stderr] 50 | fn where_clause<T, U>(t: &T, u: &U) -> i32
[INFO] [stderr]    |                       ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `u`
[INFO] [stderr]   --> chapter10/src/traits.rs:50:30
[INFO] [stderr]    |
[INFO] [stderr] 50 | fn where_clause<T, U>(t: &T, u: &U) -> i32
[INFO] [stderr]    |                              ^ help: if this is intentional, prefix it with an underscore: `_u`
[INFO] [stderr] 
[INFO] [stderr] warning: field `y` is never read
[INFO] [stderr]   --> chapter10/src/main.rs:32:5
[INFO] [stderr]    |
[INFO] [stderr] 30 | struct Point<T> {
[INFO] [stderr]    |        ----- field in this struct
[INFO] [stderr] 31 |     x: T,
[INFO] [stderr] 32 |     y: T,
[INFO] [stderr]    |     ^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `notify_genral` is never used
[INFO] [stderr]   --> chapter10/src/traits.rs:40:4
[INFO] [stderr]    |
[INFO] [stderr] 40 | fn notify_genral<T: Summary>(item: &T) {
[INFO] [stderr]    |    ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `combined_func` is never used
[INFO] [stderr]   --> chapter10/src/traits.rs:45:4
[INFO] [stderr]    |
[INFO] [stderr] 45 | fn combined_func(item: &(impl Summary + Display)) {}
[INFO] [stderr]    |    ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `combined_func_gen` is never used
[INFO] [stderr]   --> chapter10/src/traits.rs:47:4
[INFO] [stderr]    |
[INFO] [stderr] 47 | fn combined_func_gen<T: Summary + Display>(item: &T) {}
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `where_clause` is never used
[INFO] [stderr]   --> chapter10/src/traits.rs:50:4
[INFO] [stderr]    |
[INFO] [stderr] 50 | fn where_clause<T, U>(t: &T, u: &U) -> i32
[INFO] [stderr]    |    ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `return_types` is never used
[INFO] [stderr]   --> chapter10/src/traits.rs:59:4
[INFO] [stderr]    |
[INFO] [stderr] 59 | fn return_types(flag: bool) -> impl Summary {
[INFO] [stderr]    |    ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `longest_with_announcement` is never used
[INFO] [stderr]   --> chapter10/src/traits.rs:81:4
[INFO] [stderr]    |
[INFO] [stderr] 81 | fn longest_with_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `plus_2`
[INFO] [stderr]    --> chapter13/src/main.rs:115:9
[INFO] [stderr]     |
[INFO] [stderr] 115 |     let plus_2: Vec<i32> = v1_iter.map(|i| i + 2).collect();
[INFO] [stderr]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_plus_2`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `chapter05` (bin "chapter05" test) generated 3 warnings (run `cargo fix --bin "chapter05" -p chapter05 --tests` to apply 2 suggestions)
[INFO] [stderr] warning: `chapter04` (bin "chapter04" test) generated 4 warnings (run `cargo fix --bin "chapter04" -p chapter04 --tests` to apply 3 suggestions)
[INFO] [stderr] warning: `chapter08` (bin "chapter08" test) generated 5 warnings (run `cargo fix --bin "chapter08" -p chapter08 --tests` to apply 3 suggestions)
[INFO] [stderr] warning: `chapter10` (bin "chapter10" test) generated 11 warnings (run `cargo fix --bin "chapter10" -p chapter10 --tests` to apply 4 suggestions)
[INFO] [stderr] warning: `chapter13` (bin "chapter13" test) generated 1 warning (run `cargo fix --bin "chapter13" -p chapter13 --tests` to apply 1 suggestion)
[INFO] [stderr] warning: unused import: `self`
[INFO] [stderr]  --> chapter17/src/async_traits.rs:3:16
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::pin::{self, Pin};
[INFO] [stderr]   |                ^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: trait `Future` is never used
[INFO] [stderr]  --> chapter17/src/async_traits.rs:6:11
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub trait Future {
[INFO] [stderr]   |           ^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: trait `Stream` is never used
[INFO] [stderr]   --> chapter17/src/async_traits.rs:28:7
[INFO] [stderr]    |
[INFO] [stderr] 28 | trait Stream {
[INFO] [stderr]    |       ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `chapter17` (bin "chapter17" test) generated 3 warnings (run `cargo fix --bin "chapter17" -p chapter17 --tests` to apply 1 suggestion)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter03-f71b5741a134a71d)
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter04-dbdb5a63d856cd08)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter05-aaaae68cfe30f032)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter06-f06df89d6e599b59)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter07-2f0baaebff7a2c60)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter08-c91d12b780cefd83)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter09-3f5f4450d326e2c4)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter10-5a8aba45e72f17ed)
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/chapter11-651da467a71e1045)
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 4 tests
[INFO] [stdout] test tests::ignoring_this_test ... ignored
[INFO] [stdout] test tests::it_works ... ok
[INFO] [stdout] test tests::test_with_result ... ok
[INFO] [stdout] test tests::should_panic - should panic ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 3 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.03s
[INFO] [stdout] 
[INFO] [stderr]      Running tests/integration_tests.rs (/opt/rustwide/target/debug/deps/integration_tests-b4449702bccced01)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test it_adds_two ... ok
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/chapter12-fcf01fd28d0d3b21)
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test tests::one_result ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter12-c785efe93f012421)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter13-f3d1e3448d89437d)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test iterator_sum ... ok
[INFO] [stdout] test iterator_map ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter15-76d19e37d3244015)
[INFO] [stdout] 
[INFO] [stdout] running 7 tests
[INFO] [stdout] test using_box_as_regular_pointer ... ok
[INFO] [stdout] test weak_references ... ok
[INFO] [stdout] test smart_pointer_box ... ok
[INFO] [stdout] test exploring_ref_cell ... ok
[INFO] [stdout] test combining_refcell_rc ... ok
[INFO] [stdout] test drop_trait_helps_create_closehandler ... ok
[INFO] [stdout] test exploring_rc ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter16-0c85a420cd9663f1)
[INFO] [stdout] 
[INFO] [stdout] running 3 tests
[INFO] [stdout] test rc_and_mutexes ... ok
[INFO] [stdout] test threads_example ... ok
[INFO] [stdout] test multiple_producer_single_consumer ... ok
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter17-eb3cc870d1124a03)
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.21s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test async_traits::future_trait ... ok
[INFO] [stdout] test async_traits::pin_trait ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter18-fab89072044b89ed)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter19-b0a5326e79471b9a)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chapter20-b990d2f4bd6f3966)
[INFO] [stdout] 
[INFO] [stdout] running 4 tests
[INFO] [stdout] test advanced_traits::multi_traits_impl ... ok
[INFO] [stdout] test unsafe_functions ... ok
[INFO] [stdout] test unsafe_raw_pointers ... ok
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/try_out-774f7d91cb1b9074)
[INFO] [stdout] test extern_test ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test try_something ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests chapter11
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests chapter12
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "c0ed84d3732d59ef7fb0361841500c752703fb098793c02c9ccfc6c83e77c3d0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c0ed84d3732d59ef7fb0361841500c752703fb098793c02c9ccfc6c83e77c3d0", kill_on_drop: false }`
[INFO] [stdout] c0ed84d3732d59ef7fb0361841500c752703fb098793c02c9ccfc6c83e77c3d0
