[INFO] fetching crate learnrust 0.1.0... [INFO] building learnrust-0.1.0 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate learnrust 0.1.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate learnrust 0.1.0 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate learnrust 0.1.0 [INFO] finished tweaking crates.io crate learnrust 0.1.0 [INFO] tweaked toml for crates.io crate learnrust 0.1.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 10 packages to latest compatible versions [INFO] [stderr] Adding rand v0.3.23 (available: v0.8.5) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 62534c89711dc2f492657ebb2038ebe7f8a772de2c2230aaef4420fc841108cb [INFO] running `Command { std: "docker" "start" "-a" "62534c89711dc2f492657ebb2038ebe7f8a772de2c2230aaef4420fc841108cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "62534c89711dc2f492657ebb2038ebe7f8a772de2c2230aaef4420fc841108cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62534c89711dc2f492657ebb2038ebe7f8a772de2c2230aaef4420fc841108cb", kill_on_drop: false }` [INFO] [stdout] 62534c89711dc2f492657ebb2038ebe7f8a772de2c2230aaef4420fc841108cb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3567fc337e4585bf09e1c641e70328820f9b459726266362e58a67b55d686559 [INFO] running `Command { std: "docker" "start" "-a" "3567fc337e4585bf09e1c641e70328820f9b459726266362e58a67b55d686559", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling 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: 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: `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: `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: 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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.70s [INFO] running `Command { std: "docker" "inspect" "3567fc337e4585bf09e1c641e70328820f9b459726266362e58a67b55d686559", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3567fc337e4585bf09e1c641e70328820f9b459726266362e58a67b55d686559", kill_on_drop: false }` [INFO] [stdout] 3567fc337e4585bf09e1c641e70328820f9b459726266362e58a67b55d686559 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cccc2bcf706e6f268b97c7e6b619c2b47a46ed4857a64691462e1c73bb26f061 [INFO] running `Command { std: "docker" "start" "-a" "cccc2bcf706e6f268b97c7e6b619c2b47a46ed4857a64691462e1c73bb26f061", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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: `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: `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: 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] [stderr] Compiling learnrust v0.1.0 (/opt/rustwide/workdir) [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: 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: 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: 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: `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: `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: 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: 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: 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "cccc2bcf706e6f268b97c7e6b619c2b47a46ed4857a64691462e1c73bb26f061", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cccc2bcf706e6f268b97c7e6b619c2b47a46ed4857a64691462e1c73bb26f061", kill_on_drop: false }` [INFO] [stdout] cccc2bcf706e6f268b97c7e6b619c2b47a46ed4857a64691462e1c73bb26f061