[INFO] cloning repository https://github.com/joshuacoles/Coursework-2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/joshuacoles/Coursework-2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoshuacoles%2FCoursework-2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoshuacoles%2FCoursework-2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 425716e6bb139a7fc9cec94133dd075bcdf734cd [INFO] checking joshuacoles/Coursework-2 against master#fe55364329579d361b1ab565728bc033a7dba07e for pr-146013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoshuacoles%2FCoursework-2" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/joshuacoles/Coursework-2 [INFO] finished tweaking git repo https://github.com/joshuacoles/Coursework-2 [INFO] tweaked toml for git repo https://github.com/joshuacoles/Coursework-2 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/joshuacoles/Coursework-2 on toolchain fe55364329579d361b1ab565728bc033a7dba07e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fe55364329579d361b1ab565728bc033a7dba07e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/joshuacoles/Coursework-2 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" "+fe55364329579d361b1ab565728bc033a7dba07e" "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-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+fe55364329579d361b1ab565728bc033a7dba07e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b6e9fada9a891d409c348e8991b62a3ca7959b92db265402cf019fa2de6c9bd8 [INFO] running `Command { std: "docker" "start" "-a" "b6e9fada9a891d409c348e8991b62a3ca7959b92db265402cf019fa2de6c9bd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6e9fada9a891d409c348e8991b62a3ca7959b92db265402cf019fa2de6c9bd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6e9fada9a891d409c348e8991b62a3ca7959b92db265402cf019fa2de6c9bd8", kill_on_drop: false }` [INFO] [stdout] b6e9fada9a891d409c348e8991b62a3ca7959b92db265402cf019fa2de6c9bd8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+fe55364329579d361b1ab565728bc033a7dba07e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b32ad5922939f1f23da0413bb7ab0f12a8b4cb0b61de7f3573005b44008d470c [INFO] running `Command { std: "docker" "start" "-a" "b32ad5922939f1f23da0413bb7ab0f12a8b4cb0b61de7f3573005b44008d470c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.91 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking array2d v0.2.1 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking cw-2-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Grid` is never constructed [INFO] [stdout] --> src/q1a.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Grid { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_indexes_in_range` is never used [INFO] [stdout] --> src/q1a.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn random_indexes_in_range(range: Range, expected: usize) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/q1a.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl Grid { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 27 | fn new(lx: usize, ly: usize, n: usize) -> Grid { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/q1a.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Grid` is never constructed [INFO] [stdout] --> src/q2a.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Grid { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GridCell` is never used [INFO] [stdout] --> src/q2a.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | enum GridCell { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_indexes_in_range` is never used [INFO] [stdout] --> src/q2a.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn random_indexes_in_range(range: Range, expected: usize) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `directly_reachable_from` are never used [INFO] [stdout] --> src/q2a.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Grid { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 46 | fn new(lx: usize, ly: usize, n: usize, p_super: f64) -> Grid { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn directly_reachable_from(&self, pos: (usize, usize)) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pos` is never used [INFO] [stdout] --> src/q2a.rs:117:6 [INFO] [stdout] | [INFO] [stdout] 117 | type Pos = (usize, usize); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClusterFinder` is never constructed [INFO] [stdout] --> src/q2a.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | struct ClusterFinder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `search`, and `step` are never used [INFO] [stdout] --> src/q2a.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 129 | impl ClusterFinder { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 130 | fn new(grid: Grid) -> ClusterFinder { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn search(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/q2a.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cluster` is never used [INFO] [stdout] --> src/q2b/cluster_finder.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl <'a> ClusterFinder<'a> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn cluster(&self) -> &HashSet { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/q2b/cluster_finder.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(grid: &Grid) -> ClusterFinder { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(grid: &Grid) -> ClusterFinder<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/q2b/cluster_finder.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new_with_starting_point(grid: &Grid, initial_point: Pos) -> ClusterFinder { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new_with_starting_point(grid: &Grid, initial_point: Pos) -> ClusterFinder<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Grid` is never constructed [INFO] [stdout] --> src/q1a.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct Grid { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_indexes_in_range` is never used [INFO] [stdout] --> src/q1a.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn random_indexes_in_range(range: Range, expected: usize) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/q1a.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl Grid { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 27 | fn new(lx: usize, ly: usize, n: usize) -> Grid { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/q1a.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.13s [INFO] [stdout] warning: struct `Grid` is never constructed [INFO] [stdout] --> src/q2a.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Grid { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GridCell` is never used [INFO] [stdout] --> src/q2a.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | enum GridCell { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_indexes_in_range` is never used [INFO] [stdout] --> src/q2a.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn random_indexes_in_range(range: Range, expected: usize) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `directly_reachable_from` are never used [INFO] [stdout] --> src/q2a.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 45 | impl Grid { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 46 | fn new(lx: usize, ly: usize, n: usize, p_super: f64) -> Grid { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn directly_reachable_from(&self, pos: (usize, usize)) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Pos` is never used [INFO] [stdout] --> src/q2a.rs:117:6 [INFO] [stdout] | [INFO] [stdout] 117 | type Pos = (usize, usize); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClusterFinder` is never constructed [INFO] [stdout] --> src/q2a.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | struct ClusterFinder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `search`, and `step` are never used [INFO] [stdout] --> src/q2a.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 129 | impl ClusterFinder { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 130 | fn new(grid: Grid) -> ClusterFinder { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn search(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/q2a.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cluster` is never used [INFO] [stdout] --> src/q2b/cluster_finder.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl <'a> ClusterFinder<'a> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn cluster(&self) -> &HashSet { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/q2b/cluster_finder.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(grid: &Grid) -> ClusterFinder { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(grid: &Grid) -> ClusterFinder<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/q2b/cluster_finder.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new_with_starting_point(grid: &Grid, initial_point: Pos) -> ClusterFinder { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 28 | pub fn new_with_starting_point(grid: &Grid, initial_point: Pos) -> ClusterFinder<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b32ad5922939f1f23da0413bb7ab0f12a8b4cb0b61de7f3573005b44008d470c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b32ad5922939f1f23da0413bb7ab0f12a8b4cb0b61de7f3573005b44008d470c", kill_on_drop: false }` [INFO] [stdout] b32ad5922939f1f23da0413bb7ab0f12a8b4cb0b61de7f3573005b44008d470c