[INFO] cloning repository https://github.com/kylerchin/bast-routing-exercise-1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kylerchin/bast-routing-exercise-1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkylerchin%2Fbast-routing-exercise-1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkylerchin%2Fbast-routing-exercise-1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2b27d17335973898fcd60b7319f98592218c01e3 [INFO] checking kylerchin/bast-routing-exercise-1 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkylerchin%2Fbast-routing-exercise-1" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kylerchin/bast-routing-exercise-1 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kylerchin/bast-routing-exercise-1 [INFO] finished tweaking git repo https://github.com/kylerchin/bast-routing-exercise-1 [INFO] tweaked toml for git repo https://github.com/kylerchin/bast-routing-exercise-1 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kylerchin/bast-routing-exercise-1 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded flat_map v0.0.10 [INFO] [stderr] Downloaded priority-queue v2.0.2 [INFO] [stderr] Downloaded pub-iterator-type v0.1.1 [INFO] [stderr] Downloaded par-map v0.1.4 [INFO] [stderr] Downloaded protobuf-codegen v3.4.0 [INFO] [stderr] Downloaded osmpbfreader v0.16.1 [INFO] [stderr] Downloaded geoutils v0.5.1 [INFO] [stderr] Downloaded protobuf-parse v3.4.0 [INFO] [stderr] Downloaded osmpbf v0.3.3 [INFO] [stderr] Downloaded protobuf v3.4.0 [INFO] [stderr] Downloaded protobuf-support v3.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e6194a48c5354d60f7806b7701cb1ff41c0acadba79000366d3c0097c7066a8a [INFO] running `Command { std: "docker" "start" "-a" "e6194a48c5354d60f7806b7701cb1ff41c0acadba79000366d3c0097c7066a8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e6194a48c5354d60f7806b7701cb1ff41c0acadba79000366d3c0097c7066a8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6194a48c5354d60f7806b7701cb1ff41c0acadba79000366d3c0097c7066a8a", kill_on_drop: false }` [INFO] [stdout] e6194a48c5354d60f7806b7701cb1ff41c0acadba79000366d3c0097c7066a8a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92de0737a916d74e9750947807d9ba7b7bb4443249808e3b52af546764e051aa [INFO] running `Command { std: "docker" "start" "-a" "92de0737a916d74e9750947807d9ba7b7bb4443249808e3b52af546764e051aa", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling protobuf v3.4.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling anyhow v1.0.81 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Checking pub-iterator-type v0.1.1 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking rayon v1.9.0 [INFO] [stderr] Checking par-map v0.1.4 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Checking self_cell v1.0.3 [INFO] [stderr] Checking geoutils v0.5.1 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling protobuf-codegen v2.28.0 [INFO] [stderr] Checking priority-queue v2.0.2 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling protobuf-codegen-pure v2.28.0 [INFO] [stderr] Compiling protobuf-support v3.4.0 [INFO] [stderr] Compiling osmpbfreader v0.16.1 [INFO] [stderr] Compiling protobuf-parse v3.4.0 [INFO] [stderr] Checking flat_map v0.0.10 [INFO] [stderr] Compiling protobuf-codegen v3.4.0 [INFO] [stderr] Compiling osmpbf v0.3.3 [INFO] [stderr] Checking exercise-1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `osmpbf::elements::Way` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use osmpbf::elements::Way; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `osmpbf::elements::WayNodeLocation` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use osmpbf::elements::WayNodeLocation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ElementReader`, `Element` [INFO] [stdout] --> src/lib.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use osmpbf::{Element, ElementReader}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `osmpbf::elements::Way` [INFO] [stdout] --> src/lib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use osmpbf::elements::Way; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `osmpbf::elements::WayNodeLocation` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use osmpbf::elements::WayNodeLocation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ElementReader`, `Element` [INFO] [stdout] --> src/lib.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use osmpbf::{Element, ElementReader}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/lib.rs:138:58 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn compute_shortest_path(&mut self, source: i64, target: i64) -> u32 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `way_counter` [INFO] [stdout] --> src/lib.rs:207:17 [INFO] [stdout] | [INFO] [stdout] 207 | let mut way_counter: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_way_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_counter` [INFO] [stdout] --> src/lib.rs:208:17 [INFO] [stdout] | [INFO] [stdout] 208 | let mut node_counter: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dense_node_counter` [INFO] [stdout] --> src/lib.rs:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | let mut dense_node_counter: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dense_node_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/lib.rs:138:58 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn compute_shortest_path(&mut self, source: i64, target: i64) -> u32 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `way_counter` [INFO] [stdout] --> src/lib.rs:207:17 [INFO] [stdout] | [INFO] [stdout] 207 | let mut way_counter: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_way_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_counter` [INFO] [stdout] --> src/lib.rs:208:17 [INFO] [stdout] | [INFO] [stdout] 208 | let mut node_counter: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dense_node_counter` [INFO] [stdout] --> src/lib.rs:209:17 [INFO] [stdout] | [INFO] [stdout] 209 | let mut dense_node_counter: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dense_node_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let mut way_counter: u32 = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let mut node_counter: u32 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | let mut dense_node_counter: u32 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct SimplifiedWay { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 20 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DijkstrasAlgorithm` is never constructed [INFO] [stdout] --> src/lib.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct DijkstrasAlgorithm { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShortestPath` is never constructed [INFO] [stdout] --> src/lib.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct ShortestPath { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Infinity` and `Some` are never constructed [INFO] [stdout] --> src/lib.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | enum BastPriorityValue { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 67 | Infinity, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 68 | Some(u32), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BastPriorityValue` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_visited_node_mark` and `compute_shortest_path` are never used [INFO] [stdout] --> src/lib.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 128 | impl DijkstrasAlgorithm { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 129 | //Mark all nodes visited by the next call to compute_shortest_path with this number [INFO] [stdout] 130 | pub fn set_visited_node_mark(&mut self, node_id: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn compute_shortest_path(&mut self, source: i64, target: i64) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let mut way_counter: u32 = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | let mut node_counter: u32 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | let mut dense_node_counter: u32 = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `graph` [INFO] [stdout] --> src/lib.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | let graph = test_osm("./uci.osm.pbf"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_graph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct SimplifiedWay { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 20 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DijkstrasAlgorithm` is never constructed [INFO] [stdout] --> src/lib.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct DijkstrasAlgorithm { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShortestPath` is never constructed [INFO] [stdout] --> src/lib.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct ShortestPath { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Infinity` and `Some` are never constructed [INFO] [stdout] --> src/lib.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | enum BastPriorityValue { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 67 | Infinity, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 68 | Some(u32), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BastPriorityValue` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_visited_node_mark` and `compute_shortest_path` are never used [INFO] [stdout] --> src/lib.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 128 | impl DijkstrasAlgorithm { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 129 | //Mark all nodes visited by the next call to compute_shortest_path with this number [INFO] [stdout] 130 | pub fn set_visited_node_mark(&mut self, node_id: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn compute_shortest_path(&mut self, source: i64, target: i64) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.79s [INFO] running `Command { std: "docker" "inspect" "92de0737a916d74e9750947807d9ba7b7bb4443249808e3b52af546764e051aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92de0737a916d74e9750947807d9ba7b7bb4443249808e3b52af546764e051aa", kill_on_drop: false }` [INFO] [stdout] 92de0737a916d74e9750947807d9ba7b7bb4443249808e3b52af546764e051aa [INFO] checking kylerchin/bast-routing-exercise-1 against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkylerchin%2Fbast-routing-exercise-1" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kylerchin/bast-routing-exercise-1 on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kylerchin/bast-routing-exercise-1 [INFO] finished tweaking git repo https://github.com/kylerchin/bast-routing-exercise-1 [INFO] tweaked toml for git repo https://github.com/kylerchin/bast-routing-exercise-1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kylerchin/bast-routing-exercise-1 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 25f772269361b316b05a4a6ad8dec2fa3976baa8c5dbf063ce215855a320406b [INFO] running `Command { std: "docker" "start" "-a" "25f772269361b316b05a4a6ad8dec2fa3976baa8c5dbf063ce215855a320406b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25f772269361b316b05a4a6ad8dec2fa3976baa8c5dbf063ce215855a320406b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25f772269361b316b05a4a6ad8dec2fa3976baa8c5dbf063ce215855a320406b", kill_on_drop: false }` [INFO] [stdout] 25f772269361b316b05a4a6ad8dec2fa3976baa8c5dbf063ce215855a320406b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e41a0fe5c973752c0700c289170b05d085a935be61ef14b2a8650d35aef011af [INFO] running `Command { std: "docker" "start" "-a" "e41a0fe5c973752c0700c289170b05d085a935be61ef14b2a8650d35aef011af", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling protobuf v3.4.0 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling anyhow v1.0.81 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking pub-iterator-type v0.1.1 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking par-map v0.1.4 [INFO] [stderr] Checking rayon v1.9.0 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Checking self_cell v1.0.3 [INFO] [stderr] Checking geoutils v0.5.1 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling protobuf-codegen v2.28.0 [INFO] [stderr] Checking priority-queue v2.0.2 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling protobuf-codegen-pure v2.28.0 [INFO] [stderr] Compiling protobuf-support v3.4.0 [INFO] [stderr] Compiling osmpbfreader v0.16.1 [INFO] [stderr] Compiling protobuf-parse v3.4.0 [INFO] [stderr] Checking flat_map v0.0.10 [INFO] [stderr] Compiling protobuf-codegen v3.4.0 [INFO] [stderr] Compiling osmpbf v0.3.3 [INFO] [stderr] Checking exercise-1 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/lib.rs (7 fixes) [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/lib.rs:134:58 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn compute_shortest_path(&mut self, source: i64, target: i64) -> u32 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `way_counter` [INFO] [stdout] --> src/lib.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let way_counter: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_way_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_counter` [INFO] [stdout] --> src/lib.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | let node_counter: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dense_node_counter` [INFO] [stdout] --> src/lib.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let dense_node_counter: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dense_node_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SimplifiedWay { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 16 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DijkstrasAlgorithm` is never constructed [INFO] [stdout] --> src/lib.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct DijkstrasAlgorithm { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShortestPath` is never constructed [INFO] [stdout] --> src/lib.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct ShortestPath { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Infinity` and `Some` are never constructed [INFO] [stdout] --> src/lib.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | enum BastPriorityValue { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 63 | Infinity, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 64 | Some(u32), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BastPriorityValue` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_visited_node_mark` and `compute_shortest_path` are never used [INFO] [stdout] --> src/lib.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 124 | impl DijkstrasAlgorithm { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] 125 | //Mark all nodes visited by the next call to compute_shortest_path with this number [INFO] [stdout] 126 | pub fn set_visited_node_mark(&mut self, node_id: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn compute_shortest_path(&mut self, source: i64, target: i64) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/lib.rs:365:21 [INFO] [stdout] | [INFO] [stdout] 365 | let start = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 342 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/lib.rs:134:58 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn compute_shortest_path(&mut self, source: i64, target: i64) -> u32 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `way_counter` [INFO] [stdout] --> src/lib.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let way_counter: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_way_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_counter` [INFO] [stdout] --> src/lib.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | let node_counter: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dense_node_counter` [INFO] [stdout] --> src/lib.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let dense_node_counter: u32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dense_node_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `graph` [INFO] [stdout] --> src/lib.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 352 | let graph = test_osm("./uci.osm.pbf"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_graph` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercise-1` (lib test) due to 2 previous errors; 5 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "e41a0fe5c973752c0700c289170b05d085a935be61ef14b2a8650d35aef011af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e41a0fe5c973752c0700c289170b05d085a935be61ef14b2a8650d35aef011af", kill_on_drop: false }` [INFO] [stdout] e41a0fe5c973752c0700c289170b05d085a935be61ef14b2a8650d35aef011af