[INFO] cloning repository https://github.com/viraj124/rust-examples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/viraj124/rust-examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fviraj124%2Frust-examples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fviraj124%2Frust-examples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0d8afde8327c435097a396e9ea74377216af4d2e [INFO] checking viraj124/rust-examples against master#9e293ae9f8abecb0be5105787d181518c9012a19 for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fviraj124%2Frust-examples" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 62% (6611/10604) Updating files: 63% (6681/10604) Updating files: 64% (6787/10604) Updating files: 65% (6893/10604) Updating files: 66% (6999/10604) Updating files: 67% (7105/10604) Updating files: 68% (7211/10604) Updating files: 69% (7317/10604) Updating files: 70% (7423/10604) Updating files: 71% (7529/10604) Updating files: 72% (7635/10604) Updating files: 73% (7741/10604) Updating files: 74% (7847/10604) Updating files: 75% (7953/10604) Updating files: 76% (8060/10604) Updating files: 77% (8166/10604) Updating files: 78% (8272/10604) Updating files: 79% (8378/10604) Updating files: 80% (8484/10604) Updating files: 80% (8545/10604) Updating files: 81% (8590/10604) Updating files: 82% (8696/10604) Updating files: 83% (8802/10604) Updating files: 84% (8908/10604) Updating files: 85% (9014/10604) Updating files: 85% (9106/10604) Updating files: 86% (9120/10604) Updating files: 87% (9226/10604) Updating files: 88% (9332/10604) Updating files: 88% (9392/10604) Updating files: 89% (9438/10604) Updating files: 90% (9544/10604) Updating files: 90% (9548/10604) Updating files: 91% (9650/10604) Updating files: 92% (9756/10604) Updating files: 93% (9862/10604) Updating files: 93% (9906/10604) Updating files: 94% (9968/10604) Updating files: 95% (10074/10604) Updating files: 96% (10180/10604) Updating files: 97% (10286/10604) Updating files: 98% (10392/10604) Updating files: 99% (10498/10604) Updating files: 100% (10604/10604) Updating files: 100% (10604/10604), done. [INFO] started tweaking git repo https://github.com/viraj124/rust-examples [INFO] finished tweaking git repo https://github.com/viraj124/rust-examples [INFO] tweaked toml for git repo https://github.com/viraj124/rust-examples written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/viraj124/rust-examples on toolchain 9e293ae9f8abecb0be5105787d181518c9012a19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/viraj124/rust-examples 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" "+9e293ae9f8abecb0be5105787d181518c9012a19" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded scraper v0.20.0 [INFO] [stderr] Downloaded trpl v0.2.0 [INFO] [stderr] Downloaded selectors v0.25.0 [INFO] [stderr] Downloaded ego-tree v0.6.3 [INFO] [stderr] Downloaded phf_codegen v0.10.0 [INFO] [stderr] Downloaded servo_arc v0.3.0 [INFO] [stderr] Downloaded find-msvc-tools v0.1.7 [INFO] [stderr] Downloaded rustls-pki-types v1.13.2 [INFO] [stderr] Downloaded markup5ever v0.12.1 [INFO] [stderr] Downloaded cssparser v0.31.2 [INFO] [stderr] Downloaded html5ever v0.27.0 [INFO] [stderr] Downloaded cc v1.2.52 [INFO] [stderr] Downloaded libc v0.2.167 [INFO] [stderr] Downloaded tokio v1.42.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f171b087bb90d6052ac35a0c179943068f24e1ddd717c45ac94d3eb477dbdb02 [INFO] running `Command { std: "docker" "start" "-a" "f171b087bb90d6052ac35a0c179943068f24e1ddd717c45ac94d3eb477dbdb02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f171b087bb90d6052ac35a0c179943068f24e1ddd717c45ac94d3eb477dbdb02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f171b087bb90d6052ac35a0c179943068f24e1ddd717c45ac94d3eb477dbdb02", kill_on_drop: false }` [INFO] [stdout] f171b087bb90d6052ac35a0c179943068f24e1ddd717c45ac94d3eb477dbdb02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ffb171a546907927e2295151704dc82f5aea66f72ee7af1acbdae7f1ac41e982 [INFO] running `Command { std: "docker" "start" "-a" "ffb171a546907927e2295151704dc82f5aea66f72ee7af1acbdae7f1ac41e982", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling find-msvc-tools v0.1.7 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking dtoa v1.0.11 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling cc v1.2.52 [INFO] [stderr] Checking rustls-pki-types v1.13.2 [INFO] [stderr] Checking servo_arc v0.3.0 [INFO] [stderr] Checking ryu v1.0.22 [INFO] [stderr] Checking getopts v0.2.24 [INFO] [stderr] Checking futf v0.1.5 [INFO] [stderr] Checking dtoa-short v0.3.5 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking ego-tree v0.6.3 [INFO] [stderr] Checking tendril v0.4.3 [INFO] [stderr] Checking ch12-minigrep-project v0.1.0 (/opt/rustwide/workdir/ch12-minigrep-project) [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking ch11-testing v0.1.0 (/opt/rustwide/workdir/ch11-testing) [INFO] [stderr] Checking ch15-smart-pointers v0.1.0 (/opt/rustwide/workdir/ch15-smart-pointers) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> ch11-testing/src/lib.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | if(self.width < 10) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - if(self.width < 10) { [INFO] [stdout] 12 + if self.width < 10 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isLargerThan` should have a snake case name [INFO] [stdout] --> ch11-testing/src/lib.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn isLargerThan(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_larger_than` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stdout] warning: unused import: `ch11_testing::Rectangle` [INFO] [stdout] --> ch11-testing/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use ch11_testing::Rectangle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> ch15-smart-pointers/src/main.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | mod lib; // Reference cycle demonstration in lib.rs [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `New_List` should have an upper camel case name [INFO] [stdout] --> ch15-smart-pointers/src/main.rs:253:6 [INFO] [stdout] | [INFO] [stdout] 253 | enum New_List { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `NewList` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> ch15-smart-pointers/src/main.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | mod lib; // Reference cycle demonstration in lib.rs [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `New_List` should have an upper camel case name [INFO] [stdout] --> ch15-smart-pointers/src/main.rs:253:6 [INFO] [stdout] | [INFO] [stdout] 253 | enum New_List { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `NewList` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> ch11-testing/src/main.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | if (add(1, 4) == 5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if (add(1, 4) == 5) { [INFO] [stdout] 38 + if add(1, 4) == 5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stdout] warning: function `test_with_Result` should have a snake case name [INFO] [stdout] --> ch11-testing/src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn test_with_Result() -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_with_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `messenger`, `max`, and `value` are never read [INFO] [stdout] --> ch15-smart-pointers/src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Email<'a, T: Messenger> { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 29 | messenger: &'a T, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | max: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] 31 | value: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_value` are never used [INFO] [stdout] --> ch15-smart-pointers/src/main.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 128 | / impl<'a, T> Email<'a, T> [INFO] [stdout] 129 | | where [INFO] [stdout] 130 | | T: Messenger, [INFO] [stdout] | |_____________________- associated items in this implementation [INFO] [stdout] 131 | { [INFO] [stdout] 132 | fn new(messenger: &'a T, max: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn set_value(&mut self, value: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> ch15-smart-pointers/src/main.rs:254:28 [INFO] [stdout] | [INFO] [stdout] 254 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `New_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] 254 - Cons(Rc>, Rc), [INFO] [stdout] 254 + Cons(Rc>, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch15-smart-pointers/src/lib.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | Cons(i32, RefCell>), [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] 8 - Cons(i32, RefCell>), [INFO] [stdout] 8 + Cons((), RefCell>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ch15-smart-pointers/src/main.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 34 | fn main() { [INFO] [stdout] | --------- move the `impl` block outside of this function `main` [INFO] [stdout] ... [INFO] [stdout] 128 | impl<'a, T> Email<'a, T> [INFO] [stdout] | ^^^^^^^^^^^^-----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Email` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> ch15-smart-pointers/src/main.rs:254:28 [INFO] [stdout] | [INFO] [stdout] 254 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `New_List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 254 - Cons(Rc>, Rc), [INFO] [stdout] 254 + Cons(Rc>, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch15-smart-pointers/src/lib.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | Cons(i32, RefCell>), [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] 8 - Cons(i32, RefCell>), [INFO] [stdout] 8 + Cons((), RefCell>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ch15-smart-pointers/src/main.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 34 | fn main() { [INFO] [stdout] | --------- move the `impl` block outside of this function `main` [INFO] [stdout] ... [INFO] [stdout] 128 | impl<'a, T> Email<'a, T> [INFO] [stdout] | ^^^^^^^^^^^^-----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Email` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch03-common-concepts v0.1.0 (/opt/rustwide/workdir/ch03-common-concepts) [INFO] [stderr] Checking ch05-structs v0.1.0 (/opt/rustwide/workdir/ch05-structs) [INFO] [stderr] Checking ch13-closures v0.1.0 (/opt/rustwide/workdir/ch13-closures) [INFO] [stderr] Checking ch18-oop-patterns v0.1.0 (/opt/rustwide/workdir/ch18-oop-patterns) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> ch12-minigrep-project/src/main.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | if (finder.isSensitive) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if (finder.isSensitive) { [INFO] [stdout] 27 + if finder.isSensitive { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `finderConfig` should have a snake case name [INFO] [stdout] --> ch12-minigrep-project/src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let finderConfig = Finder::new(env::args()); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `finder_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isSensitive` should have a snake case name [INFO] [stdout] --> ch12-minigrep-project/src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | isSensitive: bool [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_sensitive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isSensitive` should have a snake case name [INFO] [stdout] --> ch12-minigrep-project/src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let isSensitive = env::var("IGNORE_CASE").is_ok(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_sensitive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> ch12-minigrep-project/src/main.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | if (finder.isSensitive) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if (finder.isSensitive) { [INFO] [stdout] 27 + if finder.isSensitive { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch15-reference-cycles v0.1.0 (/opt/rustwide/workdir/ch15-reference-cycles) [INFO] [stdout] warning: fields `sign_in_count` and `active` are never read [INFO] [stdout] --> ch05-structs/src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 27 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 31 | 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] [stdout] warning: variable `finderConfig` should have a snake case name [INFO] [stdout] --> ch12-minigrep-project/src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let finderConfig = Finder::new(env::args()); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `finder_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isSensitive` should have a snake case name [INFO] [stdout] --> ch12-minigrep-project/src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | isSensitive: bool [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_sensitive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isSensitive` should have a snake case name [INFO] [stdout] --> ch12-minigrep-project/src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let isSensitive = env::var("IGNORE_CASE").is_ok(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_sensitive` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch16-concurrency v0.1.0 (/opt/rustwide/workdir/ch16-concurrency) [INFO] [stderr] Checking ch10-traits v0.1.0 (/opt/rustwide/workdir/ch10-traits) [INFO] [stdout] warning: fields `value` and `child` are never read [INFO] [stdout] --> ch15-reference-cycles/src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | parent: RefCell>, [INFO] [stdout] 9 | child: 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch10-generics v0.1.0 (/opt/rustwide/workdir/ch10-generics) [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> ch10-traits/src/main.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> ch10-traits/src/main.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 68 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 69 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trait_bound_impl` is never used [INFO] [stdout] --> ch10-traits/src/main.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn trait_bound_impl(val: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trait_bound_impl_complex` is never used [INFO] [stdout] --> ch10-traits/src/main.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn trait_bound_impl_complex(item1: &T, item2: &U) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch07-modules-packages v0.1.0 (/opt/rustwide/workdir/ch07-modules-packages) [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stdout] warning: type `breaky` should have an upper camel case name [INFO] [stdout] --> ch07-modules-packages/src/lib.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct breaky { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Breaky` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat` is never used [INFO] [stdout] --> ch07-modules-packages/src/lib.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn eat() { [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 `breaky` is never constructed [INFO] [stdout] --> ch07-modules-packages/src/lib.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct breaky { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `make` is never used [INFO] [stdout] --> ch07-modules-packages/src/lib.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 25 | impl breaky { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 26 | pub fn make(bread: &str) -> breaky { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch06-enums v0.1.0 (/opt/rustwide/workdir/ch06-enums) [INFO] [stderr] Checking ch20-advanced-features v0.1.0 (/opt/rustwide/workdir/ch20-advanced-features) [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> ch10-generics/src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 20 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 21 | 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: method `get_x` is never used [INFO] [stdout] --> ch10-generics/src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl Point { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 37 | fn get_x(&self) -> T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_x_f64` is never used [INFO] [stdout] --> ch10-generics/src/main.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Point { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 45 | fn get_x_f64(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch13-iterators v0.1.0 (/opt/rustwide/workdir/ch13-iterators) [INFO] [stdout] warning: fields `sign_in_count` and `active` are never read [INFO] [stdout] --> ch05-structs/src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 27 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 31 | 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] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> ch10-generics/src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 20 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 21 | 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: method `get_x` is never used [INFO] [stdout] --> ch10-generics/src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl Point { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 37 | fn get_x(&self) -> T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch04-ownership v0.1.0 (/opt/rustwide/workdir/ch04-ownership) [INFO] [stdout] warning: method `get_x_f64` is never used [INFO] [stdout] --> ch10-generics/src/main.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Point { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 45 | fn get_x_f64(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Thunk` is never used [INFO] [stdout] --> ch20-advanced-features/src/main.rs:333:10 [INFO] [stdout] | [INFO] [stdout] 333 | type Thunk = Box; [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 `takes_long_type` is never used [INFO] [stdout] --> ch20-advanced-features/src/main.rs:335:8 [INFO] [stdout] | [INFO] [stdout] 335 | fn takes_long_type(_f: Thunk) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> ch20-advanced-features/src/main.rs:339:10 [INFO] [stdout] | [INFO] [stdout] 339 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch20-advanced-features/src/main.rs:416:19 [INFO] [stdout] | [INFO] [stdout] 416 | struct Status(i32); [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [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: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> ch06-enums/src/main.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | V4(u8, u8, u8, u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddress` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 52 - V4(u8, u8, u8, u8), [INFO] [stdout] 52 + V4((), (), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch06-enums/src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddress` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 53 - V6(String), [INFO] [stdout] 53 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> ch06-enums/src/main.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | Move { x: i32, y: i32 }, [INFO] [stdout] | ---- ^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields 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] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch06-enums/src/main.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | 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] 60 - Write(String), [INFO] [stdout] 60 + Write(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> ch06-enums/src/main.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ----------- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields 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 fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 61 - ChangeColor(i32, i32, i32), [INFO] [stdout] 61 + ChangeColor((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel` and `Dime` are never constructed [INFO] [stdout] --> ch06-enums/src/main.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 125 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 126 | Penny, [INFO] [stdout] 127 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 128 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> ch06-enums/src/main.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 134 | 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] [stderr] Checking ch10-lifetimes v0.1.0 (/opt/rustwide/workdir/ch10-lifetimes) [INFO] [stderr] Checking ch08-common-collections v0.1.0 (/opt/rustwide/workdir/ch08-common-collections) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> ch11-testing/src/lib.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | if(self.width < 10) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - if(self.width < 10) { [INFO] [stdout] 12 + if self.width < 10 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isLargerThan` should have a snake case name [INFO] [stdout] --> ch11-testing/src/lib.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn isLargerThan(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_larger_than` [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 imports: `ErrorKind` and `self` [INFO] [stdout] --> ch08-common-collections/src/main.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Read, ErrorKind}; [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: `std::error::Error` [INFO] [stdout] --> ch08-common-collections/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `spead` should have an upper camel case name [INFO] [stdout] --> ch08-common-collections/src/main.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | enum spead { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Spead` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> ch08-common-collections/src/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Read, ErrorKind}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> ch08-common-collections/src/main.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | Some(third) => println!("third"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> ch08-common-collections/src/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let s = format!("{s1}-{s2}-{s3}"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> ch08-common-collections/src/main.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let f = File::open("file.txt"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch08-common-collections/src/main.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | Decimal(f32), [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] 41 - Decimal(f32), [INFO] [stdout] 41 + Decimal(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch08-common-collections/src/main.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | Text(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] 42 - Text(String) [INFO] [stdout] 42 + Text(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind` and `self` [INFO] [stdout] --> ch08-common-collections/src/main.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Read, ErrorKind}; [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: `std::error::Error` [INFO] [stdout] --> ch08-common-collections/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `spead` should have an upper camel case name [INFO] [stdout] --> ch08-common-collections/src/main.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | enum spead { [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Spead` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> ch10-traits/src/main.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> ch10-traits/src/main.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 68 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 69 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trait_bound_impl` is never used [INFO] [stdout] --> ch10-traits/src/main.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn trait_bound_impl(val: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trait_bound_impl_complex` is never used [INFO] [stdout] --> ch10-traits/src/main.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn trait_bound_impl_complex(item1: &T, item2: &U) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Thunk` is never used [INFO] [stdout] --> ch20-advanced-features/src/main.rs:333:10 [INFO] [stdout] | [INFO] [stdout] 333 | type Thunk = Box; [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 `takes_long_type` is never used [INFO] [stdout] --> ch20-advanced-features/src/main.rs:335:8 [INFO] [stdout] | [INFO] [stdout] 335 | fn takes_long_type(_f: Thunk) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> ch20-advanced-features/src/main.rs:339:10 [INFO] [stdout] | [INFO] [stdout] 339 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch20-advanced-features/src/main.rs:416:19 [INFO] [stdout] | [INFO] [stdout] 416 | struct Status(i32); [INFO] [stdout] | ------ ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [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] [stderr] Checking ch19-pattern-matching v0.1.0 (/opt/rustwide/workdir/ch19-pattern-matching) [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> ch08-common-collections/src/main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Read, ErrorKind}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third` [INFO] [stdout] --> ch08-common-collections/src/main.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | Some(third) => println!("third"), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> ch08-common-collections/src/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let s = format!("{s1}-{s2}-{s3}"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> ch08-common-collections/src/main.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | let f = File::open("file.txt"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> ch06-enums/src/main.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | V4(u8, u8, u8, u8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddress` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 52 - V4(u8, u8, u8, u8), [INFO] [stdout] 52 + V4((), (), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch06-enums/src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `IpAddress` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 53 - V6(String), [INFO] [stdout] 53 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> ch06-enums/src/main.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | Move { x: i32, y: i32 }, [INFO] [stdout] | ---- ^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields 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] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch06-enums/src/main.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | 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] 60 - Write(String), [INFO] [stdout] 60 + Write(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> ch06-enums/src/main.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ----------- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields 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 fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 61 - ChangeColor(i32, i32, i32), [INFO] [stdout] 61 + ChangeColor((), (), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel` and `Dime` are never constructed [INFO] [stdout] --> ch06-enums/src/main.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 125 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 126 | Penny, [INFO] [stdout] 127 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 128 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> ch06-enums/src/main.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 134 | 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: struct `Fashion` is never constructed [INFO] [stdout] --> ch13-iterators/src/main.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct Fashion { [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 `is_correct` is never used [INFO] [stdout] --> ch13-iterators/src/main.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn is_correct(types: Vec, my_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stdout] warning: variant `Hsv` is never constructed [INFO] [stdout] --> ch19-pattern-matching/src/main.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 174 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 175 | Rgb(i32, i32, i32), [INFO] [stdout] 176 | Hsv(i32, i32, i32), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> ch19-pattern-matching/src/main.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 179 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 180 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 181 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 182 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stdout] warning: fields `value` and `child` are never read [INFO] [stdout] --> ch15-reference-cycles/src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | parent: RefCell>, [INFO] [stdout] 9 | child: 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Hsv` is never constructed [INFO] [stdout] --> ch19-pattern-matching/src/main.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 174 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 175 | Rgb(i32, i32, i32), [INFO] [stdout] 176 | Hsv(i32, i32, i32), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> ch19-pattern-matching/src/main.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 179 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 180 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 181 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 182 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `breaky` should have an upper camel case name [INFO] [stdout] --> ch07-modules-packages/src/lib.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct breaky { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Breaky` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eat` is never used [INFO] [stdout] --> ch07-modules-packages/src/lib.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn eat() { [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 `breaky` is never constructed [INFO] [stdout] --> ch07-modules-packages/src/lib.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct breaky { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `make` is never used [INFO] [stdout] --> ch07-modules-packages/src/lib.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 25 | impl breaky { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 26 | pub fn make(bread: &str) -> breaky { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking tokio v1.42.1 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking string_cache v0.8.9 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking tokio-util v0.7.17 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling html5ever v0.27.0 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking ch02-guessing-game v0.1.0 (/opt/rustwide/workdir/ch02-guessing-game) [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 phf_codegen v0.11.3 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Compiling selectors v0.25.0 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling markup5ever v0.12.1 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Checking cssparser v0.31.2 [INFO] [stderr] Checking hyper-util v0.1.10 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking scraper v0.20.0 [INFO] [stderr] Checking reqwest v0.12.15 [INFO] [stderr] Checking trpl v0.2.0 [INFO] [stderr] Checking ch17-async-await v0.1.0 (/opt/rustwide/workdir/ch17-async-await) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.63s [INFO] running `Command { std: "docker" "inspect" "ffb171a546907927e2295151704dc82f5aea66f72ee7af1acbdae7f1ac41e982", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffb171a546907927e2295151704dc82f5aea66f72ee7af1acbdae7f1ac41e982", kill_on_drop: false }` [INFO] [stdout] ffb171a546907927e2295151704dc82f5aea66f72ee7af1acbdae7f1ac41e982