[INFO] cloning repository https://github.com/anztrax/learnrust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/anztrax/learnrust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanztrax%2Flearnrust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanztrax%2Flearnrust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d04f8dcbd5690f4b590bcf9fdaaccaa6fa844a9f [INFO] checking anztrax/learnrust/d04f8dcbd5690f4b590bcf9fdaaccaa6fa844a9f against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fanztrax%2Flearnrust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/anztrax/learnrust on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/anztrax/learnrust [INFO] finished tweaking git repo https://github.com/anztrax/learnrust [INFO] tweaked toml for git repo https://github.com/anztrax/learnrust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/anztrax/learnrust 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand v0.4.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4cdba7f6a8e4724b8670db982031a709d1e7deec2a75d48a9a460e7552dc91f8 [INFO] running `Command { std: "docker" "start" "-a" "4cdba7f6a8e4724b8670db982031a709d1e7deec2a75d48a9a460e7552dc91f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4cdba7f6a8e4724b8670db982031a709d1e7deec2a75d48a9a460e7552dc91f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cdba7f6a8e4724b8670db982031a709d1e7deec2a75d48a9a460e7552dc91f8", kill_on_drop: false }` [INFO] [stdout] 4cdba7f6a8e4724b8670db982031a709d1e7deec2a75d48a9a460e7552dc91f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f08c2d29ad42b0d47a30ed5dbc578e2b6e10a912f9dbc2283397f25556461e1a [INFO] running `Command { std: "docker" "start" "-a" "f08c2d29ad42b0d47a30ed5dbc578e2b6e10a912f9dbc2283397f25556461e1a", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.43 [INFO] [stderr] Checking rand v0.4.3 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking learnrust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/lessons/tryGenericTypes.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | (self.x.pow(2) + self.y.pow(2)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 16 - (self.x.pow(2) + self.y.pow(2)) [INFO] [stdout] 16 + self.x.pow(2) + self.y.pow(2) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/closures/learnIterator.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | if(self.count < 6){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - if(self.count < 6){ [INFO] [stdout] 30 + if self.count < 6 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/lessons/tryGenericTypes.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | (self.x.pow(2) + self.y.pow(2)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 16 - (self.x.pow(2) + self.y.pow(2)) [INFO] [stdout] 16 + self.x.pow(2) + self.y.pow(2) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `::lessons::Rectangle::Rectangle` [INFO] [stdout] --> src/adder/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ::lessons::Rectangle::Rectangle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `::lessons::Guess::Guess` [INFO] [stdout] --> src/adder/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ::lessons::Guess::Guess; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/closures/learnIterator.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | if(self.count < 6){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 30 - if(self.count < 6){ [INFO] [stdout] 30 + if self.count < 6 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v_reference` [INFO] [stdout] --> src/lessons/commonCollection.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let v_reference = &v[v_index]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_v_reference` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v_reference` [INFO] [stdout] --> src/lessons/commonCollection.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let v_reference = &v[v_index]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_v_reference` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/lessons/tryStringCollection.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | let s2 = String::from("tac"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/lessons/tryStringCollection.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | let s2 = String::from("tac"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point2` [INFO] [stdout] --> src/lessons/tryGenericTypes.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | let point2 = Point{x : 10.1, y: 20.2}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point2_2` [INFO] [stdout] --> src/lessons/tryGenericTypes.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 53 | let point2_2 = Point2{x : 20, y : 20.1}; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point2_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point2` [INFO] [stdout] --> src/lessons/tryGenericTypes.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | let point2 = Point{x : 10.1, y: 20.2}; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_point2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point2_2` [INFO] [stdout] --> src/lessons/tryGenericTypes.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 53 | let point2_2 = Point2{x : 20, y : 20.1}; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_point2_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intensity` [INFO] [stdout] --> src/closures/learnClosure.rs:41:40 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn simulated_expensive_calculation(intensity: u32){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intensity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expensive_result2` [INFO] [stdout] --> src/closures/learnClosure.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | let expensive_result2 = expensive_calculation(intensity); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expensive_result2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expensive_result3` [INFO] [stdout] --> src/closures/learnClosure.rs:63:7 [INFO] [stdout] | [INFO] [stdout] 63 | let expensive_result3 = |num: u32| -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expensive_result3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guess` [INFO] [stdout] --> src/adder/mod.rs:45:7 [INFO] [stdout] | [INFO] [stdout] 45 | let guess = Guess::new(0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lessons/commonCollection.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 3 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lessons/commonCollection.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 4 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/adder/mod.rs:74:7 [INFO] [stdout] | [INFO] [stdout] 74 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lessons/commonCollection.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | 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] 5 | Text(()) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> src/lessons/tryGenericTypes.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/lessons/Guess.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Guess{ [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 2 | value:u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `style` is never read [INFO] [stdout] --> src/closures/learnIterator.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 2 | struct Shoe{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 3 | size : u32, [INFO] [stdout] 4 | style: String [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shoe` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `commonCollection` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod commonCollection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `common_collection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tryStringCollection` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod tryStringCollection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `try_string_collection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tryHashMapCollection` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod tryHashMapCollection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `try_hash_map_collection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `recoverableError` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod recoverableError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recoverable_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tryGenericTypes` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod tryGenericTypes; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `try_generic_types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tryLifetime` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub mod tryLifetime; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `try_lifetime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Rectangle` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub mod Rectangle; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rectangle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Guess` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub mod Guess; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `guess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tryCommonCollection` should have a snake case name [INFO] [stdout] --> src/lessons/commonCollection.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn tryCommonCollection(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `try_common_collection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tryUpdateString` should have a snake case name [INFO] [stdout] --> src/lessons/tryStringCollection.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn tryUpdateString(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `try_update_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tryHashMap` should have a snake case name [INFO] [stdout] --> src/lessons/tryHashMapCollection.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn tryHashMap(){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `try_hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recoverableError` should have a snake case name [INFO] [stdout] --> src/lessons/recoverableError.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn recoverableError(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recoverable_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intensity` [INFO] [stdout] --> src/closures/learnClosure.rs:41:40 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn simulated_expensive_calculation(intensity: u32){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intensity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expensive_result2` [INFO] [stdout] --> src/closures/learnClosure.rs:62:7 [INFO] [stdout] | [INFO] [stdout] 62 | let expensive_result2 = expensive_calculation(intensity); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expensive_result2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expensive_result3` [INFO] [stdout] --> src/closures/learnClosure.rs:63:7 [INFO] [stdout] | [INFO] [stdout] 63 | let expensive_result3 = |num: u32| -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expensive_result3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `learnClosure` should have a snake case name [INFO] [stdout] --> src/closures/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod learnClosure; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `learn_closure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `learnIterator` should have a snake case name [INFO] [stdout] --> src/closures/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod learnIterator; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `learn_iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `learnIterator` should have a snake case name [INFO] [stdout] --> src/closures/learnIterator.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn learnIterator(){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `learn_iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lessons/commonCollection.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 3 | Int(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lessons/commonCollection.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | 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] 4 | Float(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lessons/commonCollection.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | 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] 5 | Text(()) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> src/lessons/tryGenericTypes.rs:132:4 [INFO] [stdout] | [INFO] [stdout] 132 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/lessons/Guess.rs:2:3 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Guess{ [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 2 | value:u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `style` is never read [INFO] [stdout] --> src/closures/learnIterator.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 2 | struct Shoe{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 3 | size : u32, [INFO] [stdout] 4 | style: String [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shoe` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `commonCollection` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod commonCollection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `common_collection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tryStringCollection` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub mod tryStringCollection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `try_string_collection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tryHashMapCollection` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub mod tryHashMapCollection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `try_hash_map_collection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `recoverableError` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub mod recoverableError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recoverable_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tryGenericTypes` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod tryGenericTypes; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `try_generic_types` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `tryLifetime` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub mod tryLifetime; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `try_lifetime` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Rectangle` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub mod Rectangle; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `rectangle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Guess` should have a snake case name [INFO] [stdout] --> src/lessons/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub mod Guess; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `guess` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tryCommonCollection` should have a snake case name [INFO] [stdout] --> src/lessons/commonCollection.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn tryCommonCollection(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `try_common_collection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tryUpdateString` should have a snake case name [INFO] [stdout] --> src/lessons/tryStringCollection.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn tryUpdateString(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `try_update_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tryHashMap` should have a snake case name [INFO] [stdout] --> src/lessons/tryHashMapCollection.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn tryHashMap(){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `try_hash_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recoverableError` should have a snake case name [INFO] [stdout] --> src/lessons/recoverableError.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn recoverableError(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `recoverable_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `learnClosure` should have a snake case name [INFO] [stdout] --> src/closures/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub mod learnClosure; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `learn_closure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `learnIterator` should have a snake case name [INFO] [stdout] --> src/closures/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub mod learnIterator; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `learn_iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `learnIterator` should have a snake case name [INFO] [stdout] --> src/closures/learnIterator.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn learnIterator(){ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `learn_iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `email`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | struct User{ [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 18 | username: String, [INFO] [stdout] 19 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | active: bool [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/main.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/main.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | struct Point(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `point1` should have an upper case name [INFO] [stdout] --> src/main.rs:100:11 [INFO] [stdout] | [INFO] [stdout] 100 | const point1 :Point = Point(0,0,0); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `POINT1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `color1` should have an upper case name [INFO] [stdout] --> src/main.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | const color1 :Color = Color( 0, 0, 10); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `COLOR1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `email`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | struct User{ [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 18 | username: String, [INFO] [stdout] 19 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | active: bool [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/main.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `1` and `2` are never read [INFO] [stdout] --> src/main.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | struct Point(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `point1` should have an upper case name [INFO] [stdout] --> src/main.rs:100:11 [INFO] [stdout] | [INFO] [stdout] 100 | const point1 :Point = Point(0,0,0); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `POINT1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `color1` should have an upper case name [INFO] [stdout] --> src/main.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | const color1 :Color = Color( 0, 0, 10); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `COLOR1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.65s [INFO] running `Command { std: "docker" "inspect" "f08c2d29ad42b0d47a30ed5dbc578e2b6e10a912f9dbc2283397f25556461e1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f08c2d29ad42b0d47a30ed5dbc578e2b6e10a912f9dbc2283397f25556461e1a", kill_on_drop: false }` [INFO] [stdout] f08c2d29ad42b0d47a30ed5dbc578e2b6e10a912f9dbc2283397f25556461e1a