[INFO] cloning repository https://github.com/esqu1/rusty-with-graphs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/esqu1/rusty-with-graphs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fesqu1%2Frusty-with-graphs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fesqu1%2Frusty-with-graphs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9443bba14c0e6d6a05dce3d4eab47e4021c63b47 [INFO] checking esqu1/rusty-with-graphs against try#ef5216c337126ffe24d074826f4023948c4a9b8e for pr-137033 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fesqu1%2Frusty-with-graphs" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/esqu1/rusty-with-graphs on toolchain ef5216c337126ffe24d074826f4023948c4a9b8e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/esqu1/rusty-with-graphs [INFO] finished tweaking git repo https://github.com/esqu1/rusty-with-graphs [INFO] tweaked toml for git repo https://github.com/esqu1/rusty-with-graphs written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/esqu1/rusty-with-graphs 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" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "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] Downloading crates ... [INFO] [stderr] Downloaded matrix v0.22.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b0428be1b10bfa69a43705a9825f8ec142355d7f67c22254b1fb1addde0809e4 [INFO] running `Command { std: "docker" "start" "-a" "b0428be1b10bfa69a43705a9825f8ec142355d7f67c22254b1fb1addde0809e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b0428be1b10bfa69a43705a9825f8ec142355d7f67c22254b1fb1addde0809e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0428be1b10bfa69a43705a9825f8ec142355d7f67c22254b1fb1addde0809e4", kill_on_drop: false }` [INFO] [stdout] b0428be1b10bfa69a43705a9825f8ec142355d7f67c22254b1fb1addde0809e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+ef5216c337126ffe24d074826f4023948c4a9b8e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d1d9d337b59bdd4d5707d03179046cd896a8eae96b7921832f702b574c20038 [INFO] running `Command { std: "docker" "start" "-a" "5d1d9d337b59bdd4d5707d03179046cd896a8eae96b7921832f702b574c20038", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking matrix v0.22.0 [INFO] [stderr] Checking rusty-with-graphs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/flow.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut residual_graph = new_graph.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `weight` is never read [INFO] [stdout] --> src/graph.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vertex { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 8 | pub id: i32, [INFO] [stdout] 9 | pub weight: T, // for max flows, ignored if used for weighted graphs [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Vertex` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `degree`, `vertex_set`, `remove_edge`, and `change_edge_weight` are never used [INFO] [stdout] --> src/graph.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub trait Graph { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 38 | fn degree(&self, vertex_id: &i32) -> Option; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 39 | fn get_vertices(&self) -> &HashMap>; [INFO] [stdout] 40 | fn vertex_set(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn remove_edge(&mut self, v1: &i32, v2: &i32) -> Option; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 45 | fn change_edge_weight(&mut self, v1: &i32, v2: &i32, weight: &V); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Measure` is never used [INFO] [stdout] --> src/shortest_path.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Measure : Ord { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriorityVertex` is never constructed [INFO] [stdout] --> src/shortest_path.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct PriorityVertex> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dijkstra` is never used [INFO] [stdout] --> src/shortest_path.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn dijkstra>( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bfs_path_exists` is never used [INFO] [stdout] --> src/search.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn bfs_path_exists>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_pred` is never used [INFO] [stdout] --> src/search.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn add_pred<'a, T: Default + Clone>( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_bfs_preds` is never used [INFO] [stdout] --> src/search.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn build_bfs_preds>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ford_fulkerson` is never used [INFO] [stdout] --> src/flow.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn ford_fulkerson< [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Measure` is never used [INFO] [stdout] --> src/measure.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Measure : Ord { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/flow.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut residual_graph = new_graph.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `weight` are never read [INFO] [stdout] --> src/graph.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vertex { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 8 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | pub weight: T, // for max flows, ignored if used for weighted graphs [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Vertex` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `neighbors`, `degree`, `vertex_set`, `add_edge`, `remove_edge`, and `change_edge_weight` are never used [INFO] [stdout] --> src/graph.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub trait Graph { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 36 | // assumes simple graph structure [INFO] [stdout] 37 | fn neighbors(&self, vertex_id: &i32) -> Option>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 38 | fn degree(&self, vertex_id: &i32) -> Option; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 39 | fn get_vertices(&self) -> &HashMap>; [INFO] [stdout] 40 | fn vertex_set(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn add_edge(&mut self, e: Edge); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 44 | fn remove_edge(&mut self, v1: &i32, v2: &i32) -> Option; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 45 | fn change_edge_weight(&mut self, v1: &i32, v2: &i32, weight: &V); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Measure` is never used [INFO] [stdout] --> src/shortest_path.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Measure : Ord { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriorityVertex` is never constructed [INFO] [stdout] --> src/shortest_path.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct PriorityVertex> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dijkstra` is never used [INFO] [stdout] --> src/shortest_path.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn dijkstra>( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bfs_fold` is never used [INFO] [stdout] --> src/search.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn bfs_fold>( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_vertex` is never used [INFO] [stdout] --> src/search.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn print_vertex((_, vertex): (Option, &Vertex), _: ()) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bfs_print` is never used [INFO] [stdout] --> src/search.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn bfs_print>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bfs_path_exists` is never used [INFO] [stdout] --> src/search.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn bfs_path_exists>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_pred` is never used [INFO] [stdout] --> src/search.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn add_pred<'a, T: Default + Clone>( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_bfs_preds` is never used [INFO] [stdout] --> src/search.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn build_bfs_preds>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ford_fulkerson` is never used [INFO] [stdout] --> src/flow.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn ford_fulkerson< [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Measure` is never used [INFO] [stdout] --> src/measure.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Measure : Ord { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.88s [INFO] running `Command { std: "docker" "inspect" "5d1d9d337b59bdd4d5707d03179046cd896a8eae96b7921832f702b574c20038", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d1d9d337b59bdd4d5707d03179046cd896a8eae96b7921832f702b574c20038", kill_on_drop: false }` [INFO] [stdout] 5d1d9d337b59bdd4d5707d03179046cd896a8eae96b7921832f702b574c20038