[INFO] cloning repository https://github.com/tlehman/gogame [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tlehman/gogame" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlehman%2Fgogame", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlehman%2Fgogame'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 13b2e1aba16fa8bb1eee115933bdd5f194c2ebaa [INFO] checking tlehman/gogame against try#39605810efb1a0d52f955bfba9e4eec7a01d5deb for pr-153692 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlehman%2Fgogame" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tlehman/gogame [INFO] finished tweaking git repo https://github.com/tlehman/gogame [INFO] tweaked toml for git repo https://github.com/tlehman/gogame written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tlehman/gogame on toolchain 39605810efb1a0d52f955bfba9e4eec7a01d5deb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tlehman/gogame 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" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 53482f10e8102e9d7491754ae2b27627d043e8dbeeffaf0060927639a8127a52 [INFO] running `Command { std: "docker" "start" "-a" "53482f10e8102e9d7491754ae2b27627d043e8dbeeffaf0060927639a8127a52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "53482f10e8102e9d7491754ae2b27627d043e8dbeeffaf0060927639a8127a52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53482f10e8102e9d7491754ae2b27627d043e8dbeeffaf0060927639a8127a52", kill_on_drop: false }` [INFO] [stdout] 53482f10e8102e9d7491754ae2b27627d043e8dbeeffaf0060927639a8127a52 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+39605810efb1a0d52f955bfba9e4eec7a01d5deb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c7d4d1005db0572cdab8e0fc061d9ba4805c301ea27f99ee3b359615d3c31def [INFO] running `Command { std: "docker" "start" "-a" "c7d4d1005db0572cdab8e0fc061d9ba4805c301ea27f99ee3b359615d3c31def", kill_on_drop: false }` [INFO] [stderr] Checking gogame v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0170]: pattern binding `Empty` is named the same as one of the variants of the type `Color` [INFO] [stdout] --> src/main.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `Color::Empty` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `White` is named the same as one of the variants of the type `Color` [INFO] [stdout] --> src/main.rs:36:49 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `Color::White` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Black` is named the same as one of the variants of the type `Color` [INFO] [stdout] --> src/main.rs:36:67 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `Color::Black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:36:49 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ----- ^^^^^ no value can reach this [INFO] [stdout] | | [INFO] [stdout] | matches any value [INFO] [stdout] | [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:36:67 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ----- matches any value ^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Empty` [INFO] [stdout] --> src/main.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Empty` [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Color::Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | +++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { _Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `White` [INFO] [stdout] --> src/main.rs:36:49 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `White` [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", Color::White => "white", Black => "black", }; [INFO] [stdout] | +++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", _White => "white", Black => "black", }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Black` [INFO] [stdout] --> src/main.rs:36:67 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Black` [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Color::Black => "black", }; [INFO] [stdout] | +++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", _Black => "black", }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `to_add_node` is never read [INFO] [stdout] --> src/main.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | to_add_node = false; [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: variant `Empty` is never constructed [INFO] [stdout] --> src/main.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { Empty, Black, White } [INFO] [stdout] | ----- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | variant in this enum [INFO] [stdout] | [INFO] [stdout] = note: `Color` has derived impls for the traits `Debug` and `Clone`, but these are 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: function `contained_in` is never used [INFO] [stdout] --> src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn contained_in(n: &Node, v: &VecDeque) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `neighbors_of`, `find_component_containing`, `add_edge_black`, and `add_edge_white` are never used [INFO] [stdout] --> src/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 66 | impl Graph { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | fn neighbors_of(&self, n: Node) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn find_component_containing(&mut self, u: Node) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | fn add_edge_black(&mut self, src: (i16, i16), dst: (i16, i16)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn add_edge_white(&mut self, src: (i16, i16), dst: (i16, i16)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_component_doubleton` is never used [INFO] [stdout] --> src/main.rs:263:4 [INFO] [stdout] | [INFO] [stdout] 263 | fn find_component_doubleton() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gogame` (bin "gogame") due to 3 previous errors; 18 warnings emitted [INFO] [stdout] warning: variable `Empty` should have a snake case name [INFO] [stdout] --> src/main.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `empty` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable `White` should have a snake case name [INFO] [stdout] --> src/main.rs:36:49 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Black` should have a snake case name [INFO] [stdout] --> src/main.rs:36:67 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | write!(f, "\"({},{})\" [pos=\"{},{}!\"", self.x, self.y, self.x, self.y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = write!(f, "\"({},{})\" [pos=\"{},{}!\"", self.x, self.y, self.x, self.y); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | / match self.c { [INFO] [stdout] 51 | | Color::Black => write!(f, ",style=filled,fillcolor=\"#666666\"];"), [INFO] [stdout] 52 | | Color::White => write!(f, ",style=filled,fillcolor=\"white\"];"), [INFO] [stdout] 53 | | Color::Empty => write!(f, "];") [INFO] [stdout] 54 | | }; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = match self.c { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | write!(f, "graph {{\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 184 | let _ = write!(f, "graph {{\n"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | write!(f, "{}\n", self.nodes[i]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 186 | let _ = write!(f, "{}\n", self.nodes[i]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | write!(f, "{}\n", self.edges[i]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 189 | let _ = write!(f, "{}\n", self.edges[i]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Empty` is named the same as one of the variants of the type `Color` [INFO] [stdout] --> src/main.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `Color::Empty` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `White` is named the same as one of the variants of the type `Color` [INFO] [stdout] --> src/main.rs:36:49 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `Color::White` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Black` is named the same as one of the variants of the type `Color` [INFO] [stdout] --> src/main.rs:36:67 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `Color::Black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:36:49 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ----- ^^^^^ no value can reach this [INFO] [stdout] | | [INFO] [stdout] | matches any value [INFO] [stdout] | [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:36:67 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ----- matches any value ^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Empty` [INFO] [stdout] --> src/main.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Empty` [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Color::Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | +++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { _Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `White` [INFO] [stdout] --> src/main.rs:36:49 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `White` [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", Color::White => "white", Black => "black", }; [INFO] [stdout] | +++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", _White => "white", Black => "black", }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Black` [INFO] [stdout] --> src/main.rs:36:67 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `Black` [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Color::Black => "black", }; [INFO] [stdout] | +++++++ [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", _Black => "black", }; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `to_add_node` is never read [INFO] [stdout] --> src/main.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | to_add_node = false; [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: variant `Empty` is never constructed [INFO] [stdout] --> src/main.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | enum Color { Empty, Black, White } [INFO] [stdout] | ----- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | variant in this enum [INFO] [stdout] | [INFO] [stdout] = note: `Color` has derived impls for the traits `Debug` and `Clone`, but these are 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: methods `find_component_containing`, `add_edge_black`, and `add_edge_white` are never used [INFO] [stdout] --> src/main.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 66 | impl Graph { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 119 | fn find_component_containing(&mut self, u: Node) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | fn add_edge_black(&mut self, src: (i16, i16), dst: (i16, i16)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn add_edge_white(&mut self, src: (i16, i16), dst: (i16, i16)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_component_doubleton` is never used [INFO] [stdout] --> src/main.rs:263:4 [INFO] [stdout] | [INFO] [stdout] 263 | fn find_component_doubleton() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Empty` should have a snake case name [INFO] [stdout] --> src/main.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `empty` [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 `White` should have a snake case name [INFO] [stdout] --> src/main.rs:36:49 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Black` should have a snake case name [INFO] [stdout] --> src/main.rs:36:67 [INFO] [stdout] | [INFO] [stdout] 36 | let s: &str = match self { Empty => "", White => "white", Black => "black", }; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | write!(f, "\"({},{})\" [pos=\"{},{}!\"", self.x, self.y, self.x, self.y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = write!(f, "\"({},{})\" [pos=\"{},{}!\"", self.x, self.y, self.x, self.y); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | / match self.c { [INFO] [stdout] 51 | | Color::Black => write!(f, ",style=filled,fillcolor=\"#666666\"];"), [INFO] [stdout] 52 | | Color::White => write!(f, ",style=filled,fillcolor=\"white\"];"), [INFO] [stdout] 53 | | Color::Empty => write!(f, "];") [INFO] [stdout] 54 | | }; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = match self.c { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | write!(f, "graph {{\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 184 | let _ = write!(f, "graph {{\n"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | write!(f, "{}\n", self.nodes[i]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 186 | let _ = write!(f, "{}\n", self.nodes[i]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | write!(f, "{}\n", self.edges[i]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 189 | let _ = write!(f, "{}\n", self.edges[i]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gogame` (bin "gogame" test) due to 3 previous errors; 17 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c7d4d1005db0572cdab8e0fc061d9ba4805c301ea27f99ee3b359615d3c31def", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7d4d1005db0572cdab8e0fc061d9ba4805c301ea27f99ee3b359615d3c31def", kill_on_drop: false }` [INFO] [stdout] c7d4d1005db0572cdab8e0fc061d9ba4805c301ea27f99ee3b359615d3c31def