[INFO] cloning repository https://github.com/psatomas/enums [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/psatomas/enums" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsatomas%2Fenums", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsatomas%2Fenums'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bbc6339aed21b72cc8548e0726ee6bc482a51c25 [INFO] checking psatomas/enums against try#78c81ee3917a99dcff6e2e6822800f0492c415c3 for pr-148967 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsatomas%2Fenums" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/psatomas/enums [INFO] finished tweaking git repo https://github.com/psatomas/enums [INFO] tweaked toml for git repo https://github.com/psatomas/enums written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/psatomas/enums on toolchain 78c81ee3917a99dcff6e2e6822800f0492c415c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/psatomas/enums 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" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking psatomas/enums against try#78c81ee3917a99dcff6e2e6822800f0492c415c3 for pr-148967 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsatomas%2Fenums" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/psatomas/enums [INFO] finished tweaking git repo https://github.com/psatomas/enums [INFO] tweaked toml for git repo https://github.com/psatomas/enums written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/psatomas/enums on toolchain 78c81ee3917a99dcff6e2e6822800f0492c415c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/psatomas/enums 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" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1003c37d5cc04b3e26ea559d5ba5153dd58b7acc1100731ef58525f02aa0c821 [INFO] running `Command { std: "docker" "start" "-a" "1003c37d5cc04b3e26ea559d5ba5153dd58b7acc1100731ef58525f02aa0c821", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1003c37d5cc04b3e26ea559d5ba5153dd58b7acc1100731ef58525f02aa0c821", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1003c37d5cc04b3e26ea559d5ba5153dd58b7acc1100731ef58525f02aa0c821", kill_on_drop: false }` [INFO] [stdout] 1003c37d5cc04b3e26ea559d5ba5153dd58b7acc1100731ef58525f02aa0c821 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9bdd211710cb7e38b6114fb489ee9fefedbc986e0cfc33e9f210081efdbb5c1 [INFO] running `Command { std: "docker" "start" "-a" "e9bdd211710cb7e38b6114fb489ee9fefedbc986e0cfc33e9f210081efdbb5c1", kill_on_drop: false }` [INFO] [stderr] Checking enums v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `Linux` is never constructed [INFO] [stdout] --> src/bin/the_match_keyword_ii.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum OperatingSystem { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 4 | Linux, [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 `Linux` is never constructed [INFO] [stdout] --> src/bin/the_match_keyword_ii.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum OperatingSystem { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 4 | Linux, [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 `LowFat` and `Whole` are never constructed [INFO] [stdout] --> src/bin/the_let_else_construct.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Milk { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 2 | LowFat(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | Whole, [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: `visa` [INFO] [stdout] --> src/bin/struct_variants.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let visa = PaymentMethodType::CreditCard(String::from("0034-5678")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_visa` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visa` [INFO] [stdout] --> src/bin/struct_variants.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let visa = PaymentMethodType::CreditCard(String::from("0034-5678")); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_visa` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ordered`, `Packed`, and `Delivered` are never constructed [INFO] [stdout] --> src/bin/the_match_keyword_iv.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum OnlineOrderStatus { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 3 | Ordered, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | Packed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | Shipped, [INFO] [stdout] 6 | Delivered, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OnlineOrderStatus` 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/struct_variants.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | CreditCard(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` 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] 3 - CreditCard(String), [INFO] [stdout] 3 + CreditCard(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username` and `password` are never read [INFO] [stdout] --> src/bin/struct_variants.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | PayPal { username: String, password: String }, [INFO] [stdout] | ------ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DebitCard` and `Cash` are never constructed [INFO] [stdout] --> src/bin/struct_variants.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum PaymentMethodType { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 3 | CreditCard(String), [INFO] [stdout] 4 | DebitCard(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | PayPal { username: String, password: String }, [INFO] [stdout] 6 | Cash, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/enum_with_associated_values_ii.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | CreditCard(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` 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] 3 - CreditCard(String), [INFO] [stdout] 3 + CreditCard(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/enum_with_associated_values_ii.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | PayPal(String, String), [INFO] [stdout] | ------ ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 5 - PayPal(String, String), [INFO] [stdout] 5 + PayPal((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DebitCard` is never constructed [INFO] [stdout] --> src/bin/enum_with_associated_values_ii.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum PaymentMethodType { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] 3 | CreditCard(String), [INFO] [stdout] 4 | DebitCard(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/struct_variants.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | CreditCard(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` 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] 3 - CreditCard(String), [INFO] [stdout] 3 + CreditCard(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username` and `password` are never read [INFO] [stdout] --> src/bin/struct_variants.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | PayPal { username: String, password: String }, [INFO] [stdout] | ------ ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DebitCard` and `Cash` are never constructed [INFO] [stdout] --> src/bin/struct_variants.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum PaymentMethodType { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 3 | CreditCard(String), [INFO] [stdout] 4 | DebitCard(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 5 | PayPal { username: String, password: String }, [INFO] [stdout] 6 | Cash, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Windows` and `Linux` are never constructed [INFO] [stdout] --> src/bin/the_match_keyword_i.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum OperatingSystem { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 2 | Windows, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 3 | MacOS, [INFO] [stdout] 4 | Linux, [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 `LowFat` and `NonDairy` are never constructed [INFO] [stdout] --> src/bin/the_if_let_construct.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Milk { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 2 | LowFat(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | Whole, [INFO] [stdout] 4 | NonDairy { kind: 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: field `0` is never read [INFO] [stdout] --> src/bin/enum_with_associated_values_ii.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | CreditCard(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` 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] 3 - CreditCard(String), [INFO] [stdout] 3 + CreditCard(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/enum_with_associated_values_ii.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | PayPal(String, String), [INFO] [stdout] | ------ ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 5 - PayPal(String, String), [INFO] [stdout] 5 + PayPal((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DebitCard` is never constructed [INFO] [stdout] --> src/bin/enum_with_associated_values_ii.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum PaymentMethodType { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] 3 | CreditCard(String), [INFO] [stdout] 4 | DebitCard(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ordered`, `Packed`, and `Delivered` are never constructed [INFO] [stdout] --> src/bin/the_match_keyword_iv.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum OnlineOrderStatus { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 3 | Ordered, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | Packed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | Shipped, [INFO] [stdout] 6 | Delivered, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OnlineOrderStatus` 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/enum_with_associated_values_i.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | CreditCard(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` 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] 3 - CreditCard(String), [INFO] [stdout] 3 + CreditCard(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/enum_with_associated_values_i.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | DebitCard(String), [INFO] [stdout] | --------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` 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 - DebitCard(String), [INFO] [stdout] 4 + DebitCard(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PayPal` is never constructed [INFO] [stdout] --> src/bin/enum_with_associated_values_i.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum PaymentMethodType { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 5 | PayPal(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_card` [INFO] [stdout] --> src/bin/intro_to_enums.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let first_card: CardSuit = CardSuit::Hearts; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_card` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card_suits` [INFO] [stdout] --> src/bin/intro_to_enums.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let card_suits = [CardSuit::Hearts, CardSuit::Clubs]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_card_suits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card_suits` [INFO] [stdout] --> src/bin/intro_to_enums.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let card_suits = (CardSuit::Diamonds, CardSuit::Spades); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_card_suits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `second_card` is never read [INFO] [stdout] --> src/bin/intro_to_enums.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | let mut second_card = CardSuit::Spades; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Card` is never constructed [INFO] [stdout] --> src/bin/intro_to_enums.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Card { [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 `Silver` and `Platinum` are never constructed [INFO] [stdout] --> src/bin/coding_challeng.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | enum Tier { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 40 | Gold, [INFO] [stdout] 41 | Silver, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | Platinum, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tier` 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: `first_card` [INFO] [stdout] --> src/bin/intro_to_enums.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let first_card: CardSuit = CardSuit::Hearts; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_card` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card_suits` [INFO] [stdout] --> src/bin/intro_to_enums.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let card_suits = [CardSuit::Hearts, CardSuit::Clubs]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_card_suits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card_suits` [INFO] [stdout] --> src/bin/intro_to_enums.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let card_suits = (CardSuit::Diamonds, CardSuit::Spades); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_card_suits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `second_card` is never read [INFO] [stdout] --> src/bin/intro_to_enums.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | let mut second_card = CardSuit::Spades; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Card` is never constructed [INFO] [stdout] --> src/bin/intro_to_enums.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Card { [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 `LowFat` and `Whole` are never constructed [INFO] [stdout] --> src/bin/the_let_else_construct.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Milk { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 2 | LowFat(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | Whole, [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 `bowl` should have an upper camel case name [INFO] [stdout] --> src/bin/nesting_enums_in_enums.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | bowl{meat: Meat, beans: Beans}, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Bowl` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `vaganPlate` should have an upper camel case name [INFO] [stdout] --> src/bin/nesting_enums_in_enums.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | vaganPlate, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `VaganPlate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Windows` and `Linux` are never constructed [INFO] [stdout] --> src/bin/the_match_keyword_i.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum OperatingSystem { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 2 | Windows, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 3 | MacOS, [INFO] [stdout] 4 | Linux, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [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/enum_with_associated_values_i.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | CreditCard(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` 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] 3 - CreditCard(String), [INFO] [stdout] 3 + CreditCard(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/enum_with_associated_values_i.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | DebitCard(String), [INFO] [stdout] | --------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` 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 - DebitCard(String), [INFO] [stdout] 4 + DebitCard(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PayPal` is never constructed [INFO] [stdout] --> src/bin/enum_with_associated_values_i.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum PaymentMethodType { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 5 | PayPal(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PaymentMethodType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LowFat` and `NonDairy` are never constructed [INFO] [stdout] --> src/bin/the_if_let_construct.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Milk { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 2 | LowFat(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | Whole, [INFO] [stdout] 4 | NonDairy { kind: 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: variants `Silver` and `Platinum` are never constructed [INFO] [stdout] --> src/bin/coding_challeng.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 39 | enum Tier { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 40 | Gold, [INFO] [stdout] 41 | Silver, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | Platinum, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tier` 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 `bowl` should have an upper camel case name [INFO] [stdout] --> src/bin/nesting_enums_in_enums.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | bowl{meat: Meat, beans: Beans}, [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Bowl` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `vaganPlate` should have an upper camel case name [INFO] [stdout] --> src/bin/nesting_enums_in_enums.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | vaganPlate, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `VaganPlate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `meat` and `beans` are never read [INFO] [stdout] --> src/bin/nesting_enums_in_enums.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | Burrito{meat: Meat, beans: Beans}, [INFO] [stdout] | ------- ^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RestaurantItem` 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 `meat` and `beans` are never read [INFO] [stdout] --> src/bin/nesting_enums_in_enums.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | bowl{meat: Meat, beans: Beans}, [INFO] [stdout] | ---- ^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RestaurantItem` 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 `meat` and `beans` are never read [INFO] [stdout] --> src/bin/nesting_enums_in_enums.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | Burrito{meat: Meat, beans: Beans}, [INFO] [stdout] | ------- ^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RestaurantItem` 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 `meat` and `beans` are never read [INFO] [stdout] --> src/bin/nesting_enums_in_enums.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | bowl{meat: Meat, beans: Beans}, [INFO] [stdout] | ---- ^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `RestaurantItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "e9bdd211710cb7e38b6114fb489ee9fefedbc986e0cfc33e9f210081efdbb5c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9bdd211710cb7e38b6114fb489ee9fefedbc986e0cfc33e9f210081efdbb5c1", kill_on_drop: false }` [INFO] [stdout] e9bdd211710cb7e38b6114fb489ee9fefedbc986e0cfc33e9f210081efdbb5c1