[INFO] cloning repository https://github.com/shiinazuki/study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shiinazuki/study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshiinazuki%2Fstudy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshiinazuki%2Fstudy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 691165d60e4d1ed8cffd7da5600384af829a6aaf [INFO] checking shiinazuki/study against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshiinazuki%2Fstudy" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shiinazuki/study on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shiinazuki/study [INFO] finished tweaking git repo https://github.com/shiinazuki/study [INFO] tweaked toml for git repo https://github.com/shiinazuki/study written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/shiinazuki/study already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16ed2e5782e11b427f8439192908fd086347f2a023731061403f0210607101b2 [INFO] running `Command { std: "docker" "start" "-a" "16ed2e5782e11b427f8439192908fd086347f2a023731061403f0210607101b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16ed2e5782e11b427f8439192908fd086347f2a023731061403f0210607101b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16ed2e5782e11b427f8439192908fd086347f2a023731061403f0210607101b2", kill_on_drop: false }` [INFO] [stdout] 16ed2e5782e11b427f8439192908fd086347f2a023731061403f0210607101b2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 463fc9f30c0c2599bd2507d09bf4d457b7afd1793ad7e39f9b54bd03f211cb89 [INFO] running `Command { std: "docker" "start" "-a" "463fc9f30c0c2599bd2507d09bf4d457b7afd1793ad7e39f9b54bd03f211cb89", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking chapt17_rust_object v0.1.0 (/opt/rustwide/workdir/chapt17_rust_object) [INFO] [stderr] Checking chapt8_collections v0.1.0 (/opt/rustwide/workdir/chapt8_collections) [INFO] [stderr] Checking chapt20_web_server v0.1.0 (/opt/rustwide/workdir/chapt20_web_server) [INFO] [stderr] Checking chapt12_io_item v0.1.0 (/opt/rustwide/workdir/chapt12_io_item) [INFO] [stderr] Checking chapt11_test v0.1.0 (/opt/rustwide/workdir/chapt11_test) [INFO] [stderr] Checking chapt16_concurrent_program v0.1.0 (/opt/rustwide/workdir/chapt16_concurrent_program) [INFO] [stderr] Checking a_standard v0.1.0 (/opt/rustwide/workdir/a_standard) [INFO] [stderr] Checking chapt4_ownership v0.1.0 (/opt/rustwide/workdir/chapt4_ownership) [INFO] [stderr] Checking chapt10_trait v0.1.0 (/opt/rustwide/workdir/chapt10_trait) [INFO] [stderr] Checking chapt15_smart_pointer v0.1.0 (/opt/rustwide/workdir/chapt15_smart_pointer) [INFO] [stderr] Checking chapt18_patterns v0.1.0 (/opt/rustwide/workdir/chapt18_patterns) [INFO] [stderr] Checking chapt13_closures_iterators v0.1.0 (/opt/rustwide/workdir/chapt13_closures_iterators) [INFO] [stderr] Checking chapt3_variables v0.1.0 (/opt/rustwide/workdir/chapt3_variables) [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> chapt11_test/src/lib.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> chapt17_rust_object/src/lib.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 100 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> chapt11_test/src/lib.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> chapt11_test/src/lib.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 19 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guess` is never constructed [INFO] [stdout] --> chapt11_test/src/lib.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Guess { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> chapt11_test/src/lib.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Guess { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 41 | pub fn new(value: i32) -> Guess { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/box.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | Cons(T, Box>), [INFO] [stdout] | ---- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` 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] 26 | Cons(T, ()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:146:32 [INFO] [stdout] | [INFO] [stdout] 146 | fn longest_one<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Import` is never constructed [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | struct Import<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `level` and `announce_and_return_part` are never used [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 107 | impl<'a, 'b> Import<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 108 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn announce_and_return_part(&'a self, announcement: &'b str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 134 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImportantExcerpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_one` is never used [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn longest_one<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> chapt8_collections/src/vect.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> chapt8_collections/src/vect.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut v = vec![1, 2, 3, 4, 5, 6, 7, 8, 9]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> chapt8_collections/src/vect.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut v = vec![1, 2, 3, 4, 5, 6]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> chapt10_trait/src/bin/generics.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | struct De { [INFO] [stdout] | -- fields in this struct [INFO] [stdout] 80 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 81 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `De` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x` and `y` are never used [INFO] [stdout] --> chapt10_trait/src/bin/generics.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 99 | impl Point { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 100 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn y(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_origin` is never used [INFO] [stdout] --> chapt10_trait/src/bin/generics.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 108 | impl Point { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 109 | fn distance_from_origin(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt8_collections/src/vect.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` 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] 57 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt8_collections/src/vect.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 58 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt8_collections/src/vect.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 59 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around function argument [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | label: String::from({ "Ok" }), [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 7 - label: String::from({ "Ok" }), [INFO] [stdout] 7 + label: String::from("Ok"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Screen_Two` should have an upper camel case name [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Screen_Two { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `ScreenTwo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around function argument [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | label: String::from({ "Ok" }), [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 7 - label: String::from({ "Ok" }), [INFO] [stdout] 7 + label: String::from("Ok"), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Screen_Two` should have an upper camel case name [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Screen_Two { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `ScreenTwo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is more private than the item `Screen::components` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub components: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Screen::components` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is more private than the item `Screen_Two` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Screen_Two { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ struct `Screen_Two` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is more private than the item `Screen_Two` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | / impl Screen_Two [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: Draw, [INFO] [stdout] | |____________^ implementation `Screen_Two` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> chapt13_closures_iterators/src/bin/closures.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 122 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 123 | width: u32, [INFO] [stdout] 124 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapt9_error v0.1.0 (/opt/rustwide/workdir/chapt9_error) [INFO] [stdout] warning: trait `Draw` is more private than the item `Screen::components` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub components: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `Screen::components` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is more private than the item `Screen_Two` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct Screen_Two { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ struct `Screen_Two` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is more private than the item `Screen_Two` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | / impl Screen_Two [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: Draw, [INFO] [stdout] | |____________^ implementation `Screen_Two` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but trait `Draw` is only usable at visibility `pub(crate)` [INFO] [stdout] --> chapt17_rust_object/src/bin/trait.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | trait Draw { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapt6_enum_match v0.1.0 (/opt/rustwide/workdir/chapt6_enum_match) [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapt1_hello_world v0.1.0 (/opt/rustwide/workdir/chapt1_hello_world) [INFO] [stdout] warning: type `List_Rc` should have an upper camel case name [INFO] [stdout] --> chapt15_smart_pointer/src/bin/rc.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | enum List_Rc { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `ListRc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> chapt15_smart_pointer/src/bin/rc.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let b = List_Rc::Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> chapt15_smart_pointer/src/bin/rc.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let c = List_Rc::Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/rc.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | Cons(T, Rc>), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List_Rc` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` 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] 46 | Cons(T, ()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/rc.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | Cons(T, Rc>>), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 52 | Cons(T, ()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapt5_struct v0.1.0 (/opt/rustwide/workdir/chapt5_struct) [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/refcycle.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 92 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 93 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 94 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapt14_cargo v0.1.0 (/opt/rustwide/workdir/chapt14_cargo) [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> chapt8_collections/src/vect.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let v: Vec = Vec::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> chapt8_collections/src/vect.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut v = vec![1, 2, 3, 4, 5, 6, 7, 8, 9]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/box.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | Cons(T, Box>), [INFO] [stdout] | ---- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` 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] 26 | Cons(T, ()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> chapt8_collections/src/vect.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let mut v = vec![1, 2, 3, 4, 5, 6]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `List_Rc` should have an upper camel case name [INFO] [stdout] --> chapt15_smart_pointer/src/bin/rc.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | enum List_Rc { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `ListRc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt8_collections/src/vect.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` 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] 57 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt8_collections/src/vect.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 58 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt8_collections/src/vect.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | Text(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 59 | Text(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> chapt15_smart_pointer/src/bin/rc.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let b = List_Rc::Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> chapt15_smart_pointer/src/bin/rc.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let c = List_Rc::Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/rc.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | Cons(T, Rc>), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List_Rc` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` 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] 46 | Cons(T, ()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/rc.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | Cons(T, Rc>>), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 52 | Cons(T, ()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active`, `username`, and `email` are never read [INFO] [stdout] --> chapt5_struct/src/bin/struct.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 100 | struct Person<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 101 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 102 | username: &'a str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 103 | email: &'a str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:100:57 [INFO] [stdout] | [INFO] [stdout] 100 | fn _some_function(t: &T, u: &U) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:100:64 [INFO] [stdout] | [INFO] [stdout] 100 | fn _some_function(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: unused variable: `t` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:103:31 [INFO] [stdout] | [INFO] [stdout] 103 | fn _some_function_siple(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] --> chapt10_trait/src/bin/trait.rs:103:38 [INFO] [stdout] | [INFO] [stdout] 103 | fn _some_function_siple(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: unused variable: `summary` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | fn _notify_more(summary: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:116:45 [INFO] [stdout] | [INFO] [stdout] 116 | fn _notify_more_bound(summary: &T) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary1` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | fn _notify_second(summary1: &impl Summary, summary2: &impl Summary) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary2` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:127:44 [INFO] [stdout] | [INFO] [stdout] 127 | fn _notify_second(summary1: &impl Summary, summary2: &impl Summary) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary1` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | fn _notify_same(summary1: &T, summary2: &T) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary2` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:131:43 [INFO] [stdout] | [INFO] [stdout] 131 | fn _notify_same(summary1: &T, summary2: &T) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 45 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 52 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 154 | struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 158 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reply` and `retweet` are never read [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 171 | struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 174 | reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 175 | retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 9 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrNew` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrNew` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | V4(u8, u8, u8, u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrOnther` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 23 | V4((), (), (), ()), [INFO] [stdout] | ~~ ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrOnther` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] 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] 74 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 71 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 72 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 73 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 74 | Write(String), [INFO] [stdout] 75 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active`, `username`, and `email` are never read [INFO] [stdout] --> chapt5_struct/src/bin/struct.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 100 | struct Person<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 101 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 102 | username: &'a str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 103 | email: &'a str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> chapt11_test/src/lib.rs:61:36 [INFO] [stdout] | [INFO] [stdout] 61 | use std::{thread, time::{self, Duration}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> chapt11_test/src/lib.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> chapt11_test/src/lib.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 37 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/refcell.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | Cons(T, Rc>), [INFO] [stdout] | ---- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` 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] 69 | Cons(T, ()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username` and `age` are never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/refcell.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 78 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 79 | age: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/refcycle.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 92 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 93 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 94 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> chapt17_rust_object/src/lib.rs:100:31 [INFO] [stdout] | [INFO] [stdout] 100 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> chapt10_trait/src/bin/generics.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | struct De { [INFO] [stdout] | -- fields in this struct [INFO] [stdout] 80 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 81 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `De` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `x` and `y` are never used [INFO] [stdout] --> chapt10_trait/src/bin/generics.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 99 | impl Point { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 100 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn y(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distance_from_origin` is never used [INFO] [stdout] --> chapt10_trait/src/bin/generics.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 108 | impl Point { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 109 | fn distance_from_origin(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 9 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrNew` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 | V4(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrNew` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | V4(u8, u8, u8, u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrOnther` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 23 | V4((), (), (), ()), [INFO] [stdout] | ~~ ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddrOnther` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:100:57 [INFO] [stdout] | [INFO] [stdout] 100 | fn _some_function(t: &T, u: &U) -> i32 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:100:64 [INFO] [stdout] | [INFO] [stdout] 100 | fn _some_function(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 `0` is never read [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] 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] 74 | Write(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:103:31 [INFO] [stdout] | [INFO] [stdout] 103 | fn _some_function_siple(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] --> chapt10_trait/src/bin/trait.rs:103:38 [INFO] [stdout] | [INFO] [stdout] 103 | fn _some_function_siple(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: unused variable: `summary` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | fn _notify_more(summary: &(impl Summary + Display)) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> chapt6_enum_match/src/bin/enum.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 71 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 72 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 73 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 74 | Write(String), [INFO] [stdout] 75 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:116:45 [INFO] [stdout] | [INFO] [stdout] 116 | fn _notify_more_bound(summary: &T) {} [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary1` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | fn _notify_second(summary1: &impl Summary, summary2: &impl Summary) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary2` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:127:44 [INFO] [stdout] | [INFO] [stdout] 127 | fn _notify_second(summary1: &impl Summary, summary2: &impl Summary) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary1` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:131:29 [INFO] [stdout] | [INFO] [stdout] 131 | fn _notify_same(summary1: &T, summary2: &T) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:146:32 [INFO] [stdout] | [INFO] [stdout] 146 | fn longest_one<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `summary2` [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:131:43 [INFO] [stdout] | [INFO] [stdout] 131 | fn _notify_same(summary1: &T, summary2: &T) {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_summary2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Import` is never constructed [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | struct Import<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `level` and `announce_and_return_part` are never used [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 107 | impl<'a, 'b> Import<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 108 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn announce_and_return_part(&'a self, announcement: &'b str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 45 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 51 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 52 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 134 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImportantExcerpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:158:5 [INFO] [stdout] | [INFO] [stdout] 154 | struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 158 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reply` and `retweet` are never read [INFO] [stdout] --> chapt10_trait/src/bin/trait.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 171 | struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 174 | reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 175 | retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_one` is never used [INFO] [stdout] --> chapt10_trait/src/bin/lifetime.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn longest_one<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/refcell.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | Cons(T, Rc>), [INFO] [stdout] | ---- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` 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] 69 | Cons(T, ()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username` and `age` are never read [INFO] [stdout] --> chapt15_smart_pointer/src/bin/refcell.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 78 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 79 | age: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny` and `Nickel` are never constructed [INFO] [stdout] --> chapt6_enum_match/src/bin/match.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 6 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> chapt6_enum_match/src/bin/match.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 14 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> chapt13_closures_iterators/src/bin/closures.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 122 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 123 | width: u32, [INFO] [stdout] 124 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny` and `Nickel` are never constructed [INFO] [stdout] --> chapt6_enum_match/src/bin/match.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 6 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> chapt6_enum_match/src/bin/match.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 14 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking quote v1.0.36 [INFO] [stderr] Checking syn v2.0.72 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking chapt7_crate v0.1.0 (/opt/rustwide/workdir/chapt7_crate) [INFO] [stderr] Checking chapt2_guessing_game v0.1.0 (/opt/rustwide/workdir/chapt2_guessing_game) [INFO] [stdout] warning: unused variable: `order1` [INFO] [stdout] --> chapt7_crate/src/lib.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let order1 = back_of_house::Appetizer::Soup; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order2` [INFO] [stdout] --> chapt7_crate/src/lib.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let order2 = back_of_house::Appetizer::Salad; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function1` is never used [INFO] [stdout] --> chapt7_crate/src/lib.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn function1() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function2` is never used [INFO] [stdout] --> chapt7_crate/src/lib.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn function2() -> IoResult<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deliver_order` is never used [INFO] [stdout] --> chapt7_crate/src/lib.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn deliver_order() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> chapt7_crate/src/front_of_house/hosting.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn seat_at_table() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `seasonal_fruit` is never read [INFO] [stdout] --> chapt7_crate/src/back_of_house.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Breakfase { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 4 | pub toast: String, [INFO] [stdout] 5 | seasonal_fruit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fix_incorrect_order` is never used [INFO] [stdout] --> chapt7_crate/src/back_of_house.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn fix_incorrect_order() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cook_order` is never used [INFO] [stdout] --> chapt7_crate/src/back_of_house.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn cook_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order1` [INFO] [stdout] --> chapt7_crate/src/lib.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let order1 = back_of_house::Appetizer::Soup; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order2` [INFO] [stdout] --> chapt7_crate/src/lib.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let order2 = back_of_house::Appetizer::Salad; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function1` is never used [INFO] [stdout] --> chapt7_crate/src/lib.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn function1() -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `function2` is never used [INFO] [stdout] --> chapt7_crate/src/lib.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn function2() -> IoResult<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deliver_order` is never used [INFO] [stdout] --> chapt7_crate/src/lib.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn deliver_order() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> chapt7_crate/src/front_of_house/hosting.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn seat_at_table() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `seasonal_fruit` is never read [INFO] [stdout] --> chapt7_crate/src/back_of_house.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Breakfase { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 4 | pub toast: String, [INFO] [stdout] 5 | seasonal_fruit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fix_incorrect_order` is never used [INFO] [stdout] --> chapt7_crate/src/back_of_house.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn fix_incorrect_order() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cook_order` is never used [INFO] [stdout] --> chapt7_crate/src/back_of_house.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn cook_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking chapt19_advance_feature v0.1.0 (/opt/rustwide/workdir/chapt19_advance_feature) [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let f: Box = Box::new(|| println!("hi")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let f: Box = Box::new(|| println!("hi")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let f: Thunk = Box::new(|| println!("hi")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let f: Thunk = Box::new(|| println!("hi")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | fn takes_long_type(f: Box) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | fn takes_long_type(f: Box) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | fn takes_short_type(f: Thunk) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | fn takes_short_type(f: Thunk) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:55:23 [INFO] [stdout] | [INFO] [stdout] 55 | fn generic(t: &T) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:55:23 [INFO] [stdout] | [INFO] [stdout] 55 | fn generic(t: &T) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_long_type` is never used [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn takes_long_type(f: Box) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_long_type` is never used [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn returns_long_type() -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generic` is never used [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn generic(t: &T) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_short_type` is never used [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn takes_short_type(f: Thunk) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bar` is never used [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn bar() -> ! { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_short_type` is never used [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn returns_short_type() -> Thunk { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generic` is never used [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn generic(t: &T) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bar` is never used [INFO] [stdout] --> chapt19_advance_feature/src/bin/type.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn bar() -> ! { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Foo` is never used [INFO] [stdout] --> chapt19_advance_feature/src/bin/unsafe.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | unsafe trait Foo {} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_closure` is never used [INFO] [stdout] --> chapt19_advance_feature/src/bin/funclosure.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn returns_closure() -> Box i32> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt19_advance_feature/src/bin/funclosure.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | Value(u32), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 48 | Value(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stop` is never constructed [INFO] [stdout] --> chapt19_advance_feature/src/bin/funclosure.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 47 | enum Status { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 48 | Value(u32), [INFO] [stdout] 49 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_closure` is never used [INFO] [stdout] --> chapt19_advance_feature/src/bin/funclosure.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn returns_closure() -> Box i32> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> chapt19_advance_feature/src/bin/funclosure.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | Value(u32), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 48 | Value(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stop` is never constructed [INFO] [stdout] --> chapt19_advance_feature/src/bin/funclosure.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 47 | enum Status { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 48 | Value(u32), [INFO] [stdout] 49 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Foo` is never used [INFO] [stdout] --> chapt19_advance_feature/src/bin/unsafe.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | unsafe trait Foo {} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> chapt19_advance_feature/src/bin/trait.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | struct Counter {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> chapt19_advance_feature/src/bin/trait.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | struct Counter {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.33s [INFO] running `Command { std: "docker" "inspect" "463fc9f30c0c2599bd2507d09bf4d457b7afd1793ad7e39f9b54bd03f211cb89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "463fc9f30c0c2599bd2507d09bf4d457b7afd1793ad7e39f9b54bd03f211cb89", kill_on_drop: false }` [INFO] [stdout] 463fc9f30c0c2599bd2507d09bf4d457b7afd1793ad7e39f9b54bd03f211cb89