[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 try#69cf48176da7795067be67cef76e41a8aac9b134 for pr-146013-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoshuacoles%2FCoursework-2" "/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/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-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/joshuacoles/Coursework-2 on toolchain 69cf48176da7795067be67cef76e41a8aac9b134 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+69cf48176da7795067be67cef76e41a8aac9b134" "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" "+69cf48176da7795067be67cef76e41a8aac9b134" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+69cf48176da7795067be67cef76e41a8aac9b134" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a2c3505ec0ddfe058086ef451905a55c2f22c13e34c38985fdba048aa442acf6 [INFO] running `Command { std: "docker" "start" "-a" "a2c3505ec0ddfe058086ef451905a55c2f22c13e34c38985fdba048aa442acf6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a2c3505ec0ddfe058086ef451905a55c2f22c13e34c38985fdba048aa442acf6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2c3505ec0ddfe058086ef451905a55c2f22c13e34c38985fdba048aa442acf6", kill_on_drop: false }` [INFO] [stdout] a2c3505ec0ddfe058086ef451905a55c2f22c13e34c38985fdba048aa442acf6 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+69cf48176da7795067be67cef76e41a8aac9b134" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b3eb135329fd0417f08b7bfac9bf309a93dde1a6757010767cea76335e479a5 [INFO] running `Command { std: "docker" "start" "-a" "1b3eb135329fd0417f08b7bfac9bf309a93dde1a6757010767cea76335e479a5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.91 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking cfg-if v1.0.0 [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] [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.26s [INFO] running `Command { std: "docker" "inspect" "1b3eb135329fd0417f08b7bfac9bf309a93dde1a6757010767cea76335e479a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b3eb135329fd0417f08b7bfac9bf309a93dde1a6757010767cea76335e479a5", kill_on_drop: false }` [INFO] [stdout] 1b3eb135329fd0417f08b7bfac9bf309a93dde1a6757010767cea76335e479a5