[INFO] cloning repository https://github.com/Shikugawa/rena [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Shikugawa/rena" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShikugawa%2Frena", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShikugawa%2Frena'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6c698c9e8e73334d1e28f7df380d08302f1ddb2a [INFO] checking Shikugawa/rena against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShikugawa%2Frena" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Shikugawa/rena [INFO] removed 1 missing examples [INFO] finished tweaking git repo https://github.com/Shikugawa/rena [INFO] tweaked toml for git repo https://github.com/Shikugawa/rena written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Shikugawa/rena on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Shikugawa/rena 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tonic-build v0.6.2 [INFO] [stderr] Downloaded which v4.2.4 [INFO] [stderr] Downloaded console-api v0.1.2 [INFO] [stderr] Downloaded anyhow v1.0.53 [INFO] [stderr] Downloaded console-subscriber v0.1.3 [INFO] [stderr] Downloaded tonic v0.6.2 [INFO] [stderr] Downloaded tracing v0.1.30 [INFO] [stderr] Downloaded h2 v0.3.11 [INFO] [stderr] Downloaded tower v0.4.12 [INFO] [stderr] Downloaded async-trait v0.1.52 [INFO] [stderr] Downloaded hyper v0.14.17 [INFO] [stderr] Downloaded hdrhistogram v7.5.0 [INFO] [stderr] Downloaded tokio v1.16.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72f1a3fe1d0b128f01b2a4629ed944370ccba2f714652bf2af2280a0936966dd [INFO] running `Command { std: "docker" "start" "-a" "72f1a3fe1d0b128f01b2a4629ed944370ccba2f714652bf2af2280a0936966dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72f1a3fe1d0b128f01b2a4629ed944370ccba2f714652bf2af2280a0936966dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72f1a3fe1d0b128f01b2a4629ed944370ccba2f714652bf2af2280a0936966dd", kill_on_drop: false }` [INFO] [stdout] 72f1a3fe1d0b128f01b2a4629ed944370ccba2f714652bf2af2280a0936966dd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c8b910e3261bfbbde0506537f2d4bd464a1ac0163709811616f6a58ddb27e89 [INFO] running `Command { std: "docker" "start" "-a" "9c8b910e3261bfbbde0506537f2d4bd464a1ac0163709811616f6a58ddb27e89", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling anyhow v1.0.53 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling tracing-attributes v0.1.19 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling which v4.2.4 [INFO] [stderr] Checking http v0.2.6 [INFO] [stderr] Compiling prost-build v0.9.0 [INFO] [stderr] Checking parking_lot_core v0.8.5 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking getrandom v0.2.5 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling prost-derive v0.9.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Checking tracing v0.1.30 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Checking tokio v1.16.1 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling prost v0.9.0 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Compiling prost-types v0.9.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Checking tower-layer v0.3.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking async-stream v0.3.2 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Compiling tonic-build v0.6.2 [INFO] [stderr] Checking flate2 v1.0.22 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking tokio-util v0.7.0 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Checking h2 v0.3.11 [INFO] [stderr] Compiling console-api v0.1.2 [INFO] [stderr] Checking tower v0.4.12 [INFO] [stderr] Checking tokio-stream v0.1.8 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking hdrhistogram v7.5.0 [INFO] [stderr] Checking crossbeam-channel v0.5.2 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking tracing-subscriber v0.3.9 [INFO] [stderr] Checking nix v0.23.1 [INFO] [stderr] Checking serde v1.0.136 [INFO] [stderr] Checking rena v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/layers/icmp_layer.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::frames::icmp::{self, IcmpFrame, IcmpType}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | use super::icmp_layer::{self, IcmpLayer}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/datalink/tap.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | fn read(&self, buf: &mut Buffer) -> isize { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/datalink/tap.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | fn write(&self, mut buf: BytesMut) -> DatalinkWriteStatus { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/datalink/tap.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | fn write(&self, mut buf: BytesMut) -> DatalinkWriteStatus { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/frames/tcp.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | if let Some(val) = verify_checksum(&raw_buf, header_length as usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timeout` [INFO] [stdout] --> src/layers/icmp_layer.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | timeout: Option, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeout` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking hyper v0.14.17 [INFO] [stdout] warning: unused variable: `timeout` [INFO] [stdout] --> src/layers/tcp_layer.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | timeout: Option, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `device`, `macaddr`, and `ipaddr` are never read [INFO] [stdout] --> src/datalink/tap.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct TapDevice { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 28 | fd: AsyncFd, [INFO] [stdout] 29 | device: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 30 | macaddr: MacAddr, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 31 | ipaddr: Ipv4Addr, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `link_up` and `add_ipaddress` are never used [INFO] [stdout] --> src/datalink/tap.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl TapDevice { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | fn link_up(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn add_ipaddress(&self, addr: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `options` is never read [INFO] [stdout] --> src/frames/ipv4.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 169 | pub struct Ipv4Frame { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 189 | options: Option, // if ihl > 5 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ipv4Frame` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `options` is never read [INFO] [stdout] --> src/frames/tcp.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct TcpFrame { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | options: Option, // if offset > 5 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TcpFrame` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/layers/ether_layer.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 40 | let res = unsafe { ARP_TABLE.lookup(dipaddr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/ether_layer.rs:52:44 [INFO] [stdout] | [INFO] [stdout] 52 | if let Err(err) = unsafe { ARP_TABLE.add(dipaddr, smacaddr) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:192:18 [INFO] [stdout] | [INFO] [stdout] 192 | unsafe { THREAD_LOCAL_STORAGE.get_ethernet(thread_id) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:196:18 [INFO] [stdout] | [INFO] [stdout] 196 | unsafe { THREAD_LOCAL_STORAGE.get_arp(thread_id) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:200:18 [INFO] [stdout] | [INFO] [stdout] 200 | unsafe { THREAD_LOCAL_STORAGE.get_ipv4(thread_id) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:204:18 [INFO] [stdout] | [INFO] [stdout] 204 | unsafe { THREAD_LOCAL_STORAGE.get_tcp(thread_id) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:208:18 [INFO] [stdout] | [INFO] [stdout] 208 | unsafe { THREAD_LOCAL_STORAGE.get_icmp(thread_id) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:218:17 [INFO] [stdout] | [INFO] [stdout] 218 | if unsafe { THREAD_LOCAL_STORAGE.is_thread_layer_exist(thread_id) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | / THREAD_LOCAL_STORAGE.set_ethernet( [INFO] [stdout] 226 | | thread_id, [INFO] [stdout] 227 | | EthernetLayer::new(smacaddr, event_handler, storage, thread_id), [INFO] [stdout] 228 | | ); [INFO] [stdout] | |_________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | / THREAD_LOCAL_STORAGE.set_arp( [INFO] [stdout] 230 | | thread_id, [INFO] [stdout] 231 | | ArpLayer::new(smacaddr, sipaddr, storage, thread_id), [INFO] [stdout] 232 | | ); [INFO] [stdout] | |_________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | THREAD_LOCAL_STORAGE.set_ipv4(thread_id, Ipv4Layer::new(sipaddr, storage, thread_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | THREAD_LOCAL_STORAGE.set_tcp(thread_id, TcpLayer::new(storage, sipaddr, thread_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:246:17 [INFO] [stdout] | [INFO] [stdout] 246 | if unsafe { THREAD_LOCAL_STORAGE.is_thread_layer_exist(thread_id) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | / THREAD_LOCAL_STORAGE.set_ethernet( [INFO] [stdout] 254 | | thread_id, [INFO] [stdout] 255 | | EthernetLayer::new(smacaddr, event_handler, storage, thread_id), [INFO] [stdout] 256 | | ); [INFO] [stdout] | |_________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | / THREAD_LOCAL_STORAGE.set_arp( [INFO] [stdout] 258 | | thread_id, [INFO] [stdout] 259 | | ArpLayer::new(smacaddr, sipaddr, storage, thread_id), [INFO] [stdout] 260 | | ); [INFO] [stdout] | |_________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | THREAD_LOCAL_STORAGE.set_ipv4(thread_id, Ipv4Layer::new(sipaddr, storage, thread_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | THREAD_LOCAL_STORAGE.set_icmp(thread_id, IcmpLayer::new(storage, thread_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking tonic v0.6.2 [INFO] [stderr] Checking console-subscriber v0.1.3 [INFO] [stdout] warning: unused import: `tokio::time::Duration` [INFO] [stdout] --> examples/pcap.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/layers/icmp_layer.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::frames::icmp::{self, IcmpFrame, IcmpType}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | use super::icmp_layer::{self, IcmpLayer}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/datalink/tap.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | fn read(&self, buf: &mut Buffer) -> isize { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/datalink/tap.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | fn write(&self, mut buf: BytesMut) -> DatalinkWriteStatus { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/datalink/tap.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | fn write(&self, mut buf: BytesMut) -> DatalinkWriteStatus { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/frames/tcp.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | if let Some(val) = verify_checksum(&raw_buf, header_length as usize) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timeout` [INFO] [stdout] --> src/layers/icmp_layer.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | timeout: Option, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timeout` [INFO] [stdout] --> src/layers/tcp_layer.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | timeout: Option, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `device`, `macaddr`, and `ipaddr` are never read [INFO] [stdout] --> src/datalink/tap.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct TapDevice { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 28 | fd: AsyncFd, [INFO] [stdout] 29 | device: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 30 | macaddr: MacAddr, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 31 | ipaddr: Ipv4Addr, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `link_up` and `add_ipaddress` are never used [INFO] [stdout] --> src/datalink/tap.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl TapDevice { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | fn link_up(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | fn add_ipaddress(&self, addr: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `options` is never read [INFO] [stdout] --> src/frames/ipv4.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 169 | pub struct Ipv4Frame { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 189 | options: Option, // if ihl > 5 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ipv4Frame` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `options` is never read [INFO] [stdout] --> src/frames/tcp.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct TcpFrame { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | options: Option, // if offset > 5 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TcpFrame` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/layers/ether_layer.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 40 | let res = unsafe { ARP_TABLE.lookup(dipaddr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/ether_layer.rs:52:44 [INFO] [stdout] | [INFO] [stdout] 52 | if let Err(err) = unsafe { ARP_TABLE.add(dipaddr, smacaddr) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:192:18 [INFO] [stdout] | [INFO] [stdout] 192 | unsafe { THREAD_LOCAL_STORAGE.get_ethernet(thread_id) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:196:18 [INFO] [stdout] | [INFO] [stdout] 196 | unsafe { THREAD_LOCAL_STORAGE.get_arp(thread_id) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:200:18 [INFO] [stdout] | [INFO] [stdout] 200 | unsafe { THREAD_LOCAL_STORAGE.get_ipv4(thread_id) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:204:18 [INFO] [stdout] | [INFO] [stdout] 204 | unsafe { THREAD_LOCAL_STORAGE.get_tcp(thread_id) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:208:18 [INFO] [stdout] | [INFO] [stdout] 208 | unsafe { THREAD_LOCAL_STORAGE.get_icmp(thread_id) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:218:17 [INFO] [stdout] | [INFO] [stdout] 218 | if unsafe { THREAD_LOCAL_STORAGE.is_thread_layer_exist(thread_id) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | / THREAD_LOCAL_STORAGE.set_ethernet( [INFO] [stdout] 226 | | thread_id, [INFO] [stdout] 227 | | EthernetLayer::new(smacaddr, event_handler, storage, thread_id), [INFO] [stdout] 228 | | ); [INFO] [stdout] | |_________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | / THREAD_LOCAL_STORAGE.set_arp( [INFO] [stdout] 230 | | thread_id, [INFO] [stdout] 231 | | ArpLayer::new(smacaddr, sipaddr, storage, thread_id), [INFO] [stdout] 232 | | ); [INFO] [stdout] | |_________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:233:9 [INFO] [stdout] | [INFO] [stdout] 233 | THREAD_LOCAL_STORAGE.set_ipv4(thread_id, Ipv4Layer::new(sipaddr, storage, thread_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | THREAD_LOCAL_STORAGE.set_tcp(thread_id, TcpLayer::new(storage, sipaddr, thread_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:246:17 [INFO] [stdout] | [INFO] [stdout] 246 | if unsafe { THREAD_LOCAL_STORAGE.is_thread_layer_exist(thread_id) } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | / THREAD_LOCAL_STORAGE.set_ethernet( [INFO] [stdout] 254 | | thread_id, [INFO] [stdout] 255 | | EthernetLayer::new(smacaddr, event_handler, storage, thread_id), [INFO] [stdout] 256 | | ); [INFO] [stdout] | |_________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | / THREAD_LOCAL_STORAGE.set_arp( [INFO] [stdout] 258 | | thread_id, [INFO] [stdout] 259 | | ArpLayer::new(smacaddr, sipaddr, storage, thread_id), [INFO] [stdout] 260 | | ); [INFO] [stdout] | |_________^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | THREAD_LOCAL_STORAGE.set_ipv4(thread_id, Ipv4Layer::new(sipaddr, storage, thread_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/layers/thread_local_layer_storage.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | THREAD_LOCAL_STORAGE.set_icmp(thread_id, IcmpLayer::new(storage, thread_id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 14s [INFO] running `Command { std: "docker" "inspect" "9c8b910e3261bfbbde0506537f2d4bd464a1ac0163709811616f6a58ddb27e89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c8b910e3261bfbbde0506537f2d4bd464a1ac0163709811616f6a58ddb27e89", kill_on_drop: false }` [INFO] [stdout] 9c8b910e3261bfbbde0506537f2d4bd464a1ac0163709811616f6a58ddb27e89