[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#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShikugawa%2Frena" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-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-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Shikugawa/rena on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tower-layer v0.3.1 [INFO] [stderr] Downloaded async-stream-impl v0.3.2 [INFO] [stderr] Downloaded tracing-attributes v0.1.19 [INFO] [stderr] Downloaded fixedbitset v0.4.1 [INFO] [stderr] Downloaded console-subscriber v0.1.3 [INFO] [stderr] Downloaded prost-types v0.9.0 [INFO] [stderr] Downloaded crossbeam-utils v0.8.7 [INFO] [stderr] Downloaded tonic v0.6.2 [INFO] [stderr] Downloaded crossbeam-channel v0.5.2 [INFO] [stderr] Downloaded tower v0.4.12 [INFO] [stderr] Downloaded anyhow v1.0.53 [INFO] [stderr] Downloaded tokio-util v0.7.0 [INFO] [stderr] Downloaded tracing-subscriber v0.3.9 [INFO] [stderr] Downloaded petgraph v0.6.0 [INFO] [stderr] Downloaded async-trait v0.1.52 [INFO] [stderr] Downloaded which v4.2.4 [INFO] [stderr] Downloaded tonic-build v0.6.2 [INFO] [stderr] Downloaded console-api v0.1.2 [INFO] [stderr] Downloaded async-stream v0.3.2 [INFO] [stderr] Downloaded tokio-io-timeout v1.2.0 [INFO] [stderr] Downloaded hyper-timeout v0.4.1 [INFO] [stderr] Downloaded tokio v1.16.1 [INFO] [stderr] Downloaded libc v0.2.117 [INFO] [stderr] Downloaded prost-build v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a00bd4b6c17300907e72a5d79e35ccaae543639b1f16d3a2ebdc073eae8d08a4 [INFO] running `Command { std: "docker" "start" "-a" "a00bd4b6c17300907e72a5d79e35ccaae543639b1f16d3a2ebdc073eae8d08a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a00bd4b6c17300907e72a5d79e35ccaae543639b1f16d3a2ebdc073eae8d08a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a00bd4b6c17300907e72a5d79e35ccaae543639b1f16d3a2ebdc073eae8d08a4", kill_on_drop: false }` [INFO] [stdout] a00bd4b6c17300907e72a5d79e35ccaae543639b1f16d3a2ebdc073eae8d08a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 891337156f9702496b16530b2a5d4dabbd24da6688c3a6bf91176d8d21174d91 [INFO] running `Command { std: "docker" "start" "-a" "891337156f9702496b16530b2a5d4dabbd24da6688c3a6bf91176d8d21174d91", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling anyhow v1.0.53 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling nix v0.23.1 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling env_logger v0.9.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 proc-macro-error v1.0.4 [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-util v0.3.21 [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 16.60s [INFO] running `Command { std: "docker" "inspect" "891337156f9702496b16530b2a5d4dabbd24da6688c3a6bf91176d8d21174d91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "891337156f9702496b16530b2a5d4dabbd24da6688c3a6bf91176d8d21174d91", kill_on_drop: false }` [INFO] [stdout] 891337156f9702496b16530b2a5d4dabbd24da6688c3a6bf91176d8d21174d91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 6f2f9b305c59368644ede518cbe18fb0954958511cda535acd82a850b43af7c6 [INFO] running `Command { std: "docker" "start" "-a" "6f2f9b305c59368644ede518cbe18fb0954958511cda535acd82a850b43af7c6", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling anyhow v1.0.53 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling libc v0.2.117 [INFO] [stderr] Compiling tracing-core v0.1.22 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling fastrand v1.7.0 [INFO] [stderr] Compiling httparse v1.6.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling fixedbitset v0.4.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling tower-layer v0.3.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling petgraph v0.6.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.9 [INFO] [stderr] Compiling which v4.2.4 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.2 [INFO] [stderr] Compiling prost-build v0.9.0 [INFO] [stderr] Compiling regex v1.5.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 serde_derive v1.0.136 [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 pin-project v1.0.10 [INFO] [stderr] Compiling tracing v0.1.30 [INFO] [stderr] Compiling tracing-futures v0.2.5 [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 prost-types v0.9.0 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling tonic-build v0.6.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 futures-executor v0.3.21 [INFO] [stderr] Compiling console-api v0.1.2 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling rena v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling tower v0.4.12 [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] [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] [stderr] Compiling serde_json v1.0.79 [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 51.11s [INFO] running `Command { std: "docker" "inspect" "6f2f9b305c59368644ede518cbe18fb0954958511cda535acd82a850b43af7c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f2f9b305c59368644ede518cbe18fb0954958511cda535acd82a850b43af7c6", kill_on_drop: false }` [INFO] [stdout] 6f2f9b305c59368644ede518cbe18fb0954958511cda535acd82a850b43af7c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 54859bd8a3a1a417c24dcb1a490055d0832d223f83f36bfc609b230c57e7f2fa [INFO] running `Command { std: "docker" "start" "-a" "54859bd8a3a1a417c24dcb1a490055d0832d223f83f36bfc609b230c57e7f2fa", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `self` [INFO] [stderr] --> src/layers/icmp_layer.rs:2:27 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::frames::icmp::{self, IcmpFrame, IcmpType}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `self` [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:10:25 [INFO] [stderr] | [INFO] [stderr] 10 | use super::icmp_layer::{self, IcmpLayer}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `timeout` [INFO] [stderr] --> src/layers/icmp_layer.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 45 | timeout: Option, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeout` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `timeout` [INFO] [stderr] --> src/layers/tcp_layer.rs:201:9 [INFO] [stderr] | [INFO] [stderr] 201 | timeout: Option, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeout` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `buf` [INFO] [stderr] --> src/datalink/tap.rs:35:20 [INFO] [stderr] | [INFO] [stderr] 35 | fn read(&self, buf: &mut Buffer) -> isize { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `buf` [INFO] [stderr] --> src/datalink/tap.rs:39:25 [INFO] [stderr] | [INFO] [stderr] 39 | fn write(&self, mut buf: BytesMut) -> DatalinkWriteStatus { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/datalink/tap.rs:39:21 [INFO] [stderr] | [INFO] [stderr] 39 | fn write(&self, mut buf: BytesMut) -> DatalinkWriteStatus { [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `val` [INFO] [stderr] --> src/frames/tcp.rs:160:21 [INFO] [stderr] | [INFO] [stderr] 160 | if let Some(val) = verify_checksum(&raw_buf, header_length as usize) { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stderr] [INFO] [stderr] warning: fields `device`, `macaddr`, and `ipaddr` are never read [INFO] [stderr] --> src/datalink/tap.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 27 | pub struct TapDevice { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 28 | fd: AsyncFd, [INFO] [stderr] 29 | device: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 30 | macaddr: MacAddr, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 31 | ipaddr: Ipv4Addr, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: methods `link_up` and `add_ipaddress` are never used [INFO] [stderr] --> src/datalink/tap.rs:125:8 [INFO] [stderr] | [INFO] [stderr] 48 | impl TapDevice { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 125 | fn link_up(&self) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 136 | fn add_ipaddress(&self, addr: &str) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `options` is never read [INFO] [stderr] --> src/frames/ipv4.rs:189:5 [INFO] [stderr] | [INFO] [stderr] 169 | pub struct Ipv4Frame { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 189 | options: Option, // if ihl > 5 [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Ipv4Frame` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `options` is never read [INFO] [stderr] --> src/frames/tcp.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 25 | pub struct TcpFrame { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 35 | options: Option, // if offset > 5 [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TcpFrame` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/layers/ether_layer.rs:40:28 [INFO] [stderr] | [INFO] [stderr] 40 | let res = unsafe { ARP_TABLE.lookup(dipaddr) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/ether_layer.rs:52:44 [INFO] [stderr] | [INFO] [stderr] 52 | if let Err(err) = unsafe { ARP_TABLE.add(dipaddr, smacaddr) } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:192:18 [INFO] [stderr] | [INFO] [stderr] 192 | unsafe { THREAD_LOCAL_STORAGE.get_ethernet(thread_id) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:196:18 [INFO] [stderr] | [INFO] [stderr] 196 | unsafe { THREAD_LOCAL_STORAGE.get_arp(thread_id) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:200:18 [INFO] [stderr] | [INFO] [stderr] 200 | unsafe { THREAD_LOCAL_STORAGE.get_ipv4(thread_id) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:204:18 [INFO] [stderr] | [INFO] [stderr] 204 | unsafe { THREAD_LOCAL_STORAGE.get_tcp(thread_id) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:208:18 [INFO] [stderr] | [INFO] [stderr] 208 | unsafe { THREAD_LOCAL_STORAGE.get_icmp(thread_id) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:218:17 [INFO] [stderr] | [INFO] [stderr] 218 | if unsafe { THREAD_LOCAL_STORAGE.is_thread_layer_exist(thread_id) } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:225:9 [INFO] [stderr] | [INFO] [stderr] 225 | / THREAD_LOCAL_STORAGE.set_ethernet( [INFO] [stderr] 226 | | thread_id, [INFO] [stderr] 227 | | EthernetLayer::new(smacaddr, event_handler, storage, thread_id), [INFO] [stderr] 228 | | ); [INFO] [stderr] | |_________^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:229:9 [INFO] [stderr] | [INFO] [stderr] 229 | / THREAD_LOCAL_STORAGE.set_arp( [INFO] [stderr] 230 | | thread_id, [INFO] [stderr] 231 | | ArpLayer::new(smacaddr, sipaddr, storage, thread_id), [INFO] [stderr] 232 | | ); [INFO] [stderr] | |_________^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:233:9 [INFO] [stderr] | [INFO] [stderr] 233 | THREAD_LOCAL_STORAGE.set_ipv4(thread_id, Ipv4Layer::new(sipaddr, storage, thread_id)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:234:9 [INFO] [stderr] | [INFO] [stderr] 234 | THREAD_LOCAL_STORAGE.set_tcp(thread_id, TcpLayer::new(storage, sipaddr, thread_id)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:246:17 [INFO] [stderr] | [INFO] [stderr] 246 | if unsafe { THREAD_LOCAL_STORAGE.is_thread_layer_exist(thread_id) } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:253:9 [INFO] [stderr] | [INFO] [stderr] 253 | / THREAD_LOCAL_STORAGE.set_ethernet( [INFO] [stderr] 254 | | thread_id, [INFO] [stderr] 255 | | EthernetLayer::new(smacaddr, event_handler, storage, thread_id), [INFO] [stderr] 256 | | ); [INFO] [stderr] | |_________^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:257:9 [INFO] [stderr] | [INFO] [stderr] 257 | / THREAD_LOCAL_STORAGE.set_arp( [INFO] [stderr] 258 | | thread_id, [INFO] [stderr] 259 | | ArpLayer::new(smacaddr, sipaddr, storage, thread_id), [INFO] [stderr] 260 | | ); [INFO] [stderr] | |_________^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:261:9 [INFO] [stderr] | [INFO] [stderr] 261 | THREAD_LOCAL_STORAGE.set_ipv4(thread_id, Ipv4Layer::new(sipaddr, storage, thread_id)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/layers/thread_local_layer_storage.rs:262:9 [INFO] [stderr] | [INFO] [stderr] 262 | THREAD_LOCAL_STORAGE.set_icmp(thread_id, IcmpLayer::new(storage, thread_id)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: `rena` (lib) generated 29 warnings (run `cargo fix --lib -p rena` to apply 3 suggestions) [INFO] [stderr] warning: unused import: `tokio::time::Duration` [INFO] [stderr] --> examples/pcap.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use tokio::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rena` (lib test) generated 29 warnings (29 duplicates) [INFO] [stderr] warning: `rena` (example "pcap") generated 1 warning (run `cargo fix --example "pcap"` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.42s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/rena-423852fe4cbafbfb) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "54859bd8a3a1a417c24dcb1a490055d0832d223f83f36bfc609b230c57e7f2fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54859bd8a3a1a417c24dcb1a490055d0832d223f83f36bfc609b230c57e7f2fa", kill_on_drop: false }` [INFO] [stdout] 54859bd8a3a1a417c24dcb1a490055d0832d223f83f36bfc609b230c57e7f2fa