[INFO] cloning repository https://github.com/SantaClaas/raptor-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SantaClaas/raptor-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSantaClaas%2Fraptor-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSantaClaas%2Fraptor-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1c2726350ebc4024e0fa1e69fa2cf96da562bd1d [INFO] testing SantaClaas/raptor-rs against 1.73.0 for beta-1.74-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSantaClaas%2Fraptor-rs" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SantaClaas/raptor-rs on toolchain 1.73.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.73.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SantaClaas/raptor-rs [INFO] finished tweaking git repo https://github.com/SantaClaas/raptor-rs [INFO] tweaked toml for git repo https://github.com/SantaClaas/raptor-rs written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/SantaClaas/raptor-rs 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" "+1.73.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b5d84ff00ff7de6899554b13abf1d5cbe8e3957bdbf4c355caa20fb5562d3868 [INFO] running `Command { std: "docker" "start" "-a" "b5d84ff00ff7de6899554b13abf1d5cbe8e3957bdbf4c355caa20fb5562d3868", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b5d84ff00ff7de6899554b13abf1d5cbe8e3957bdbf4c355caa20fb5562d3868", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5d84ff00ff7de6899554b13abf1d5cbe8e3957bdbf4c355caa20fb5562d3868", kill_on_drop: false }` [INFO] [stdout] b5d84ff00ff7de6899554b13abf1d5cbe8e3957bdbf4c355caa20fb5562d3868 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4fffd3d958b9fb0b1e3a2fb6161cae021141ac292e78079180731b4baa1a3bb [INFO] running `Command { std: "docker" "start" "-a" "a4fffd3d958b9fb0b1e3a2fb6161cae021141ac292e78079180731b4baa1a3bb", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling bitflags v2.4.0 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling smallvec v1.11.1 [INFO] [stderr] Compiling ahash v0.8.3 [INFO] [stderr] Compiling libsqlite3-sys v0.26.0 [INFO] [stderr] Compiling hashbrown v0.14.1 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling rusqlite v0.29.0 [INFO] [stderr] Compiling raptor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::raptor` [INFO] [stdout] --> src/data.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::raptor; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Time`, `raptor` [INFO] [stdout] --> src/data.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::raptor::{raptor, Route, RoutesData, Stop, StopTime, StopsData, Time, Transfer}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `params` [INFO] [stdout] --> src/data.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use rusqlite::{params, Connection}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::DefaultHasher` [INFO] [stdout] --> src/data.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::hash_map::DefaultHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/data.rs:7:33 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hash`, `Hasher` [INFO] [stdout] --> src/data.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/data.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/raptor.rs:269:50 [INFO] [stdout] | [INFO] [stdout] 269 | let last_round_labels = &labels_by_round[(k - 1)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 269 - let last_round_labels = &labels_by_round[(k - 1)]; [INFO] [stdout] 269 + let last_round_labels = &labels_by_round[k - 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result`, `Statement` [INFO] [stdout] --> src/main.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use rusqlite::{Connection, Result, Statement}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `data::assemble_stops_data` [INFO] [stdout] --> src/data.rs:178:59 [INFO] [stdout] | [INFO] [stdout] 178 | let (route_ids, stops, transfers, index_by_stop_id) = assemble_stops_data(connection)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `data::assemble_routes_data` [INFO] [stdout] --> src/data.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | assemble_routes_data(connection, route_ids, index_by_stop_id, stops)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `route_stops` [INFO] [stdout] --> src/data.rs:126:13 [INFO] [stdout] | [INFO] [stdout] 126 | let mut route_stops: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_route_stops` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stop_routes_indices` [INFO] [stdout] --> src/data.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut stop_routes_indices: Vec = Vec::with_capacity(stop_routes_ids.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stop_routes_indices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index_by_stop_id` [INFO] [stdout] --> src/data.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | index_by_stop_id: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_index_by_stop_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stops` [INFO] [stdout] --> src/data.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | stops: Vec, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stops` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/data.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let mut route_stops: Vec = Vec::new(); [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/data.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | let mut stop_routes_indices: Vec = Vec::with_capacity(stop_routes_ids.len()); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transfers` [INFO] [stdout] --> src/data.rs:178:28 [INFO] [stdout] | [INFO] [stdout] 178 | let (route_ids, stops, transfers, index_by_stop_id) = assemble_stops_data(connection)?; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transfers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stop_routes` [INFO] [stdout] --> src/data.rs:179:10 [INFO] [stdout] | [INFO] [stdout] 179 | let (stop_routes, routes, stop_times, route_stops) = [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stop_routes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `routes` [INFO] [stdout] --> src/data.rs:179:23 [INFO] [stdout] | [INFO] [stdout] 179 | let (stop_routes, routes, stop_times, route_stops) = [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_routes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stop_times` [INFO] [stdout] --> src/data.rs:179:31 [INFO] [stdout] | [INFO] [stdout] 179 | let (stop_routes, routes, stop_times, route_stops) = [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stop_times` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `route_stops` [INFO] [stdout] --> src/data.rs:179:43 [INFO] [stdout] | [INFO] [stdout] 179 | let (stop_routes, routes, stop_times, route_stops) = [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_route_stops` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/data.rs:245:9 [INFO] [stdout] | [INFO] [stdout] 245 | let mut partial_transfers: Vec<(&String, u64)> = Vec::new(); [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/data.rs:373:21 [INFO] [stdout] | [INFO] [stdout] 373 | let mut trips = trips_by_stops.entry(stop_sequence).or_default(); [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/data.rs:462:28 [INFO] [stdout] | [INFO] [stdout] 462 | for (mut stop_indices, mut trips_ordered) in trips_by_stops.into_iter() { [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/data.rs:528:13 [INFO] [stdout] | [INFO] [stdout] 528 | let mut route_indices = route_indices_by_stop_index.remove(&stop_index); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: crate-private type `Stop` in public interface [INFO] [stdout] --> src/data.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / pub fn assemble_stops_data( [INFO] [stdout] 15 | | connection: &Connection, [INFO] [stdout] 16 | | ) -> Result< [INFO] [stdout] 17 | | ( [INFO] [stdout] ... | [INFO] [stdout] 23 | | Error, [INFO] [stdout] 24 | | > { [INFO] [stdout] | |_^ can't leak crate-private type [INFO] [stdout] | [INFO] [stdout] ::: src/raptor.rs:185:1 [INFO] [stdout] | [INFO] [stdout] 185 | pub(crate) struct Stop { [INFO] [stdout] | ---------------------- `Stop` declared as crate-private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: crate-private type `Transfer` in public interface [INFO] [stdout] --> src/data.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / pub fn assemble_stops_data( [INFO] [stdout] 15 | | connection: &Connection, [INFO] [stdout] 16 | | ) -> Result< [INFO] [stdout] 17 | | ( [INFO] [stdout] ... | [INFO] [stdout] 23 | | Error, [INFO] [stdout] 24 | | > { [INFO] [stdout] | |_^ can't leak crate-private type [INFO] [stdout] | [INFO] [stdout] ::: src/raptor.rs:208:1 [INFO] [stdout] | [INFO] [stdout] 208 | pub(crate) struct Transfer { [INFO] [stdout] | -------------------------- `Transfer` declared as crate-private [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: crate-private type `Time` in public interface [INFO] [stdout] --> src/raptor.rs:248:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) enum Time { [INFO] [stdout] | -------------------- `Time` declared as crate-private [INFO] [stdout] ... [INFO] [stdout] 248 | / pub fn raptor( [INFO] [stdout] 249 | | source: usize, [INFO] [stdout] 250 | | target: usize, [INFO] [stdout] 251 | | departure: &Time, [INFO] [stdout] 252 | | routes: RoutesData, [INFO] [stdout] 253 | | stops: StopsData, [INFO] [stdout] 254 | | ) -> Vec> { [INFO] [stdout] | |____________________________________^ can't leak crate-private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: crate-private type `RoutesData` in public interface [INFO] [stdout] --> src/raptor.rs:248:1 [INFO] [stdout] | [INFO] [stdout] 123 | pub(crate) struct RoutesData { [INFO] [stdout] | ---------------------------- `RoutesData` declared as crate-private [INFO] [stdout] ... [INFO] [stdout] 248 | / pub fn raptor( [INFO] [stdout] 249 | | source: usize, [INFO] [stdout] 250 | | target: usize, [INFO] [stdout] 251 | | departure: &Time, [INFO] [stdout] 252 | | routes: RoutesData, [INFO] [stdout] 253 | | stops: StopsData, [INFO] [stdout] 254 | | ) -> Vec> { [INFO] [stdout] | |____________________________________^ can't leak crate-private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: crate-private type `StopsData` in public interface [INFO] [stdout] --> src/raptor.rs:248:1 [INFO] [stdout] | [INFO] [stdout] 215 | pub(crate) struct StopsData { [INFO] [stdout] | --------------------------- `StopsData` declared as crate-private [INFO] [stdout] ... [INFO] [stdout] 248 | / pub fn raptor( [INFO] [stdout] 249 | | source: usize, [INFO] [stdout] 250 | | target: usize, [INFO] [stdout] 251 | | departure: &Time, [INFO] [stdout] 252 | | routes: RoutesData, [INFO] [stdout] 253 | | stops: StopsData, [INFO] [stdout] 254 | | ) -> Vec> { [INFO] [stdout] | |____________________________________^ can't leak crate-private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: crate-private type `raptor::Connection` in public interface [INFO] [stdout] --> src/raptor.rs:248:1 [INFO] [stdout] | [INFO] [stdout] 236 | pub(crate) enum Connection { [INFO] [stdout] | -------------------------- `raptor::Connection` declared as crate-private [INFO] [stdout] ... [INFO] [stdout] 248 | / pub fn raptor( [INFO] [stdout] 249 | | source: usize, [INFO] [stdout] 250 | | target: usize, [INFO] [stdout] 251 | | departure: &Time, [INFO] [stdout] 252 | | routes: RoutesData, [INFO] [stdout] 253 | | stops: StopsData, [INFO] [stdout] 254 | | ) -> Vec> { [INFO] [stdout] | |____________________________________^ can't leak crate-private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RouteId` is never constructed [INFO] [stdout] --> src/data.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | struct RouteId(String, bool, usize); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/data.rs:185:5 [INFO] [stdout] | [INFO] [stdout] 184 | struct Trip { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 185 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PartialStop` is never constructed [INFO] [stdout] --> src/data.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | struct PartialStop { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetStopsReturn` is never constructed [INFO] [stdout] --> src/data.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | struct GetStopsReturn { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_stops` is never used [INFO] [stdout] --> src/data.rs:238:4 [INFO] [stdout] | [INFO] [stdout] 238 | fn get_stops(connection: &Connection) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetRoutesReturn` is never constructed [INFO] [stdout] --> src/data.rs:312:8 [INFO] [stdout] | [INFO] [stdout] 312 | struct GetRoutesReturn { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_routes` is never used [INFO] [stdout] --> src/data.rs:319:4 [INFO] [stdout] | [INFO] [stdout] 319 | fn get_routes( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `assemble_raptor_data` is never used [INFO] [stdout] --> src/data.rs:429:4 [INFO] [stdout] | [INFO] [stdout] 429 | fn assemble_raptor_data( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Infinite` is never constructed [INFO] [stdout] --> src/raptor.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) enum Time { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 13 | Finite(u64), [INFO] [stdout] 14 | Infinite, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Time` 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: field `arrival_time` is never read [INFO] [stdout] --> src/raptor.rs:101:16 [INFO] [stdout] | [INFO] [stdout] 99 | pub(crate) struct StopTime { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 100 | pub(crate) departure_time: Time, [INFO] [stdout] 101 | pub(crate) arrival_time: Time, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `number_of_trips`, `number_of_stops`, `route_stops_start_index`, and `stop_times_start_index` are never read [INFO] [stdout] --> src/raptor.rs:111:16 [INFO] [stdout] | [INFO] [stdout] 108 | pub(crate) struct Route { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 111 | pub(crate) number_of_trips: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub(crate) number_of_stops: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub(crate) route_stops_start_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub(crate) stop_times_start_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoutesData` is never constructed [INFO] [stdout] --> src/raptor.rs:123:19 [INFO] [stdout] | [INFO] [stdout] 123 | pub(crate) struct RoutesData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_stop_times`, `get_route_stops`, `get_stop_sequence`, and `get_earliest_departing_trip` are never used [INFO] [stdout] --> src/raptor.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 135 | impl RoutesData { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 136 | fn get_stop_times(&self, route: &Route) -> &[StopTime] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn get_route_stops(&self, route: &Route) -> &[usize] { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | fn get_stop_sequence(&self, route: &Route, stop: &usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | fn get_earliest_departing_trip( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `transfers_index_start`, `stop_routes_index_start`, `transfers_count`, and `stop_routes_count` are never read [INFO] [stdout] --> src/raptor.rs:187:16 [INFO] [stdout] | [INFO] [stdout] 185 | pub(crate) struct Stop { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 186 | pub(crate) id: String, [INFO] [stdout] 187 | pub(crate) transfers_index_start: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 188 | pub(crate) stop_routes_index_start: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 189 | pub(crate) transfers_count: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 190 | pub(crate) stop_routes_count: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stop` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `target` and `time` are never read [INFO] [stdout] --> src/raptor.rs:210:16 [INFO] [stdout] | [INFO] [stdout] 208 | pub(crate) struct Transfer { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 209 | /// The target stop that can be reached by foot through this foot-path [INFO] [stdout] 210 | pub(crate) target: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 211 | /// Time it takes to reach the target stop by foot [INFO] [stdout] 212 | pub(crate) time: Time, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StopsData` is never constructed [INFO] [stdout] --> src/raptor.rs:215:19 [INFO] [stdout] | [INFO] [stdout] 215 | pub(crate) struct StopsData { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_routes_for` and `get_routes` are never used [INFO] [stdout] --> src/raptor.rs:223:8 [INFO] [stdout] | [INFO] [stdout] 222 | impl StopsData { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 223 | fn get_routes_for(&self, stop: &Stop) -> &[usize] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 229 | fn get_routes(&self, stop: &usize) -> &[usize] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Connection` is never used [INFO] [stdout] --> src/raptor.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | pub(crate) enum Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `raptor` is never used [INFO] [stdout] --> src/raptor.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn raptor( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/raptor.rs:293:25 [INFO] [stdout] | [INFO] [stdout] 293 | &queue.insert(route, p); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 293 | let _ = &queue.insert(route, p); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0446`. [INFO] [stdout] [INFO] [stderr] error: could not compile `raptor` (bin "raptor") due to 7 previous errors; 46 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a4fffd3d958b9fb0b1e3a2fb6161cae021141ac292e78079180731b4baa1a3bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4fffd3d958b9fb0b1e3a2fb6161cae021141ac292e78079180731b4baa1a3bb", kill_on_drop: false }` [INFO] [stdout] a4fffd3d958b9fb0b1e3a2fb6161cae021141ac292e78079180731b4baa1a3bb