[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 try#93086cfebfccb79083c59d0d3b2052944bba643c 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-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 53% (5689/10604) Updating files: 54% (5727/10604) Updating files: 55% (5833/10604) Updating files: 56% (5939/10604) Updating files: 57% (6045/10604) Updating files: 58% (6151/10604) Updating files: 59% (6257/10604) Updating files: 60% (6363/10604) Updating files: 61% (6469/10604) Updating files: 62% (6575/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: 79% (8434/10604) Updating files: 80% (8484/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% (9082/10604) Updating files: 86% (9120/10604) Updating files: 87% (9226/10604) Updating files: 87% (9248/10604) Updating files: 88% (9332/10604) Updating files: 89% (9438/10604) Updating files: 89% (9506/10604) Updating files: 90% (9544/10604) Updating files: 91% (9650/10604) Updating files: 91% (9663/10604) Updating files: 92% (9756/10604) Updating files: 93% (9862/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-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/viraj124/rust-examples on toolchain 93086cfebfccb79083c59d0d3b2052944bba643c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "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" "+93086cfebfccb79083c59d0d3b2052944bba643c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e1de4e602ef0323cf5ec7ac1e155f5051698e2b3b17951407b379a90f0224e89 [INFO] running `Command { std: "docker" "start" "-a" "e1de4e602ef0323cf5ec7ac1e155f5051698e2b3b17951407b379a90f0224e89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e1de4e602ef0323cf5ec7ac1e155f5051698e2b3b17951407b379a90f0224e89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1de4e602ef0323cf5ec7ac1e155f5051698e2b3b17951407b379a90f0224e89", kill_on_drop: false }` [INFO] [stdout] e1de4e602ef0323cf5ec7ac1e155f5051698e2b3b17951407b379a90f0224e89 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cbf85ab15c0c93c58d7d770ba8dfb2240c73983d2e53bf16681a14e9483d1a94 [INFO] running `Command { std: "docker" "start" "-a" "cbf85ab15c0c93c58d7d770ba8dfb2240c73983d2e53bf16681a14e9483d1a94", 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 bitflags v2.10.0 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Checking futf v0.1.5 [INFO] [stderr] Compiling cc v1.2.52 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking dtoa v1.0.11 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking rustls-pki-types v1.13.2 [INFO] [stderr] Checking servo_arc v0.3.0 [INFO] [stderr] Checking dtoa-short v0.3.5 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking ryu v1.0.22 [INFO] [stderr] Checking getopts v0.2.24 [INFO] [stderr] Checking tendril v0.4.3 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking ego-tree v0.6.3 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Checking ch12-minigrep-project v0.1.0 (/opt/rustwide/workdir/ch12-minigrep-project) [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Checking ch15-smart-pointers v0.1.0 (/opt/rustwide/workdir/ch15-smart-pointers) [INFO] [stderr] Checking ch11-testing v0.1.0 (/opt/rustwide/workdir/ch11-testing) [INFO] [stderr] Checking ch13-iterators v0.1.0 (/opt/rustwide/workdir/ch13-iterators) [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: 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] [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: 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] [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: 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] error: struct `Email` is never constructed [INFO] [stdout] --> ch15-smart-pointers/src/main.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Email<'a, T: Messenger> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ch19-pattern-matching v0.1.0 (/opt/rustwide/workdir/ch19-pattern-matching) [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: 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] [stderr] error: could not compile `ch15-smart-pointers` (bin "ch15-smart-pointers") due to 1 previous error; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] --> 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] --> 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: 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: 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] running `Command { std: "docker" "inspect" "cbf85ab15c0c93c58d7d770ba8dfb2240c73983d2e53bf16681a14e9483d1a94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbf85ab15c0c93c58d7d770ba8dfb2240c73983d2e53bf16681a14e9483d1a94", kill_on_drop: false }` [INFO] [stdout] cbf85ab15c0c93c58d7d770ba8dfb2240c73983d2e53bf16681a14e9483d1a94