[INFO] cloning repository https://github.com/mjptree/netsim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mjptree/netsim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmjptree%2Fnetsim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmjptree%2Fnetsim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 380f211979b9f0a55eb036e8fd7a2439dbd92110 [INFO] testing mjptree/netsim against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmjptree%2Fnetsim" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mjptree/netsim on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-13/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/mjptree/netsim [INFO] finished tweaking git repo https://github.com/mjptree/netsim [INFO] tweaked toml for git repo https://github.com/mjptree/netsim written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/mjptree/netsim already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clap_derive v3.0.5 [INFO] [stderr] Downloaded clap v3.0.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a13a19c825052b61a73581fdd3d5e30e5ea5afc793fd47e4930c0c89f1d56071 [INFO] running `Command { std: "docker" "start" "-a" "a13a19c825052b61a73581fdd3d5e30e5ea5afc793fd47e4930c0c89f1d56071", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a13a19c825052b61a73581fdd3d5e30e5ea5afc793fd47e4930c0c89f1d56071", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a13a19c825052b61a73581fdd3d5e30e5ea5afc793fd47e4930c0c89f1d56071", kill_on_drop: false }` [INFO] [stdout] a13a19c825052b61a73581fdd3d5e30e5ea5afc793fd47e4930c0c89f1d56071 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 19b80d91bd80b23acce1ee99c4b5274836b96e00bdae0e82c0d217faffe9fbf4 [INFO] running `Command { std: "docker" "start" "-a" "19b80d91bd80b23acce1ee99c4b5274836b96e00bdae0e82c0d217faffe9fbf4", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling netsim-gml v0.1.0 (/opt/rustwide/workdir/netsim-gml) [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling serde_derive v1.0.133 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling clap_derive v3.0.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling clap v3.0.5 [INFO] [stderr] Compiling serde v1.0.133 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling netsim v0.1.0 (/opt/rustwide/workdir/netsim) [INFO] [stdout] warning: unused import: `crate::worker::Worker` [INFO] [stdout] --> netsim/src/net.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::worker::Worker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> netsim/src/task.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | if (this.is_refill_needed()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - if (this.is_refill_needed()) { [INFO] [stdout] 33 + if this.is_refill_needed() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cli_args` [INFO] [stdout] --> netsim/src/app.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn with_args(cli_args: Args) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cli_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `task` [INFO] [stdout] --> netsim/src/host.rs:33:23 [INFO] [stdout] | [INFO] [stdout] 33 | fn execute(&self, task: Task) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_task` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> netsim/src/net.rs:147:23 [INFO] [stdout] | [INFO] [stdout] 147 | fn forward(&self, src: Host, packet: Packet) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `packet` [INFO] [stdout] --> netsim/src/net.rs:147:34 [INFO] [stdout] | [INFO] [stdout] 147 | fn forward(&self, src: Host, packet: Packet) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host` [INFO] [stdout] --> netsim/src/net.rs:170:31 [INFO] [stdout] | [INFO] [stdout] 170 | fn receive_packets(&self, host: &Host) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host` [INFO] [stdout] --> netsim/src/net.rs:172:28 [INFO] [stdout] | [INFO] [stdout] 172 | fn send_packets(&self, host: &Host) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host` [INFO] [stdout] --> netsim/src/sim.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | fn add_host(&mut self, host: &Host) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> netsim/src/sim.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | fn push(&self, event: &Event, host: &Host, time: SimulationTime) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host` [INFO] [stdout] --> netsim/src/sim.rs:35:35 [INFO] [stdout] | [INFO] [stdout] 35 | fn push(&self, event: &Event, host: &Host, time: SimulationTime) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> netsim/src/sim.rs:35:48 [INFO] [stdout] | [INFO] [stdout] 35 | fn push(&self, event: &Event, host: &Host, time: SimulationTime) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> netsim/src/sim.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | fn pop(&self, time: SimulationTime) -> Event { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> netsim/src/sim.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn push(&self, event: Event, host: &Host, delay: SimulationTime) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host` [INFO] [stdout] --> netsim/src/sim.rs:73:38 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn push(&self, event: Event, host: &Host, delay: SimulationTime) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delay` [INFO] [stdout] --> netsim/src/sim.rs:73:51 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn push(&self, event: Event, host: &Host, delay: SimulationTime) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `simulation` [INFO] [stdout] --> netsim/src/sim.rs:145:42 [INFO] [stdout] | [INFO] [stdout] 145 | fn has_finished_current_rount(&self, simulation: &Simulation) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_simulation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `src` [INFO] [stdout] --> netsim/src/sim.rs:149:31 [INFO] [stdout] | [INFO] [stdout] 149 | fn latency_between(&self, src: &IpAddr, dst: &IpAddr) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_src` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dst` [INFO] [stdout] --> netsim/src/sim.rs:149:45 [INFO] [stdout] | [INFO] [stdout] 149 | fn latency_between(&self, src: &IpAddr, dst: &IpAddr) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dst` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_refill` [INFO] [stdout] --> netsim/src/task.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 39 | let next_refill = interval - last_refill % interval; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_refill` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `task` [INFO] [stdout] --> netsim/src/task.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | let task = Task::RefillBuckets(interface.clone()); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_task` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `host` [INFO] [stdout] --> netsim/src/task.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn execute(&mut self, host: Arc) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_host` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> netsim/src/task.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | let mut this = interface.lock().unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bootstrap_end_time` [INFO] [stdout] --> netsim/src/config.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | bootstrap_end_time: TimeInterval, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `GeneralConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data_directory` [INFO] [stdout] --> netsim/src/config.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | data_directory: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `GeneralConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `heartbeat_interval` [INFO] [stdout] --> netsim/src/config.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | heartbeat_interval: TimeInterval, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `GeneralConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `log_level` [INFO] [stdout] --> netsim/src/config.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | log_level: LevelFilter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `GeneralConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `parallelism` [INFO] [stdout] --> netsim/src/config.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | parallelism: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `GeneralConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `seed` [INFO] [stdout] --> netsim/src/config.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | seed: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `GeneralConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `stop_time` [INFO] [stdout] --> netsim/src/config.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | stop_time: TimeInterval, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `GeneralConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `template_directory` [INFO] [stdout] --> netsim/src/config.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | template_directory: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `GeneralConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `use_shortest_path` [INFO] [stdout] --> netsim/src/config.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use_shortest_path: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `NetworkConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `log_level` [INFO] [stdout] --> netsim/src/config.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | log_level: log::LevelFilter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `HostDefaultsConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pcap_directory` [INFO] [stdout] --> netsim/src/config.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | pcap_directory: path::PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `HostDefaultsConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bandwidth_down` [INFO] [stdout] --> netsim/src/config.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | bandwidth_down: Bits, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `HostsConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bandwidth_up` [INFO] [stdout] --> netsim/src/config.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | bandwidth_up: Bits, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `HostsConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ip_addr` [INFO] [stdout] --> netsim/src/config.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | ip_addr: IpAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `HostsConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `network_node_id` [INFO] [stdout] --> netsim/src/config.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | network_node_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `HostsConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `options` [INFO] [stdout] --> netsim/src/config.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | options: HostDefaultsConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `HostsConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `quantity` [INFO] [stdout] --> netsim/src/config.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | quantity: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `HostsConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `processes` [INFO] [stdout] --> netsim/src/config.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | processes: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `HostsConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `args` [INFO] [stdout] --> netsim/src/config.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | args: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ProcessConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `environment` [INFO] [stdout] --> netsim/src/config.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | environment: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ProcessConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `path` [INFO] [stdout] --> netsim/src/config.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | path: PathBuf, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ProcessConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `quantity` [INFO] [stdout] --> netsim/src/config.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | quantity: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ProcessConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `start_time` [INFO] [stdout] --> netsim/src/config.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | start_time: TimeInterval, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ProcessConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `stop_time` [INFO] [stdout] --> netsim/src/config.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | stop_time: TimeInterval, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ProcessConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/config.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `task` [INFO] [stdout] --> netsim/src/event.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | task: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> netsim/src/event.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(task: Arc, delay: SimulationTime, src: Arc, dst: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `host` [INFO] [stdout] --> netsim/src/event.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn host(&self) -> Arc { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> netsim/src/event.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn execute(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Topology` [INFO] [stdout] --> netsim/src/graph.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Topology; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Node` [INFO] [stdout] --> netsim/src/graph.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Edge` [INFO] [stdout] --> netsim/src/graph.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Network` [INFO] [stdout] --> netsim/src/graph.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Network { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `node` [INFO] [stdout] --> netsim/src/graph.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn node(&self, id: NodeId) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `edge` [INFO] [stdout] --> netsim/src/graph.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn edge(&self, src: NodeId, dst: NodeId) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `path` [INFO] [stdout] --> netsim/src/graph.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | path: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HostParams` [INFO] [stdout] --> netsim/src/host.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct HostParams {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> netsim/src/host.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ip` [INFO] [stdout] --> netsim/src/host.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | ip: IpAddr, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> netsim/src/host.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn execute(&self, task: Task) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `info` [INFO] [stdout] --> netsim/src/host.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn info(&self) -> Arc { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `name` [INFO] [stdout] --> netsim/src/host.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `ip` [INFO] [stdout] --> netsim/src/host.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn ip(&self) -> IpAddr { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_restricted` [INFO] [stdout] --> netsim/src/net.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn is_restricted(ip: IpAddr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `capacity` [INFO] [stdout] --> netsim/src/net.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | capacity: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `remaining` [INFO] [stdout] --> netsim/src/net.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | remaining: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `refill` [INFO] [stdout] --> netsim/src/net.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | refill: u64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `consume` [INFO] [stdout] --> netsim/src/net.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | fn consume(&mut self, bytes: u64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `refill` [INFO] [stdout] --> netsim/src/net.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | fn refill(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `needs_refill` [INFO] [stdout] --> netsim/src/net.rs:131:14 [INFO] [stdout] | [INFO] [stdout] 131 | const fn needs_refill(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `queue` [INFO] [stdout] --> netsim/src/net.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | queue: VecDeque, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> netsim/src/net.rs:141:8 [INFO] [stdout] | [INFO] [stdout] 141 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `forward` [INFO] [stdout] --> netsim/src/net.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn forward(&self, src: Host, packet: Packet) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `enqueue` [INFO] [stdout] --> netsim/src/net.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | fn enqueue(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dequeue` [INFO] [stdout] --> netsim/src/net.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | fn dequeue(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ip_addr` [INFO] [stdout] --> netsim/src/net.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | ip_addr: IpAddr, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `send_bucket` [INFO] [stdout] --> netsim/src/net.rs:162:5 [INFO] [stdout] | [INFO] [stdout] 162 | send_bucket: TokenBucket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `recv_bucket` [INFO] [stdout] --> netsim/src/net.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | recv_bucket: TokenBucket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_refill_pending` [INFO] [stdout] --> netsim/src/net.rs:164:5 [INFO] [stdout] | [INFO] [stdout] 164 | is_refill_pending: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `upstream_router` [INFO] [stdout] --> netsim/src/net.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | upstream_router: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `refill_started` [INFO] [stdout] --> netsim/src/net.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | refill_started: SimulationTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `receive_packets` [INFO] [stdout] --> netsim/src/net.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | fn receive_packets(&self, host: &Host) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `send_packets` [INFO] [stdout] --> netsim/src/net.rs:172:8 [INFO] [stdout] | [INFO] [stdout] 172 | fn send_packets(&self, host: &Host) {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `refill_buckets` [INFO] [stdout] --> netsim/src/net.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn refill_buckets(&mut self, host: &Host) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_refill_needed` [INFO] [stdout] --> netsim/src/net.rs:186:18 [INFO] [stdout] | [INFO] [stdout] 186 | pub const fn is_refill_needed(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `refill_started` [INFO] [stdout] --> netsim/src/net.rs:191:18 [INFO] [stdout] | [INFO] [stdout] 191 | pub const fn refill_started(&self) -> SimulationTime { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `refill_interval` [INFO] [stdout] --> netsim/src/net.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn refill_interval() -> SimulationTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `NameRecord` [INFO] [stdout] --> netsim/src/net.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 200 | pub struct NameRecord { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `a` [INFO] [stdout] --> netsim/src/net.rs:206:8 [INFO] [stdout] | [INFO] [stdout] 206 | fn a(&self) -> IpAddr { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cname` [INFO] [stdout] --> netsim/src/net.rs:210:8 [INFO] [stdout] | [INFO] [stdout] 210 | fn cname(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `NameServer` [INFO] [stdout] --> netsim/src/net.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub struct NameServer { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `lookup` [INFO] [stdout] --> netsim/src/net.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | fn lookup(&self, name: &str) -> Option> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_lookup` [INFO] [stdout] --> netsim/src/net.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | fn reverse_lookup(&self, ip: IpAddr) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_unique` [INFO] [stdout] --> netsim/src/net.rs:229:8 [INFO] [stdout] | [INFO] [stdout] 229 | fn is_unique(&self, ip: IpAddr) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `register` [INFO] [stdout] --> netsim/src/net.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 233 | pub fn register( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `deregister` [INFO] [stdout] --> netsim/src/net.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 265 | pub fn deregister(&mut self, record: Arc) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> netsim/src/net.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | fn insert(&mut self, record: Arc) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> netsim/src/net.rs:276:8 [INFO] [stdout] | [INFO] [stdout] 276 | fn remove(&mut self, record: Arc) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Restricted` [INFO] [stdout] --> netsim/src/net.rs:284:5 [INFO] [stdout] | [INFO] [stdout] 284 | Restricted, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Reason` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/net.rs:282:10 [INFO] [stdout] | [INFO] [stdout] 282 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Duplicate` [INFO] [stdout] --> netsim/src/net.rs:285:5 [INFO] [stdout] | [INFO] [stdout] 285 | Duplicate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Reason` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> netsim/src/net.rs:282:10 [INFO] [stdout] | [INFO] [stdout] 282 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Processor` [INFO] [stdout] --> netsim/src/processor.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Processor { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> netsim/src/processor.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_ready_worker` [INFO] [stdout] --> netsim/src/processor.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn push_ready_worker(&mut self, worker: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_ready_worker` [INFO] [stdout] --> netsim/src/processor.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn pop_ready_worker(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_done_worker` [INFO] [stdout] --> netsim/src/processor.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn push_done_worker(&mut self, worker: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `finish_task` [INFO] [stdout] --> netsim/src/processor.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn finish_task(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resume_idle_timer` [INFO] [stdout] --> netsim/src/processor.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn resume_idle_timer(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pause_idle_timer` [INFO] [stdout] --> netsim/src/processor.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn pause_idle_timer(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `lapsed_idle_time` [INFO] [stdout] --> netsim/src/processor.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn lapsed_idle_time(&self) -> Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Processors` [INFO] [stdout] --> netsim/src/processor.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Processors { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> netsim/src/processor.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn new(size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_ready_worker` [INFO] [stdout] --> netsim/src/processor.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn push_ready_worker(&mut self, processor: usize, worker: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push_done_worker` [INFO] [stdout] --> netsim/src/processor.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn push_done_worker(&mut self, processor: usize, worker: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pop_worker_to_run_on` [INFO] [stdout] --> netsim/src/processor.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn pop_worker_to_run_on(&mut self, processor: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `finish_task` [INFO] [stdout] --> netsim/src/processor.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn finish_task(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cpu_id` [INFO] [stdout] --> netsim/src/processor.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn cpu_id(&self, processor: usize) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resume_idle_timer` [INFO] [stdout] --> netsim/src/processor.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn resume_idle_timer(&self, processor: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pause_idle_timer` [INFO] [stdout] --> netsim/src/processor.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn pause_idle_timer(&self, processor: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `lapsed_idle_time` [INFO] [stdout] --> netsim/src/processor.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn lapsed_idle_time(&self, processor: usize) -> Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_running` [INFO] [stdout] --> netsim/src/sim.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | is_running: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `worker` [INFO] [stdout] --> netsim/src/sim.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | worker: WorkerPool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `hosts` [INFO] [stdout] --> netsim/src/sim.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | hosts: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `start` [INFO] [stdout] --> netsim/src/sim.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | fn start(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stop` [INFO] [stdout] --> netsim/src/sim.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | fn stop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `push` [INFO] [stdout] --> netsim/src/sim.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn push(&self, event: Event, host: &Host, delay: SimulationTime) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_running` [INFO] [stdout] --> netsim/src/sim.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn is_running(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `scheduler` [INFO] [stdout] --> netsim/src/sim.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | scheduler: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> netsim/src/sim.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | fn run(&self) -> Result<(), Box> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `start_scheduler` [INFO] [stdout] --> netsim/src/sim.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | fn start_scheduler(&self) -> Result<(), PoisonError<()>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stop_scheduler` [INFO] [stdout] --> netsim/src/sim.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | fn stop_scheduler(&self) -> Result<(), PoisonError<()>> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `minimal_time_jump` [INFO] [stdout] --> netsim/src/sim.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | minimal_time_jump: SimulationTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `simulation` [INFO] [stdout] --> netsim/src/sim.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | simulation: Simulation, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `lapsed` [INFO] [stdout] --> netsim/src/sim.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | fn lapsed(&self) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_finished_current_rount` [INFO] [stdout] --> netsim/src/sim.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 145 | fn has_finished_current_rount(&self, simulation: &Simulation) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `latency_between` [INFO] [stdout] --> netsim/src/sim.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | fn latency_between(&self, src: &IpAddr, dst: &IpAddr) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RefillBuckets` [INFO] [stdout] --> netsim/src/task.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | RefillBuckets(Arc>), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> netsim/src/task.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn execute(&mut self, host: Arc) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_nanos` [INFO] [stdout] --> netsim/src/time.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn from_nanos(nanos: i64) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_micros` [INFO] [stdout] --> netsim/src/time.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn from_micros(micros: i64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `PerfTimer` [INFO] [stdout] --> netsim/src/time.rs:99:10 [INFO] [stdout] | [INFO] [stdout] 99 | pub enum PerfTimer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> netsim/src/time.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `start` [INFO] [stdout] --> netsim/src/time.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn start() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pause` [INFO] [stdout] --> netsim/src/time.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn pause(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resume` [INFO] [stdout] --> netsim/src/time.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn resume(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `lapsed` [INFO] [stdout] --> netsim/src/time.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn lapsed(&self) -> time::Duration { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stop` [INFO] [stdout] --> netsim/src/time.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn stop(self) -> time::Duration { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset` [INFO] [stdout] --> netsim/src/time.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn reset(&mut self, start_paused: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bit` [INFO] [stdout] --> netsim/src/units.rs:169:14 [INFO] [stdout] | [INFO] [stdout] 169 | const fn bit(&self) -> u64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bytes` [INFO] [stdout] --> netsim/src/units.rs:318:14 [INFO] [stdout] | [INFO] [stdout] 318 | const fn bytes(&self) -> u64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Process` [INFO] [stdout] --> netsim/src/worker.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Process { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Thread` [INFO] [stdout] --> netsim/src/worker.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Thread { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Clock` [INFO] [stdout] --> netsim/src/worker.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct Clock { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Worker` [INFO] [stdout] --> netsim/src/worker.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Worker { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `spawn` [INFO] [stdout] --> netsim/src/worker.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn spawn(pool: Arc>, id: WorkerId, bootstrap_end_time: EmulatedTime) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with` [INFO] [stdout] --> netsim/src/worker.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | fn with(func: F) -> Option [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_mut` [INFO] [stdout] --> netsim/src/worker.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn with_mut(func: F) -> Option [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_active_host` [INFO] [stdout] --> netsim/src/worker.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn set_active_host(host: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_active_host` [INFO] [stdout] --> netsim/src/worker.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn clear_active_host() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_active_host` [INFO] [stdout] --> netsim/src/worker.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn with_active_host(func: F) -> Option [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_active_process` [INFO] [stdout] --> netsim/src/worker.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn set_active_process(process: Process) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_active_process` [INFO] [stdout] --> netsim/src/worker.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn clear_active_process() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_active_thread` [INFO] [stdout] --> netsim/src/worker.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn set_active_thread(thread: Thread) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_active_thread` [INFO] [stdout] --> netsim/src/worker.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn clear_active_thread() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_round_end_time` [INFO] [stdout] --> netsim/src/worker.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn set_round_end_time(time: EmulatedTime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `round_end_time` [INFO] [stdout] --> netsim/src/worker.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn round_end_time() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_current_time` [INFO] [stdout] --> netsim/src/worker.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn set_current_time(time: EmulatedTime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear_current_time` [INFO] [stdout] --> netsim/src/worker.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn clear_current_time() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `current_time` [INFO] [stdout] --> netsim/src/worker.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn current_time() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_last_event_time` [INFO] [stdout] --> netsim/src/worker.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn set_last_event_time(time: EmulatedTime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_alive` [INFO] [stdout] --> netsim/src/worker.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn is_alive() -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_bootstrap_active` [INFO] [stdout] --> netsim/src/worker.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 145 | pub fn is_bootstrap_active() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `worker_id` [INFO] [stdout] --> netsim/src/worker.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn worker_id() -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `worker_pool` [INFO] [stdout] --> netsim/src/worker.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn worker_pool() -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `addr` [INFO] [stdout] --> netsim/src/net.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | const fn addr(a: u8, b: u8, c: u8, d: u8) -> Ipv4Addr { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `in_range` [INFO] [stdout] --> netsim/src/net.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn in_range(ip: Ipv4Addr, lower: Ipv4Addr, upper: Ipv4Addr) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_current_network` [INFO] [stdout] --> netsim/src/net.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn is_current_network(ip: Ipv4Addr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_private` [INFO] [stdout] --> netsim/src/net.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn is_private(ip: Ipv4Addr) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_shared` [INFO] [stdout] --> netsim/src/net.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | fn is_shared(ip: Ipv4Addr) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_link_local` [INFO] [stdout] --> netsim/src/net.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn is_link_local(ip: Ipv4Addr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_ietf_protocol_assigned` [INFO] [stdout] --> netsim/src/net.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn is_ietf_protocol_assigned(ip: Ipv4Addr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_test_net` [INFO] [stdout] --> netsim/src/net.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn is_test_net(ip: Ipv4Addr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_multicast` [INFO] [stdout] --> netsim/src/net.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn is_multicast(ip: Ipv4Addr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_reserved` [INFO] [stdout] --> netsim/src/net.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn is_reserved(ip: Ipv4Addr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_benchmark` [INFO] [stdout] --> netsim/src/net.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | fn is_benchmark(ip: Ipv4Addr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_broadcast` [INFO] [stdout] --> netsim/src/net.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | fn is_broadcast(ip: Ipv4Addr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_restricted` [INFO] [stdout] --> netsim/src/net.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 67 | pub(super) fn is_restricted(ip: Ipv4Addr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel [INFO] [stdout] --> netsim/src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(once_cell)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::num::::saturating_sub` that must be used [INFO] [stdout] --> netsim/src/net.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | self.remaining.saturating_sub(bytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this returns the result of the operation, without modifying the original [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::num::::saturating_add` that must be used [INFO] [stdout] --> netsim/src/net.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | self.remaining.saturating_add(self.refill); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this returns the result of the operation, without modifying the original [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 190 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0554`. [INFO] [stdout] [INFO] [stderr] error: could not compile `netsim` due to 2 previous errors; 190 warnings emitted [INFO] running `Command { std: "docker" "inspect" "19b80d91bd80b23acce1ee99c4b5274836b96e00bdae0e82c0d217faffe9fbf4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19b80d91bd80b23acce1ee99c4b5274836b96e00bdae0e82c0d217faffe9fbf4", kill_on_drop: false }` [INFO] [stdout] 19b80d91bd80b23acce1ee99c4b5274836b96e00bdae0e82c0d217faffe9fbf4