[INFO] cloning repository https://github.com/Victor-shadow/rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Victor-shadow/rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVictor-shadow%2Frust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVictor-shadow%2Frust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f8aa6e603d15447f8721b2b7cc155c82d5bb8e66 [INFO] checking Victor-shadow/rust against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVictor-shadow%2Frust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Victor-shadow/rust [INFO] finished tweaking git repo https://github.com/Victor-shadow/rust [INFO] tweaked toml for git repo https://github.com/Victor-shadow/rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Victor-shadow/rust on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Victor-shadow/rust 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded trpl v0.2.0 [INFO] [stderr] Downloaded ego-tree v0.6.3 [INFO] [stderr] Downloaded scraper v0.20.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d931acc1de5e6f5fd068c7810b7c4baaab131291a7ad431eee0f00015520ae6c [INFO] running `Command { std: "docker" "start" "-a" "d931acc1de5e6f5fd068c7810b7c4baaab131291a7ad431eee0f00015520ae6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d931acc1de5e6f5fd068c7810b7c4baaab131291a7ad431eee0f00015520ae6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d931acc1de5e6f5fd068c7810b7c4baaab131291a7ad431eee0f00015520ae6c", kill_on_drop: false }` [INFO] [stdout] d931acc1de5e6f5fd068c7810b7c4baaab131291a7ad431eee0f00015520ae6c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 176a5dc6eba42b1a5331c087ecf0c4e9f4f8182b6969f8e50222a21ed7502190 [INFO] running `Command { std: "docker" "start" "-a" "176a5dc6eba42b1a5331c087ecf0c4e9f4f8182b6969f8e50222a21ed7502190", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking bitflags v2.9.3 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Checking value-bag v1.11.1 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking phf_shared v0.11.3 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Checking futf v0.1.5 [INFO] [stderr] Checking futures-lite v2.6.1 [INFO] [stderr] Checking dtoa v1.0.10 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking indexmap v2.11.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Checking dtoa-short v0.3.5 [INFO] [stderr] Checking tendril v0.4.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking async-task v4.7.1 [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Checking async-channel v2.5.0 [INFO] [stderr] Checking async-lock v3.4.1 [INFO] [stderr] Checking piper v0.2.4 [INFO] [stderr] Checking servo_arc v0.3.0 [INFO] [stderr] Checking getopts v0.2.24 [INFO] [stderr] Checking blocking v1.6.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking async-executor v1.13.3 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking ego-tree v0.6.3 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Compiling selectors v0.25.0 [INFO] [stderr] Compiling markup5ever v0.12.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling html5ever v0.27.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking polling v3.10.0 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking cssparser v0.31.2 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking async-io v2.5.0 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking async-global-executor v2.4.1 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking async-std v1.13.2 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking string_cache v0.8.9 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking scraper v0.20.0 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking hyper-util v0.1.16 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Checking trpl v0.2.0 [INFO] [stderr] Checking rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/bin/ReferenceCycle.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::{Ref, RefCell}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/ReferenceCycle.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | Cons(i32, RefCell>), //the second element in the Cons variant is 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] = 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] 7 - Cons(i32, RefCell>), //the second element in the Cons variant is RefCell> [INFO] [stdout] 7 + Cons((), RefCell>), //the second element in the Cons variant is RefCell> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/bin/TraitBounds.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Pair{ //always implements the new fn to return a new instance [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 function `new` is never used [INFO] [stdout] --> src/bin/TraitBounds.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Pair { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 9 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/bin/TraitBounds.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Pair { //Pair only implements the cmp_display method if its inner type T implements the traits [INFO] [stdout] | -------------------------------------- method in this implementation [INFO] [stdout] 15 | fn cmp_display(&self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ignore_case` is never read [INFO] [stdout] --> src/bin/InputOutputIterators.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | ignore_case: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Some` is never constructed [INFO] [stdout] --> src/bin/ClosuresUnwrapElseMethod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum MyOption{ [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 2 | Some(T), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Some` is never constructed [INFO] [stdout] --> src/bin/ClosuresUnwrapElseMethod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum MyOption{ [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 2 | Some(T), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::SpreadsheetCell::Float` [INFO] [stdout] --> src/bin/VectorsEnum.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SpreadsheetCell::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/VectorsEnum.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 - Int(i32), [INFO] [stdout] 4 + Int(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/VectorsEnum.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 - Float(f64), [INFO] [stdout] 5 + Float(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/VectorsEnum.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | Text(String,) [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 - Text(String,) [INFO] [stdout] 6 + Text((),) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/bin/ClosuresSortByKey.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 3 | width: u32, [INFO] [stdout] 4 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/bin/MethodMultipleParams.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 9 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `y` and `z` are never read [INFO] [stdout] --> src/bin/PatternIgnoreStructFeatures.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 5 | x: i32, [INFO] [stdout] 6 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] 7 | z: 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: variant `Rgb` is never constructed [INFO] [stdout] --> src/bin/PatternDestructureNestedStructsEnums.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 2 | Rgb(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] --> src/bin/PatternDestructureNestedStructsEnums.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 7 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rx` [INFO] [stdout] --> src/bin/ThreadChannel.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | let (tx, rx) = mpsc::channel(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/PanicMacro.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | panic!("Macro"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 3 | println!("End of main") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/DropTrait.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let c = CustomSmartPointer{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/bin/DropTrait.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let d = CustomSmartPointer{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/bin/MatchOption.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let six = plus_one(five); //when this method is invoked, the variable x in the body of plus_one will have a value Some(5) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/bin/MatchOption.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let none = plus_one(None); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `None` [INFO] [stdout] | [INFO] [stdout] 13 - let none = plus_one(None); [INFO] [stdout] 13 + let std::prelude::v1::None = plus_one(None); [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 13 | let _none = plus_one(None); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/ReferenceCount.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let b = Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/ReferenceCount.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/ReferenceCount.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 - Cons(i32, Rc), [INFO] [stdout] 2 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `y` is never read [INFO] [stdout] --> src/bin/GenericsMethod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point{ [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 2 | x: T, [INFO] [stdout] 3 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/bin/MethodMultipleParams.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 9 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/bin/TupleStructs.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | 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] = note: `Color` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/bin/TupleStructs.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | 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] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `baby_name` is never used [INFO] [stdout] --> src/bin/TraitAssociatedFunction.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Dog { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 12 | fn baby_name() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/bin/TupleStructs.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | 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] = note: `Color` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/bin/TupleStructs.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | 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] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/ReferenceCell.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 5 - Cons(Rc>, Rc), [INFO] [stdout] 5 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/RecoverableError.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | Ok(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/bin/AsyncChannelMultipleProducers.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/AsyncChannelMultipleProducers.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | let (tx, mut rx) = channel::unbounded(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Rgb` is never constructed [INFO] [stdout] --> src/bin/PatternDestructureNestedStructsEnums.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 2 | Rgb(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] --> src/bin/PatternDestructureNestedStructsEnums.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 7 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Move {x: i32, y: i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/ReferenceCounting.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let b = Cons(3, Rc::clone(&a)); //Rc::clone - increments the Reference count [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/ReferenceCounting.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/ReferenceCounting.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | Cons(i32, Rc), //Rc // a smart pointer for shared ownership [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 - Cons(i32, Rc), //Rc // a smart pointer for shared ownership [INFO] [stdout] 2 + Cons((), ()), //Rc // a smart pointer for shared ownership [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `y` is never read [INFO] [stdout] --> src/bin/GenericsMethod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Point{ [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 2 | x: T, [INFO] [stdout] 3 | y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/AsyncChannels.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut rx = rx; //move rx into async block [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/AsyncChannels.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | let (tx, mut rx) = channel::unbounded(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/bin/ClosureFnOnceTrait.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 3 | width: u32, [INFO] [stdout] 4 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/bin/MatchOption.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let six = plus_one(five); //when this method is invoked, the variable x in the body of plus_one will have a value Some(5) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/bin/MatchOption.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let none = plus_one(None); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `None` [INFO] [stdout] | [INFO] [stdout] 13 - let none = plus_one(None); [INFO] [stdout] 13 + let std::prelude::v1::None = plus_one(None); [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 13 | let _none = plus_one(None); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coin0` [INFO] [stdout] --> src/bin/MatchConstruct.rs:15:32 [INFO] [stdout] | [INFO] [stdout] 15 | fn value_in_cents(coin : Coin, coin0: Coin) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_coin0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/bin/MatchConstruct.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 4 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Nickel` is never constructed [INFO] [stdout] --> src/bin/MatchConstruct.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum Coin { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 9 | Penny, [INFO] [stdout] 10 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/bin/AsyncChannelMultipleProducers.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `baby_name` is never used [INFO] [stdout] --> src/bin/TraitAssociatedFunction.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Dog { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 12 | fn baby_name() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/AsyncChannelMultipleProducers.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | let (tx, mut rx) = channel::unbounded(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/bin/ClosureFnOnceTrait.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 3 | width: u32, [INFO] [stdout] 4 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> src/bin/PatternDestructureEnum.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 2 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | Move {x:i32, y:i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/bin/TraitBounds.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Pair{ //always implements the new fn to return a new instance [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 function `new` is never used [INFO] [stdout] --> src/bin/TraitBounds.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Pair { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 9 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/bin/TraitBounds.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Pair { //Pair only implements the cmp_display method if its inner type T implements the traits [INFO] [stdout] | -------------------------------------- method in this implementation [INFO] [stdout] 15 | fn cmp_display(&self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/ReferenceCount.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let b = Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/ReferenceCount.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/ReferenceCount.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 - Cons(i32, Rc), [INFO] [stdout] 2 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set1` [INFO] [stdout] --> src/bin/HashSet.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let set1: HashSet = HashSet::new(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_set1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set2` [INFO] [stdout] --> src/bin/HashSet.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let set2: HashSet = HashSet::with_capacity(10); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_set2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set3` [INFO] [stdout] --> src/bin/HashSet.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let set3 = HashSet::from([100, 200, 300, 400, 500]); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_set3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/bin/HashSet.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let s = RandomState::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ignore_case` is never read [INFO] [stdout] --> src/bin/InputOutputIterators.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | ignore_case: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/bin/ReferenceCycle.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::{Ref, RefCell}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/ReferenceCycle.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | Cons(i32, RefCell>), //the second element in the Cons variant is 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] = 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] 7 - Cons(i32, RefCell>), //the second element in the Cons variant is RefCell> [INFO] [stdout] 7 + Cons((), RefCell>), //the second element in the Cons variant is RefCell> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/bin/ClosuresSortByKey.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 3 | width: u32, [INFO] [stdout] 4 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> src/bin/StructsDeriveDebug.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 3 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | height:u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::SpreadsheetCell::Float` [INFO] [stdout] --> src/bin/VectorsEnum.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SpreadsheetCell::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> src/bin/StructsDeriveDebug.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 3 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | height:u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/VectorsEnum.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | Int(i32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 4 - Int(i32), [INFO] [stdout] 4 + Int(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/VectorsEnum.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | Float(f64), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 - Float(f64), [INFO] [stdout] 5 + Float(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/VectorsEnum.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | Text(String,) [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 - Text(String,) [INFO] [stdout] 6 + Text((),) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rx` [INFO] [stdout] --> src/bin/ThreadChannel.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | let (tx, rx) = mpsc::channel(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/PanicMacro.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | panic!("Macro"); [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] 3 | println!("End of main") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/AsyncChannels.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut rx = rx; //move rx into async block [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/AsyncChannels.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | let (tx, mut rx) = channel::unbounded(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/ExpectMethodErrorHandling.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let f = File::open("Cargo.toml").expect("File not able to open!"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set1` [INFO] [stdout] --> src/bin/HashSet.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let set1: HashSet = HashSet::new(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_set1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set2` [INFO] [stdout] --> src/bin/HashSet.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let set2: HashSet = HashSet::with_capacity(10); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_set2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set3` [INFO] [stdout] --> src/bin/HashSet.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let set3 = HashSet::from([100, 200, 300, 400, 500]); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_set3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/bin/HashSet.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let s = RandomState::new(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/bin/ReferenceNode.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::{Ref, RefCell}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `child` are never read [INFO] [stdout] --> src/bin/ReferenceNode.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 20 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | child: RefCell>> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> src/bin/TraitObject.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct SelectBox { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 21 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/DropTrait.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let c = CustomSmartPointer{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> src/bin/DropTrait.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let d = CustomSmartPointer{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coin0` [INFO] [stdout] --> src/bin/MatchConstruct.rs:15:32 [INFO] [stdout] | [INFO] [stdout] 15 | fn value_in_cents(coin : Coin, coin0: Coin) -> u8 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_coin0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/bin/MatchConstruct.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 4 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Nickel` is never constructed [INFO] [stdout] --> src/bin/MatchConstruct.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum Coin { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 9 | Penny, [INFO] [stdout] 10 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/ExpectMethodErrorHandling.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let f = File::open("Cargo.toml").expect("File not able to open!"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `y` and `z` are never read [INFO] [stdout] --> src/bin/PatternIgnoreStructFeatures.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 5 | x: i32, [INFO] [stdout] 6 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] 7 | z: 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: fields `width` and `height` are never read [INFO] [stdout] --> src/bin/TraitObject.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct SelectBox { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 21 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/ReferenceCounting.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let b = Cons(3, Rc::clone(&a)); //Rc::clone - increments the Reference count [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/ReferenceCounting.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/ReferenceCounting.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | Cons(i32, Rc), //Rc // a smart pointer for shared ownership [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 2 - Cons(i32, Rc), //Rc // a smart pointer for shared ownership [INFO] [stdout] 2 + Cons((), ()), //Rc // a smart pointer for shared ownership [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> src/bin/PatternDestructureEnum.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 2 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | Move {x:i32, y:i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/bin/HashMapOperations.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let score = scores.get(&team_name).copied().unwrap_or(0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/bin/ReferenceNode.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::{Ref, RefCell}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `child` are never read [INFO] [stdout] --> src/bin/ReferenceNode.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 20 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | child: RefCell>> [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/RecoverableError.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | Ok(f) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/bin/HashMapOperations.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let score = scores.get(&team_name).copied().unwrap_or(0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::alloc::System` [INFO] [stdout] --> src/bin/TreeSetAllocator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::alloc::System; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::alloc::System` [INFO] [stdout] --> src/bin/TreeSetAllocator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::alloc::System; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/ReferenceCell.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 5 - Cons(Rc>, Rc), [INFO] [stdout] 5 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 04s [INFO] running `Command { std: "docker" "inspect" "176a5dc6eba42b1a5331c087ecf0c4e9f4f8182b6969f8e50222a21ed7502190", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "176a5dc6eba42b1a5331c087ecf0c4e9f4f8182b6969f8e50222a21ed7502190", kill_on_drop: false }` [INFO] [stdout] 176a5dc6eba42b1a5331c087ecf0c4e9f4f8182b6969f8e50222a21ed7502190