[INFO] cloning repository https://github.com/mihastele/rust-playground [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mihastele/rust-playground" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmihastele%2Frust-playground", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmihastele%2Frust-playground'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 69e72d5caedfb69f886b1da6eb8e1d24fd4032a6 [INFO] checking mihastele/rust-playground against try#df1b9bf194c9183fb7c0604484171064069ce232 for pr-149195-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmihastele%2Frust-playground" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mihastele/rust-playground [INFO] finished tweaking git repo https://github.com/mihastele/rust-playground [INFO] tweaked toml for git repo https://github.com/mihastele/rust-playground written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mihastele/rust-playground on toolchain df1b9bf194c9183fb7c0604484171064069ce232 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+df1b9bf194c9183fb7c0604484171064069ce232" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mihastele/rust-playground 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" "+df1b9bf194c9183fb7c0604484171064069ce232" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking mihastele/rust-playground against try#df1b9bf194c9183fb7c0604484171064069ce232 for pr-149195-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmihastele%2Frust-playground" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mihastele/rust-playground [INFO] finished tweaking git repo https://github.com/mihastele/rust-playground [INFO] tweaked toml for git repo https://github.com/mihastele/rust-playground written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mihastele/rust-playground on toolchain df1b9bf194c9183fb7c0604484171064069ce232 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+df1b9bf194c9183fb7c0604484171064069ce232" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mihastele/rust-playground 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" "+df1b9bf194c9183fb7c0604484171064069ce232" "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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+df1b9bf194c9183fb7c0604484171064069ce232" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 94839367c6ef4df716c8643b5c6eb31a20ae18f64be745b3f766651f24aec71e [INFO] running `Command { std: "docker" "start" "-a" "94839367c6ef4df716c8643b5c6eb31a20ae18f64be745b3f766651f24aec71e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "94839367c6ef4df716c8643b5c6eb31a20ae18f64be745b3f766651f24aec71e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94839367c6ef4df716c8643b5c6eb31a20ae18f64be745b3f766651f24aec71e", kill_on_drop: false }` [INFO] [stdout] 94839367c6ef4df716c8643b5c6eb31a20ae18f64be745b3f766651f24aec71e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+df1b9bf194c9183fb7c0604484171064069ce232" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5afd5e57a9efac4cae8a6d032d906a28b88550b59d01e2a8e94b2bdc74d20f04 [INFO] running `Command { std: "docker" "start" "-a" "5afd5e57a9efac4cae8a6d032d906a28b88550b59d01e2a8e94b2bdc74d20f04", kill_on_drop: false }` [INFO] [stderr] Checking untitled v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let slice = &numbers[1..4]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `myc` [INFO] [stdout] --> src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let myc = Red; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_myc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let c2 = ColorsGeneric::Red("#f00"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c3` [INFO] [stdout] --> src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let c3 = ColorsGeneric::Red(255); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p3` [INFO] [stdout] --> src/main.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let p3: Point2Gen = Point2Gen { x: 32, y: 6.6 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Spade` is named the same as one of the variants of the type `Suit` [INFO] [stdout] --> src/main.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | Spade => { println!("\u{2660}") } [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `Suit::Spade` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Club` is named the same as one of the variants of the type `Suit` [INFO] [stdout] --> src/main.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | Club => { println!("\u{2663}") } [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `Suit::Club` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `untitled` (bin "untitled") due to 2 previous errors; 22 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | Club => { println!("\u{2663}") } [INFO] [stdout] | ^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 237 | Heart => { println!("\u{2665}") } [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] 238 | Spade => { println!("\u{2660}") } [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] 239 | Club => { println!("\u{2663}") } [INFO] [stdout] | ^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | Diaomond => { println!("\u{2666}") } [INFO] [stdout] | ^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 237 | Heart => { println!("\u{2665}") } [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] 238 | Spade => { println!("\u{2660}") } [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] 239 | Club => { println!("\u{2663}") } [INFO] [stdout] 240 | Diaomond => { println!("\u{2666}") } [INFO] [stdout] | ^^^^^^^^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Spade` [INFO] [stdout] --> src/main.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | Spade => { println!("\u{2660}") } [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Spade` [INFO] [stdout] | [INFO] [stdout] 238 | Suit::Spade => { println!("\u{2660}") } [INFO] [stdout] | ++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 238 | _Spade => { println!("\u{2660}") } [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Club` [INFO] [stdout] --> src/main.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | Club => { println!("\u{2663}") } [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Club` [INFO] [stdout] | [INFO] [stdout] 239 | Suit::Club => { println!("\u{2663}") } [INFO] [stdout] | ++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 239 | _Club => { println!("\u{2663}") } [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Diaomond` [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | Diaomond => { println!("\u{2666}") } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Diamond` [INFO] [stdout] | [INFO] [stdout] 240 - Diaomond => { println!("\u{2666}") } [INFO] [stdout] 240 + Suit::Diamond => { println!("\u{2666}") } [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 240 | _Diaomond => { println!("\u{2666}") } [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `country` is never used [INFO] [stdout] --> src/main.rs:217:4 [INFO] [stdout] | [INFO] [stdout] 217 | fn country(code: 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 `Spade` and `Club` are never constructed [INFO] [stdout] --> src/main.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 228 | enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 229 | Heart, [INFO] [stdout] 230 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 231 | Club, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Green` and `Blue` are never constructed [INFO] [stdout] --> src/main.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 258 | enum Colors { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 259 | Red, [INFO] [stdout] 260 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 261 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Colors` 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/main.rs:266:10 [INFO] [stdout] | [INFO] [stdout] 266 | Name(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `EnumWithTypes` 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] 266 - Name(String), [INFO] [stdout] 266 + Name(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Surname` and `Age` are never constructed [INFO] [stdout] --> src/main.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 265 | enum EnumWithTypes { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 266 | Name(String), [INFO] [stdout] 267 | Surname(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 268 | Age(u32), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EnumWithTypes` 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 `x` and `y` are never read [INFO] [stdout] --> src/main.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 281 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 282 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 283 | y: T, [INFO] [stdout] | ^ [INFO] [stdout] | [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 `x` and `y` are never read [INFO] [stdout] --> src/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 287 | struct Point2Gen { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 288 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 289 | y: V, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point2Gen` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Blue` is never constructed [INFO] [stdout] --> src/main.rs:294:5 [INFO] [stdout] | [INFO] [stdout] 292 | enum ColorsGeneric { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 293 | Red(T), [INFO] [stdout] 294 | Blue(T), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused closure that must be used [INFO] [stdout] --> src/main.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | / |a: i32, b: i32| -> i32 { [INFO] [stdout] 139 | | println!("sum {}", a + b); [INFO] [stdout] 140 | | // return a + b; [INFO] [stdout] 141 | | a + b [INFO] [stdout] 142 | | }; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: closures are lazy and do nothing unless called [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Spade` should have a snake case name [INFO] [stdout] --> src/main.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | Spade => { println!("\u{2660}") } [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `spade` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Club` should have a snake case name [INFO] [stdout] --> src/main.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | Club => { println!("\u{2663}") } [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `club` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Diaomond` should have a snake case name [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | Diaomond => { println!("\u{2666}") } [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `diaomond` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let slice = &numbers[1..4]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `myc` [INFO] [stdout] --> src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let myc = Red; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_myc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let c2 = ColorsGeneric::Red("#f00"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c3` [INFO] [stdout] --> src/main.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | let c3 = ColorsGeneric::Red(255); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p3` [INFO] [stdout] --> src/main.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let p3: Point2Gen = Point2Gen { x: 32, y: 6.6 }; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Spade` is named the same as one of the variants of the type `Suit` [INFO] [stdout] --> src/main.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | Spade => { println!("\u{2660}") } [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `Suit::Spade` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Club` is named the same as one of the variants of the type `Suit` [INFO] [stdout] --> src/main.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | Club => { println!("\u{2663}") } [INFO] [stdout] | ^^^^ help: to match on the variant, qualify the path: `Suit::Club` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | Club => { println!("\u{2663}") } [INFO] [stdout] | ^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 237 | Heart => { println!("\u{2665}") } [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] 238 | Spade => { println!("\u{2660}") } [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] 239 | Club => { println!("\u{2663}") } [INFO] [stdout] | ^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | Diaomond => { println!("\u{2666}") } [INFO] [stdout] | ^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 237 | Heart => { println!("\u{2665}") } [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] 238 | Spade => { println!("\u{2660}") } [INFO] [stdout] | ----- matches some of the same values [INFO] [stdout] 239 | Club => { println!("\u{2663}") } [INFO] [stdout] 240 | Diaomond => { println!("\u{2666}") } [INFO] [stdout] | ^^^^^^^^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Spade` [INFO] [stdout] --> src/main.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | Spade => { println!("\u{2660}") } [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Spade` [INFO] [stdout] | [INFO] [stdout] 238 | Suit::Spade => { println!("\u{2660}") } [INFO] [stdout] | ++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 238 | _Spade => { println!("\u{2660}") } [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Club` [INFO] [stdout] --> src/main.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | Club => { println!("\u{2663}") } [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Club` [INFO] [stdout] | [INFO] [stdout] 239 | Suit::Club => { println!("\u{2663}") } [INFO] [stdout] | ++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 239 | _Club => { println!("\u{2663}") } [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Diaomond` [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | Diaomond => { println!("\u{2666}") } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Diamond` [INFO] [stdout] | [INFO] [stdout] 240 - Diaomond => { println!("\u{2666}") } [INFO] [stdout] 240 + Suit::Diamond => { println!("\u{2666}") } [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 240 | _Diaomond => { println!("\u{2666}") } [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `country` is never used [INFO] [stdout] --> src/main.rs:217:4 [INFO] [stdout] | [INFO] [stdout] 217 | fn country(code: 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 `Spade` and `Club` are never constructed [INFO] [stdout] --> src/main.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 228 | enum Suit { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 229 | Heart, [INFO] [stdout] 230 | Spade, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 231 | Club, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Green` and `Blue` are never constructed [INFO] [stdout] --> src/main.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 258 | enum Colors { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 259 | Red, [INFO] [stdout] 260 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 261 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Colors` 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/main.rs:266:10 [INFO] [stdout] | [INFO] [stdout] 266 | Name(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `EnumWithTypes` 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] 266 - Name(String), [INFO] [stdout] 266 + Name(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Surname` and `Age` are never constructed [INFO] [stdout] --> src/main.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 265 | enum EnumWithTypes { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 266 | Name(String), [INFO] [stdout] 267 | Surname(String), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 268 | Age(u32), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EnumWithTypes` 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 `x` and `y` are never read [INFO] [stdout] --> src/main.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 281 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 282 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 283 | y: T, [INFO] [stdout] | ^ [INFO] [stdout] | [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 `x` and `y` are never read [INFO] [stdout] --> src/main.rs:288:5 [INFO] [stdout] | [INFO] [stdout] 287 | struct Point2Gen { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 288 | x: T, [INFO] [stdout] | ^ [INFO] [stdout] 289 | y: V, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point2Gen` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Blue` is never constructed [INFO] [stdout] --> src/main.rs:294:5 [INFO] [stdout] | [INFO] [stdout] 292 | enum ColorsGeneric { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 293 | Red(T), [INFO] [stdout] 294 | Blue(T), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused closure that must be used [INFO] [stdout] --> src/main.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | / |a: i32, b: i32| -> i32 { [INFO] [stdout] 139 | | println!("sum {}", a + b); [INFO] [stdout] 140 | | // return a + b; [INFO] [stdout] 141 | | a + b [INFO] [stdout] 142 | | }; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: closures are lazy and do nothing unless called [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Spade` should have a snake case name [INFO] [stdout] --> src/main.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | Spade => { println!("\u{2660}") } [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `spade` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Club` should have a snake case name [INFO] [stdout] --> src/main.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | Club => { println!("\u{2663}") } [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `club` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Diaomond` should have a snake case name [INFO] [stdout] --> src/main.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | Diaomond => { println!("\u{2666}") } [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `diaomond` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] error: could not compile `untitled` (bin "untitled" test) due to 2 previous errors; 22 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5afd5e57a9efac4cae8a6d032d906a28b88550b59d01e2a8e94b2bdc74d20f04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5afd5e57a9efac4cae8a6d032d906a28b88550b59d01e2a8e94b2bdc74d20f04", kill_on_drop: false }` [INFO] [stdout] 5afd5e57a9efac4cae8a6d032d906a28b88550b59d01e2a8e94b2bdc74d20f04