[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] testing Shikugawa/rena against try#c066bf6804adc55193b71afdff6a56922f4a8689+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_in_2025-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShikugawa%2Frena" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/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-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Shikugawa/rena on toolchain c066bf6804adc55193b71afdff6a56922f4a8689 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "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" "+c066bf6804adc55193b71afdff6a56922f4a8689" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 55016cc2bf173d4439bbeef367a5ec76428f1c77151e5bede9826f53f7a8d329 [INFO] running `Command { std: "docker" "start" "-a" "55016cc2bf173d4439bbeef367a5ec76428f1c77151e5bede9826f53f7a8d329", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55016cc2bf173d4439bbeef367a5ec76428f1c77151e5bede9826f53f7a8d329", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55016cc2bf173d4439bbeef367a5ec76428f1c77151e5bede9826f53f7a8d329", kill_on_drop: false }` [INFO] [stdout] 55016cc2bf173d4439bbeef367a5ec76428f1c77151e5bede9826f53f7a8d329 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] fbe1d465b81dbf6fa05126e0a58c7c53c872a73cf464751ceed9f9cc454f2f28 [INFO] running `Command { std: "docker" "start" "-a" "fbe1d465b81dbf6fa05126e0a58c7c53c872a73cf464751ceed9f9cc454f2f28", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling anyhow v1.0.53 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling nix v0.23.1 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling tokio v1.16.1 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling 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)]` 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: `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] = note: `#[warn(unused_variables)]` on by default [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: 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] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/datalink/tap.rs:39:25 [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: 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)]` on by default [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: 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)]` 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)]` 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 30.91s [INFO] running `Command { std: "docker" "inspect" "fbe1d465b81dbf6fa05126e0a58c7c53c872a73cf464751ceed9f9cc454f2f28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbe1d465b81dbf6fa05126e0a58c7c53c872a73cf464751ceed9f9cc454f2f28", kill_on_drop: false }` [INFO] [stdout] fbe1d465b81dbf6fa05126e0a58c7c53c872a73cf464751ceed9f9cc454f2f28 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 2f70386eefc176b406fc4e3f4c49b0338436be59bcd64cf70665e56967e08eea [INFO] running `Command { std: "docker" "start" "-a" "2f70386eefc176b406fc4e3f4c49b0338436be59bcd64cf70665e56967e08eea", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling anyhow v1.0.53 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling tracing-core v0.1.22 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling tower-layer v0.3.1 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling which v4.2.4 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling prost-build v0.9.0 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling crossbeam-channel v0.5.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.9 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling hdrhistogram v7.5.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling prost-derive v0.9.0 [INFO] [stderr] Compiling tracing-attributes v0.1.19 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling tokio v1.16.1 [INFO] [stderr] Compiling async-stream v0.3.2 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling prost v0.9.0 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling tracing v0.1.30 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling prost-types v0.9.0 [INFO] [stderr] Compiling tonic-build v0.6.2 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling console-api v0.1.2 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling tokio-io-timeout v1.2.0 [INFO] [stderr] Compiling tokio-util v0.7.0 [INFO] [stderr] Compiling tokio-stream v0.1.8 [INFO] [stderr] Compiling 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)]` 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] [stderr] Compiling h2 v0.3.11 [INFO] [stderr] Compiling tower v0.4.12 [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] = note: `#[warn(unused_variables)]` on by default [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: 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] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/datalink/tap.rs:39:25 [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: 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)]` on by default [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: 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)]` 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)]` 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] Compiling hyper v0.14.17 [INFO] [stderr] Compiling hyper-timeout v0.4.1 [INFO] [stderr] Compiling tonic v0.6.2 [INFO] [stderr] Compiling 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)]` 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)]` 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: `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] = note: `#[warn(unused_variables)]` on by default [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: 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] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/datalink/tap.rs:39:25 [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: 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)]` on by default [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: 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)]` 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)]` 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] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcDbmTRv/symbols.o" "<6 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libenv_logger-41afcabd3330d751.rlib,libtermcolor-811ad993a566b17a.rlib,libhumantime-d1d8eb802ffca79e.rlib,libstructopt-d1327470681988f4.rlib,liblazy_static-4b136fc9bfbd2c4b.rlib,libclap-488139351b27c5ac.rlib,libvec_map-f5624d319d58cb9d.rlib,libtextwrap-c924a3194d9436be.rlib,libunicode_width-2222409b5ba3ddc6.rlib,libstrsim-b8b77d7a062bc77b.rlib,libatty-df66278483dceb41.rlib,libansi_term-bdfff57b5fb49171.rlib,librena-b3d1457053e9f7a2.rlib,librand-f1beabc9cc60b1db.rlib,librand_chacha-0dd2ed14c9edd662.rlib,libppv_lite86-a9f3c9ee76597f1e.rlib,librand_core-12dc67969deefcc7.rlib,libgetrandom-993583dd1b1dae91.rlib,libfutures-8a3e19986402283c.rlib,libfutures_executor-49b1740260e635ad.rlib,libfutures_util-3f8f713815ec9fcf.rlib,libfutures_io-f6086bf99b597e19.rlib,libslab-93074f6ff5a0b7db.rlib,libfutures_channel-f07d39522fabac9e.rlib,libfutures_sink-4bad40136a985cca.rlib,libfutures_task-959022c35311190e.rlib,libpin_utils-b08f1197f0cdae19.rlib,libfutures_core-ed83b4ca5adcb0c0.rlib,libtokio-52082345d0102737.rlib,libsignal_hook_registry-8e5079e53fac4917.rlib,libnum_cpus-92c6ec8573710338.rlib,libonce_cell-6bb3d6b31615d1dd.rlib,libmio-807acffc649c2ea5.rlib,liblog-ac2d7cc7e3389574.rlib,libpin_project_lite-049930466ef9967f.rlib,libparking_lot-a1b2404dd2b0dc37.rlib,libparking_lot_core-c80eadb6d3aad309.rlib,libsmallvec-39c23b8b078c47c3.rlib,liblock_api-53fd7aa0b2f4601c.rlib,libscopeguard-73056285f12cb829.rlib,libinstant-e23fa3fb52ce1101.rlib,libregex-d5c369978972243e.rlib,libaho_corasick-35dda82c90652365.rlib,libmemchr-a2892755812de0fe.rlib,libregex_syntax-ae12054508fb30be.rlib,libnix-c70ec1ece272382d.rlib,libbitflags-e274cd04b58a060d.rlib,libmemoffset-59f11e032c31b987.rlib,libcfg_if-66d55f6b302e88c8.rlib,liblibc-21d424633d83d235.rlib,libanyhow-c3ec7216259bc6ae.rlib,libbytes-37e68ee094a72681.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustcDbmTRv/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/examples/tcp_local-b7d637b02dbf02a2" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-993583dd1b1dae91.rlib(getrandom-993583dd1b1dae91.getrandom.1c343c9ae3ffeb54-cgu.0.rcgu.o): in function `getrandom::util_libc::open_readonly': [INFO] [stdout] /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.5/src/util_libc.rs:110:(.text._ZN9getrandom9util_libc13open_readonly17h6f48c3a0e7db1b47E+0xb6): undefined reference to `open64' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rena` (example "tcp_local") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcUlpXlN/symbols.o" "<6 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libenv_logger-41afcabd3330d751.rlib,libtermcolor-811ad993a566b17a.rlib,libhumantime-d1d8eb802ffca79e.rlib,libstructopt-d1327470681988f4.rlib,liblazy_static-4b136fc9bfbd2c4b.rlib,libclap-488139351b27c5ac.rlib,libvec_map-f5624d319d58cb9d.rlib,libtextwrap-c924a3194d9436be.rlib,libunicode_width-2222409b5ba3ddc6.rlib,libstrsim-b8b77d7a062bc77b.rlib,libatty-df66278483dceb41.rlib,libansi_term-bdfff57b5fb49171.rlib,librena-b3d1457053e9f7a2.rlib,librand-f1beabc9cc60b1db.rlib,librand_chacha-0dd2ed14c9edd662.rlib,libppv_lite86-a9f3c9ee76597f1e.rlib,librand_core-12dc67969deefcc7.rlib,libgetrandom-993583dd1b1dae91.rlib,libfutures-8a3e19986402283c.rlib,libfutures_executor-49b1740260e635ad.rlib,libfutures_util-3f8f713815ec9fcf.rlib,libfutures_io-f6086bf99b597e19.rlib,libslab-93074f6ff5a0b7db.rlib,libfutures_channel-f07d39522fabac9e.rlib,libfutures_sink-4bad40136a985cca.rlib,libfutures_task-959022c35311190e.rlib,libpin_utils-b08f1197f0cdae19.rlib,libfutures_core-ed83b4ca5adcb0c0.rlib,libtokio-52082345d0102737.rlib,libsignal_hook_registry-8e5079e53fac4917.rlib,libnum_cpus-92c6ec8573710338.rlib,libonce_cell-6bb3d6b31615d1dd.rlib,libmio-807acffc649c2ea5.rlib,liblog-ac2d7cc7e3389574.rlib,libpin_project_lite-049930466ef9967f.rlib,libparking_lot-a1b2404dd2b0dc37.rlib,libparking_lot_core-c80eadb6d3aad309.rlib,libsmallvec-39c23b8b078c47c3.rlib,liblock_api-53fd7aa0b2f4601c.rlib,libscopeguard-73056285f12cb829.rlib,libinstant-e23fa3fb52ce1101.rlib,libregex-d5c369978972243e.rlib,libaho_corasick-35dda82c90652365.rlib,libmemchr-a2892755812de0fe.rlib,libregex_syntax-ae12054508fb30be.rlib,libnix-c70ec1ece272382d.rlib,libbitflags-e274cd04b58a060d.rlib,libmemoffset-59f11e032c31b987.rlib,libcfg_if-66d55f6b302e88c8.rlib,liblibc-21d424633d83d235.rlib,libanyhow-c3ec7216259bc6ae.rlib,libbytes-37e68ee094a72681.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustcUlpXlN/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/examples/tcp_local_large_body-2fff019e9e0c6308" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-993583dd1b1dae91.rlib(getrandom-993583dd1b1dae91.getrandom.1c343c9ae3ffeb54-cgu.0.rcgu.o): in function `getrandom::util_libc::open_readonly': [INFO] [stdout] /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.5/src/util_libc.rs:110:(.text._ZN9getrandom9util_libc13open_readonly17h6f48c3a0e7db1b47E+0xb6): undefined reference to `open64' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rena` (example "tcp_local_large_body") due to 1 previous error [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcSZVN9P/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libenv_logger-41afcabd3330d751.rlib,libtermcolor-811ad993a566b17a.rlib,libhumantime-d1d8eb802ffca79e.rlib,libstructopt-d1327470681988f4.rlib,liblazy_static-4b136fc9bfbd2c4b.rlib,libclap-488139351b27c5ac.rlib,libvec_map-f5624d319d58cb9d.rlib,libtextwrap-c924a3194d9436be.rlib,libunicode_width-2222409b5ba3ddc6.rlib,libstrsim-b8b77d7a062bc77b.rlib,libatty-df66278483dceb41.rlib,libansi_term-bdfff57b5fb49171.rlib,librena-b3d1457053e9f7a2.rlib,librand-f1beabc9cc60b1db.rlib,librand_chacha-0dd2ed14c9edd662.rlib,libppv_lite86-a9f3c9ee76597f1e.rlib,librand_core-12dc67969deefcc7.rlib,libgetrandom-993583dd1b1dae91.rlib,libfutures-8a3e19986402283c.rlib,libfutures_executor-49b1740260e635ad.rlib,libfutures_util-3f8f713815ec9fcf.rlib,libfutures_io-f6086bf99b597e19.rlib,libslab-93074f6ff5a0b7db.rlib,libfutures_channel-f07d39522fabac9e.rlib,libfutures_sink-4bad40136a985cca.rlib,libfutures_task-959022c35311190e.rlib,libpin_utils-b08f1197f0cdae19.rlib,libfutures_core-ed83b4ca5adcb0c0.rlib,libtokio-52082345d0102737.rlib,libsignal_hook_registry-8e5079e53fac4917.rlib,libnum_cpus-92c6ec8573710338.rlib,libonce_cell-6bb3d6b31615d1dd.rlib,libmio-807acffc649c2ea5.rlib,liblog-ac2d7cc7e3389574.rlib,libpin_project_lite-049930466ef9967f.rlib,libparking_lot-a1b2404dd2b0dc37.rlib,libparking_lot_core-c80eadb6d3aad309.rlib,libsmallvec-39c23b8b078c47c3.rlib,liblock_api-53fd7aa0b2f4601c.rlib,libscopeguard-73056285f12cb829.rlib,libinstant-e23fa3fb52ce1101.rlib,libbytes-37e68ee094a72681.rlib,libregex-d5c369978972243e.rlib,libaho_corasick-35dda82c90652365.rlib,libmemchr-a2892755812de0fe.rlib,libregex_syntax-ae12054508fb30be.rlib,libnix-c70ec1ece272382d.rlib,libbitflags-e274cd04b58a060d.rlib,libmemoffset-59f11e032c31b987.rlib,libcfg_if-66d55f6b302e88c8.rlib,liblibc-21d424633d83d235.rlib,libanyhow-c3ec7216259bc6ae.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustcSZVN9P/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/examples/ping-909faa3e8ea79e9b" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-993583dd1b1dae91.rlib(getrandom-993583dd1b1dae91.getrandom.1c343c9ae3ffeb54-cgu.0.rcgu.o): in function `getrandom::util_libc::open_readonly': [INFO] [stdout] /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.5/src/util_libc.rs:110:(.text._ZN9getrandom9util_libc13open_readonly17h6f48c3a0e7db1b47E+0xb6): undefined reference to `open64' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rena` (example "ping") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "2f70386eefc176b406fc4e3f4c49b0338436be59bcd64cf70665e56967e08eea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f70386eefc176b406fc4e3f4c49b0338436be59bcd64cf70665e56967e08eea", kill_on_drop: false }` [INFO] [stdout] 2f70386eefc176b406fc4e3f4c49b0338436be59bcd64cf70665e56967e08eea