[INFO] cloning repository https://github.com/izzhafeez/router [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/izzhafeez/router" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fizzhafeez%2Frouter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fizzhafeez%2Frouter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1eb9b9360c026354ed26412ea15ac3d608bac5f1 [INFO] checking izzhafeez/router/1eb9b9360c026354ed26412ea15ac3d608bac5f1 against master#e1ac0fa95ba15221ee195647cb12464df3164513 for pr-126090 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fizzhafeez%2Frouter" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/izzhafeez/router on toolchain e1ac0fa95ba15221ee195647cb12464df3164513 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e1ac0fa95ba15221ee195647cb12464df3164513" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/izzhafeez/router [INFO] finished tweaking git repo https://github.com/izzhafeez/router [INFO] tweaked toml for git repo https://github.com/izzhafeez/router written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/izzhafeez/router 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" "+e1ac0fa95ba15221ee195647cb12464df3164513" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 9 packages to latest compatible versions [INFO] [stderr] Adding itoa v1.0.11 [INFO] [stderr] Adding proc-macro2 v1.0.85 [INFO] [stderr] Adding quote v1.0.36 [INFO] [stderr] Adding ryu v1.0.18 [INFO] [stderr] Adding serde v1.0.203 [INFO] [stderr] Adding serde_derive v1.0.203 [INFO] [stderr] Adding serde_json v1.0.117 [INFO] [stderr] Adding syn v2.0.66 [INFO] [stderr] Adding unicode-ident v1.0.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+e1ac0fa95ba15221ee195647cb12464df3164513" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3658adb786673728891a93631aca39060ccc0e7ffc3ede1e86f353529e81a2bb [INFO] running `Command { std: "docker" "start" "-a" "3658adb786673728891a93631aca39060ccc0e7ffc3ede1e86f353529e81a2bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3658adb786673728891a93631aca39060ccc0e7ffc3ede1e86f353529e81a2bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3658adb786673728891a93631aca39060ccc0e7ffc3ede1e86f353529e81a2bb", kill_on_drop: false }` [INFO] [stdout] 3658adb786673728891a93631aca39060ccc0e7ffc3ede1e86f353529e81a2bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+e1ac0fa95ba15221ee195647cb12464df3164513" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52654fa98b7542cf1bb4cd24cb3f046da8a2eb671e45ac429f14925f52550cab [INFO] running `Command { std: "docker" "start" "-a" "52654fa98b7542cf1bb4cd24cb3f046da8a2eb671e45ac429f14925f52550cab", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.85 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Checking router v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0603]: function import `create_mrt_connection` is private [INFO] [stdout] --> src/network.rs:2:67 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, create_mrt_connection, MrtConnectionJson, MrtConnection, MrtNetworkJson... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ private function import [INFO] [stdout] | [INFO] [stdout] note: the function import `create_mrt_connection` is defined here... [INFO] [stdout] --> src/connection.rs:9:80 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::connection::mrt_connection::{get_mrt_connections, get_mrt_networks, create_mrt_connection, MrtConnection, MrtConnectionJson, M... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the function `create_mrt_connection` which is defined here [INFO] [stdout] --> src/connection/mrt_connection.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn create_mrt_connection(line_id: usize, distance: f32, start_connection_id: usize, end_connection_id: usize, mrt_connection_json: MrtConnectionJson) -> MrtConnectio... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `create_mrt_connection` through the re-export [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, connection::mrt_connection::create_mrt_connection, MrtConnectionJson, MrtConnection, MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `MrtConnectionJson` is private [INFO] [stdout] --> src/network.rs:2:90 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, create_mrt_connection, MrtConnectionJson, MrtConnection, MrtNetworkJson... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `MrtConnectionJson` is defined here... [INFO] [stdout] --> src/connection.rs:9:118 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::connection::mrt_connection::{get_mrt_connections, get_mrt_networks, create_mrt_connection, MrtConnection, MrtConnectionJson, M... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `MrtConnectionJson` which is defined here [INFO] [stdout] --> src/connection/mrt_connection.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct MrtConnectionJson { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `MrtConnectionJson` through the re-export [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, create_mrt_connection, connection::mrt_connection::MrtConnectionJson, MrtConnection, MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `MrtConnection` is private [INFO] [stdout] --> src/network.rs:2:109 [INFO] [stdout] | [INFO] [stdout] 2 | ...tions, create_mrt_connection, MrtConnectionJson, MrtConnection, MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ^^^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `MrtConnection` is defined here... [INFO] [stdout] --> src/connection.rs:9:103 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::connection::mrt_connection::{get_mrt_connections, get_mrt_networks, create_mrt_connection, MrtConnection, MrtConnectionJson, M... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `MrtConnection` which is defined here [INFO] [stdout] --> src/connection/mrt_connection.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MrtConnection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `MrtConnection` through the re-export [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, create_mrt_connection, MrtConnectionJson, connection::mrt_connection::MrtConnection, MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `MrtNetworkJson` is private [INFO] [stdout] --> src/network.rs:2:124 [INFO] [stdout] | [INFO] [stdout] 2 | ...rt_connection, MrtConnectionJson, MrtConnection, MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ^^^^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `MrtNetworkJson` is defined here... [INFO] [stdout] --> src/connection.rs:9:137 [INFO] [stdout] | [INFO] [stdout] 9 | ...s, create_mrt_connection, MrtConnection, MrtConnectionJson, MrtNetworkJson}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `MrtNetworkJson` which is defined here [INFO] [stdout] --> src/connection/mrt_connection.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct MrtNetworkJson { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `MrtNetworkJson` through the re-export [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, create_mrt_connection, MrtConnectionJson, MrtConnection, connection::mrt_connection::MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `BusConnectionJson` is private [INFO] [stdout] --> src/network.rs:2:140 [INFO] [stdout] | [INFO] [stdout] 2 | ...ConnectionJson, MrtConnection, MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `BusConnectionJson` is defined here... [INFO] [stdout] --> src/connection.rs:8:56 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::connection::bus_connection::{BusConnection, BusConnectionJson, get_bus_connections}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `BusConnectionJson` which is defined here [INFO] [stdout] --> src/connection/bus_connection.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct BusConnectionJson { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `BusConnectionJson` through the re-export [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, create_mrt_connection, MrtConnectionJson, MrtConnection, MrtNetworkJson, connection::bus_connection::BusConnectionJson}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `MrtPlatform` is private [INFO] [stdout] --> src/network.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `MrtPlatform` is defined here... [INFO] [stdout] --> src/node.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::node::mrt_platform::{MrtPlatform, MrtPlatformJson, create_mrt_platform, get_mrt_platforms}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `MrtPlatform` which is defined here [INFO] [stdout] --> src/node/mrt_platform.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct MrtPlatform { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `MrtPlatform` through the re-export [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{node::mrt_platform::MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `MrtPlatformJson` is private [INFO] [stdout] --> src/network.rs:4:38 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `MrtPlatformJson` is defined here... [INFO] [stdout] --> src/node.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::node::mrt_platform::{MrtPlatform, MrtPlatformJson, create_mrt_platform, get_mrt_platforms}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `MrtPlatformJson` which is defined here [INFO] [stdout] --> src/node/mrt_platform.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MrtPlatformJson { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `MrtPlatformJson` through the re-export [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, node::mrt_platform::MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: function import `create_mrt_platform` is private [INFO] [stdout] --> src/network.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ private function import [INFO] [stdout] | [INFO] [stdout] note: the function import `create_mrt_platform` is defined here... [INFO] [stdout] --> src/node.rs:6:63 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::node::mrt_platform::{MrtPlatform, MrtPlatformJson, create_mrt_platform, get_mrt_platforms}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the function `create_mrt_platform` which is defined here [INFO] [stdout] --> src/node/mrt_platform.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn create_mrt_platform(node: MrtPlatformJson, connection_ids: Vec) -> MrtPlatform { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `create_mrt_platform` through the re-export [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, node::mrt_platform::create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `BusStop` is private [INFO] [stdout] --> src/network.rs:4:87 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `BusStop` is defined here... [INFO] [stdout] --> src/node.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::node::bus_stop::{BusStop, BusStopJson, get_bus_stops, create_bus_stop}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `BusStop` which is defined here [INFO] [stdout] --> src/node/bus_stop.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BusStop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `BusStop` through the re-export [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, node::bus_stop::BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `BusStopJson` is private [INFO] [stdout] --> src/network.rs:4:96 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `BusStopJson` is defined here... [INFO] [stdout] --> src/node.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::node::bus_stop::{BusStop, BusStopJson, get_bus_stops, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `BusStopJson` which is defined here [INFO] [stdout] --> src/node/bus_stop.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct BusStopJson { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `BusStopJson` through the re-export [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, node::bus_stop::BusStopJson, create_bus_stop}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: function import `create_bus_stop` is private [INFO] [stdout] --> src/network.rs:4:109 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ private function import [INFO] [stdout] | [INFO] [stdout] note: the function import `create_bus_stop` is defined here... [INFO] [stdout] --> src/node.rs:5:66 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::node::bus_stop::{BusStop, BusStopJson, get_bus_stops, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the function `create_bus_stop` which is defined here [INFO] [stdout] --> src/node/bus_stop.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn create_bus_stop(node: BusStopJson, connection_ids: Vec) -> BusStop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `create_bus_stop` through the re-export [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, node::bus_stop::create_bus_stop}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/connection.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: function import `create_mrt_connection` is private [INFO] [stdout] --> src/network.rs:2:67 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, create_mrt_connection, MrtConnectionJson, MrtConnection, MrtNetworkJson... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ private function import [INFO] [stdout] | [INFO] [stdout] note: the function import `create_mrt_connection` is defined here... [INFO] [stdout] --> src/connection.rs:9:80 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::connection::mrt_connection::{get_mrt_connections, get_mrt_networks, create_mrt_connection, MrtConnection, MrtConnectionJson, M... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the function `create_mrt_connection` which is defined here [INFO] [stdout] --> src/connection/mrt_connection.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn create_mrt_connection(line_id: usize, distance: f32, start_connection_id: usize, end_connection_id: usize, mrt_connection_json: MrtConnectionJson) -> MrtConnectio... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `create_mrt_connection` through the re-export [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, connection::mrt_connection::create_mrt_connection, MrtConnectionJson, MrtConnection, MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `MrtConnectionJson` is private [INFO] [stdout] --> src/network.rs:2:90 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, create_mrt_connection, MrtConnectionJson, MrtConnection, MrtNetworkJson... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `MrtConnectionJson` is defined here... [INFO] [stdout] --> src/connection.rs:9:118 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::connection::mrt_connection::{get_mrt_connections, get_mrt_networks, create_mrt_connection, MrtConnection, MrtConnectionJson, M... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `MrtConnectionJson` which is defined here [INFO] [stdout] --> src/connection/mrt_connection.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct MrtConnectionJson { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `MrtConnectionJson` through the re-export [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, create_mrt_connection, connection::mrt_connection::MrtConnectionJson, MrtConnection, MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `MrtConnection` is private [INFO] [stdout] --> src/network.rs:2:109 [INFO] [stdout] | [INFO] [stdout] 2 | ...tions, create_mrt_connection, MrtConnectionJson, MrtConnection, MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ^^^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `MrtConnection` is defined here... [INFO] [stdout] --> src/connection.rs:9:103 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::connection::mrt_connection::{get_mrt_connections, get_mrt_networks, create_mrt_connection, MrtConnection, MrtConnectionJson, M... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `MrtConnection` which is defined here [INFO] [stdout] --> src/connection/mrt_connection.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MrtConnection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `MrtConnection` through the re-export [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, create_mrt_connection, MrtConnectionJson, connection::mrt_connection::MrtConnection, MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `MrtNetworkJson` is private [INFO] [stdout] --> src/network.rs:2:124 [INFO] [stdout] | [INFO] [stdout] 2 | ...rt_connection, MrtConnectionJson, MrtConnection, MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ^^^^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `MrtNetworkJson` is defined here... [INFO] [stdout] --> src/connection.rs:9:137 [INFO] [stdout] | [INFO] [stdout] 9 | ...s, create_mrt_connection, MrtConnection, MrtConnectionJson, MrtNetworkJson}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `MrtNetworkJson` which is defined here [INFO] [stdout] --> src/connection/mrt_connection.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct MrtNetworkJson { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `MrtNetworkJson` through the re-export [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, create_mrt_connection, MrtConnectionJson, MrtConnection, connection::mrt_connection::MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `BusConnectionJson` is private [INFO] [stdout] --> src/network.rs:2:140 [INFO] [stdout] | [INFO] [stdout] 2 | ...ConnectionJson, MrtConnection, MrtNetworkJson, BusConnectionJson}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `BusConnectionJson` is defined here... [INFO] [stdout] --> src/connection.rs:8:56 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::connection::bus_connection::{BusConnection, BusConnectionJson, get_bus_connections}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `BusConnectionJson` which is defined here [INFO] [stdout] --> src/connection/bus_connection.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct BusConnectionJson { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `BusConnectionJson` through the re-export [INFO] [stdout] | [INFO] [stdout] 2 | use crate::connection::{Connection, get_networks_and_connections, create_mrt_connection, MrtConnectionJson, MrtConnection, MrtNetworkJson, connection::bus_connection::BusConnectionJson}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `MrtPlatform` is private [INFO] [stdout] --> src/network.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `MrtPlatform` is defined here... [INFO] [stdout] --> src/node.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::node::mrt_platform::{MrtPlatform, MrtPlatformJson, create_mrt_platform, get_mrt_platforms}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `MrtPlatform` which is defined here [INFO] [stdout] --> src/node/mrt_platform.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct MrtPlatform { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `MrtPlatform` through the re-export [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{node::mrt_platform::MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `MrtPlatformJson` is private [INFO] [stdout] --> src/network.rs:4:38 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `MrtPlatformJson` is defined here... [INFO] [stdout] --> src/node.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::node::mrt_platform::{MrtPlatform, MrtPlatformJson, create_mrt_platform, get_mrt_platforms}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `MrtPlatformJson` which is defined here [INFO] [stdout] --> src/node/mrt_platform.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MrtPlatformJson { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `MrtPlatformJson` through the re-export [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, node::mrt_platform::MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: function import `create_mrt_platform` is private [INFO] [stdout] --> src/network.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ private function import [INFO] [stdout] | [INFO] [stdout] note: the function import `create_mrt_platform` is defined here... [INFO] [stdout] --> src/node.rs:6:63 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::node::mrt_platform::{MrtPlatform, MrtPlatformJson, create_mrt_platform, get_mrt_platforms}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the function `create_mrt_platform` which is defined here [INFO] [stdout] --> src/node/mrt_platform.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn create_mrt_platform(node: MrtPlatformJson, connection_ids: Vec) -> MrtPlatform { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `create_mrt_platform` through the re-export [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, node::mrt_platform::create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `BusStop` is private [INFO] [stdout] --> src/network.rs:4:87 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `BusStop` is defined here... [INFO] [stdout] --> src/node.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::node::bus_stop::{BusStop, BusStopJson, get_bus_stops, create_bus_stop}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `BusStop` which is defined here [INFO] [stdout] --> src/node/bus_stop.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct BusStop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `BusStop` through the re-export [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, node::bus_stop::BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: struct import `BusStopJson` is private [INFO] [stdout] --> src/network.rs:4:96 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^ private struct import [INFO] [stdout] | [INFO] [stdout] note: the struct import `BusStopJson` is defined here... [INFO] [stdout] --> src/node.rs:5:38 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::node::bus_stop::{BusStop, BusStopJson, get_bus_stops, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the struct `BusStopJson` which is defined here [INFO] [stdout] --> src/node/bus_stop.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct BusStopJson { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `BusStopJson` through the re-export [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, node::bus_stop::BusStopJson, create_bus_stop}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: function import `create_bus_stop` is private [INFO] [stdout] --> src/network.rs:4:109 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ private function import [INFO] [stdout] | [INFO] [stdout] note: the function import `create_bus_stop` is defined here... [INFO] [stdout] --> src/node.rs:5:66 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::node::bus_stop::{BusStop, BusStopJson, get_bus_stops, create_bus_stop}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] note: ...and refers to the function `create_bus_stop` which is defined here [INFO] [stdout] --> src/node/bus_stop.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn create_bus_stop(node: BusStopJson, connection_ids: Vec) -> BusStop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly [INFO] [stdout] help: import `create_bus_stop` through the re-export [INFO] [stdout] | [INFO] [stdout] 4 | use crate::node::{MrtPlatform, Node, MrtPlatformJson, create_mrt_platform, get_nodes, BusStop, BusStopJson, node::bus_stop::create_bus_stop}; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/connection.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_start_index` found for reference `&Connection` in the current scope [INFO] [stdout] --> src/network.rs:43:58 [INFO] [stdout] | [INFO] [stdout] 43 | let start_node: &Node = self.get_node(connection.get_start_index()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_end_index` found for reference `&Connection` in the current scope [INFO] [stdout] --> src/network.rs:44:56 [INFO] [stdout] | [INFO] [stdout] 44 | let end_node: &Node = self.get_node(connection.get_end_index()); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/network.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn create_infrastructure() -> Network { [INFO] [stdout] | --------------------- ^^^^^^^ expected `Network`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `first` found for struct `Filter` in the current scope [INFO] [stdout] --> src/network.rs:85:84 [INFO] [stdout] | [INFO] [stdout] 85 | let line_id = lines.iter().filter(|line| line.name == connection.line).first()?; [INFO] [stdout] | ----- method `first` is available on `&[Line]` ^^^^^ method not found in `Filter, {closure@network.rs:85:47}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_start_index` found for reference `&Connection` in the current scope [INFO] [stdout] --> src/network.rs:43:58 [INFO] [stdout] | [INFO] [stdout] 43 | let start_node: &Node = self.get_node(connection.get_start_index()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_end_index` found for reference `&Connection` in the current scope [INFO] [stdout] --> src/network.rs:44:56 [INFO] [stdout] | [INFO] [stdout] 44 | let end_node: &Node = self.get_node(connection.get_end_index()); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/network.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn create_infrastructure() -> Network { [INFO] [stdout] | --------------------- ^^^^^^^ expected `Network`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot divide `f32` by `{integer}` [INFO] [stdout] --> src/connection/bus_connection.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | self.distance / 40; [INFO] [stdout] | ^ no implementation for `f32 / {integer}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Div<{integer}>` is not implemented for `f32` [INFO] [stdout] = help: the following other types implement trait `Div`: [INFO] [stdout] <&'a f32 as Div> [INFO] [stdout] <&f32 as Div<&f32>> [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] help: consider using a floating-point literal by writing it with `.0` [INFO] [stdout] | [INFO] [stdout] 29 | self.distance / 40.0; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/connection/bus_connection.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | fn get_time_taken_in_hours(&self) -> f32 { [INFO] [stdout] | ----------------------- ^^^ expected `f32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] 29 | self.distance / 40; [INFO] [stdout] | - help: remove this semicolon to return this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `first` found for struct `Filter` in the current scope [INFO] [stdout] --> src/network.rs:85:84 [INFO] [stdout] | [INFO] [stdout] 85 | let line_id = lines.iter().filter(|line| line.name == connection.line).first()?; [INFO] [stdout] | ----- method `first` is available on `&[Line]` ^^^^^ method not found in `Filter, {closure@network.rs:85:47}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot divide `f32` by `{integer}` [INFO] [stdout] --> src/connection/mrt_connection.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 56 | self.distance / 60 [INFO] [stdout] | ^ no implementation for `f32 / {integer}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Div<{integer}>` is not implemented for `f32` [INFO] [stdout] = help: the following other types implement trait `Div`: [INFO] [stdout] <&'a f32 as Div> [INFO] [stdout] <&f32 as Div<&f32>> [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] help: consider using a floating-point literal by writing it with `.0` [INFO] [stdout] | [INFO] [stdout] 56 | self.distance / 60.0 [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connection/mrt_connection.rs:62:50 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn add_self_to_vec(&self, node_connections_match: Vec>, id: usize) { [INFO] [stdout] | --------------------------------------------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 62 | node_connections_match.get(self.start_id)?.push(id) [INFO] [stdout] | ^ cannot use the `?` operator in a method that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot divide `f32` by `{integer}` [INFO] [stdout] --> src/connection/bus_connection.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | self.distance / 40; [INFO] [stdout] | ^ no implementation for `f32 / {integer}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Div<{integer}>` is not implemented for `f32` [INFO] [stdout] = help: the following other types implement trait `Div`: [INFO] [stdout] <&'a f32 as Div> [INFO] [stdout] <&f32 as Div<&f32>> [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] help: consider using a floating-point literal by writing it with `.0` [INFO] [stdout] | [INFO] [stdout] 29 | self.distance / 40.0; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/connection/bus_connection.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | fn get_time_taken_in_hours(&self) -> f32 { [INFO] [stdout] | ----------------------- ^^^ expected `f32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] 29 | self.distance / 40; [INFO] [stdout] | - help: remove this semicolon to return this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `first` found for struct `Map` in the current scope [INFO] [stdout] --> src/connection/mrt_connection.rs:70:14 [INFO] [stdout] | [INFO] [stdout] 66 | lines.iter() [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | _________method `first` is available on `&[Line]` [INFO] [stdout] | | [INFO] [stdout] 67 | | .enumerate() [INFO] [stdout] 68 | | .filter(|(id, line)| line.name == self.line) [INFO] [stdout] 69 | | .map(|(id, line)| id) [INFO] [stdout] 70 | | .first()? [INFO] [stdout] | | -^^^^^ method not found in `Map>, {closure@mrt_connection.rs:68:21}>, {closure@mrt_connection.rs:69:18}>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/router-d01b02b84cdac65b.long-type-6687630768889896130.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connection/mrt_connection.rs:75:38 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_distance(&self, lines: &Vec) -> f32 { [INFO] [stdout] | ---------------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 74 | let line_id = self.get_line_id_from_vec(lines); [INFO] [stdout] 75 | let line = lines.get(line_id)?; [INFO] [stdout] | ^ cannot use the `?` operator in a method that returns `f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot divide `f32` by `{integer}` [INFO] [stdout] --> src/connection/walk_connection.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | self.distance / 4 [INFO] [stdout] | ^ no implementation for `f32 / {integer}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Div<{integer}>` is not implemented for `f32` [INFO] [stdout] = help: the following other types implement trait `Div`: [INFO] [stdout] <&'a f32 as Div> [INFO] [stdout] <&f32 as Div<&f32>> [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] help: consider using a floating-point literal by writing it with `.0` [INFO] [stdout] | [INFO] [stdout] 13 | self.distance / 4.0 [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot divide `f32` by `{integer}` [INFO] [stdout] --> src/connection/mrt_connection.rs:56:23 [INFO] [stdout] | [INFO] [stdout] 56 | self.distance / 60 [INFO] [stdout] | ^ no implementation for `f32 / {integer}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Div<{integer}>` is not implemented for `f32` [INFO] [stdout] = help: the following other types implement trait `Div`: [INFO] [stdout] <&'a f32 as Div> [INFO] [stdout] <&f32 as Div<&f32>> [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] help: consider using a floating-point literal by writing it with `.0` [INFO] [stdout] | [INFO] [stdout] 56 | self.distance / 60.0 [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connection/mrt_connection.rs:62:50 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn add_self_to_vec(&self, node_connections_match: Vec>, id: usize) { [INFO] [stdout] | --------------------------------------------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 62 | node_connections_match.get(self.start_id)?.push(id) [INFO] [stdout] | ^ cannot use the `?` operator in a method that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `first` found for struct `Map` in the current scope [INFO] [stdout] --> src/connection/mrt_connection.rs:70:14 [INFO] [stdout] | [INFO] [stdout] 66 | lines.iter() [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | _________method `first` is available on `&[Line]` [INFO] [stdout] | | [INFO] [stdout] 67 | | .enumerate() [INFO] [stdout] 68 | | .filter(|(id, line)| line.name == self.line) [INFO] [stdout] 69 | | .map(|(id, line)| id) [INFO] [stdout] 70 | | .first()? [INFO] [stdout] | | -^^^^^ method not found in `Map>, {closure@mrt_connection.rs:68:21}>, {closure@mrt_connection.rs:69:18}>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/router-8774dd53fc81fd13.long-type-12132264901319190840.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connection/mrt_connection.rs:75:38 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn get_distance(&self, lines: &Vec) -> f32 { [INFO] [stdout] | ---------------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 74 | let line_id = self.get_line_id_from_vec(lines); [INFO] [stdout] 75 | let line = lines.get(line_id)?; [INFO] [stdout] | ^ cannot use the `?` operator in a method that returns `f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot divide `f32` by `{integer}` [INFO] [stdout] --> src/connection/walk_connection.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | self.distance / 4 [INFO] [stdout] | ^ no implementation for `f32 / {integer}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Div<{integer}>` is not implemented for `f32` [INFO] [stdout] = help: the following other types implement trait `Div`: [INFO] [stdout] <&'a f32 as Div> [INFO] [stdout] <&f32 as Div<&f32>> [INFO] [stdout] > [INFO] [stdout] [INFO] [stdout] help: consider using a floating-point literal by writing it with `.0` [INFO] [stdout] | [INFO] [stdout] 13 | self.distance / 4.0 [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `router` (bin "router") due to 23 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 22 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `router` (bin "router" test) due to 23 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "52654fa98b7542cf1bb4cd24cb3f046da8a2eb671e45ac429f14925f52550cab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52654fa98b7542cf1bb4cd24cb3f046da8a2eb671e45ac429f14925f52550cab", kill_on_drop: false }` [INFO] [stdout] 52654fa98b7542cf1bb4cd24cb3f046da8a2eb671e45ac429f14925f52550cab