[INFO] fetching crate nf 0.1.0... [INFO] testing nf-0.1.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate nf 0.1.0 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate nf 0.1.0 [INFO] finished tweaking crates.io crate nf 0.1.0 [INFO] tweaked toml for crates.io crate nf 0.1.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nf 0.1.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate nf 0.1.0 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bbb00b930d05290446be3924c0b535b20efc4b59cf022108e78dc8c0e48ebfbc [INFO] running `Command { std: "docker" "start" "-a" "bbb00b930d05290446be3924c0b535b20efc4b59cf022108e78dc8c0e48ebfbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bbb00b930d05290446be3924c0b535b20efc4b59cf022108e78dc8c0e48ebfbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbb00b930d05290446be3924c0b535b20efc4b59cf022108e78dc8c0e48ebfbc", kill_on_drop: false }` [INFO] [stdout] bbb00b930d05290446be3924c0b535b20efc4b59cf022108e78dc8c0e48ebfbc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d347a3bad9b958845d3f57c3d5a798fe583bf408165244e4554a672b9ddbd170 [INFO] running `Command { std: "docker" "start" "-a" "d347a3bad9b958845d3f57c3d5a798fe583bf408165244e4554a672b9ddbd170", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling nf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mnl/attr.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 365 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 365 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stdout] 366 | fprintf(fd, tp!("| %.010u |\t| message length |\n"), self.len); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 369 | tp!("| %.05u | %c%c%c%c |\t| type | flags |\n"), [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 392 | fprintf(fd, tp!("| %.010u |\t| sequence number|\n"), self.seq); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 393 | fprintf(fd, tp!("| %.010u |\t| port ID |\n"), self.pid); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 394 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 407 | tp!("|%c[%d;%dm%.5u%c[%dm|%c[%d;%dm%c%c%c[%dm|%c[%d;%dm%.5u%c[%dm|\t"), [INFO] [stdout] | ---------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:447:9 [INFO] [stdout] | [INFO] [stdout] 447 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 450 | tp!("|%.5u|%c%c|%.5u|\t"), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/mnl/nlmsg.rs:477:31 [INFO] [stdout] | [INFO] [stdout] 477 | let colorize = if let Ok(fdnum) = fileno(fd).try_into() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 500 | tp!("| %.2x %.2x %.2x %.2x |\t"), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 506 | fprintf(fd, tp!("| |\n")); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 512 | tp!("| %.2x %.2x %.2x %.2x |\t"), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 518 | fprintf(fd, tp!("| extra header |\n")); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 526 | fprintf(fd, tp!("|len |flags| type|\n")); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 537 | tp!("| %.2x %.2x %.2x %.2x |\t"), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 543 | fprintf(fd, tp!("| data |")); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 552 | tp!("\t %c %c %c %c\n"), [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 561 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mnl/nlmsg.rs:574:9 [INFO] [stdout] | [INFO] [stdout] 574 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mnl/nlmsg.rs:573:13 [INFO] [stdout] | [INFO] [stdout] 573 | let mut remaining = len; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.71s [INFO] running `Command { std: "docker" "inspect" "d347a3bad9b958845d3f57c3d5a798fe583bf408165244e4554a672b9ddbd170", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d347a3bad9b958845d3f57c3d5a798fe583bf408165244e4554a672b9ddbd170", kill_on_drop: false }` [INFO] [stdout] d347a3bad9b958845d3f57c3d5a798fe583bf408165244e4554a672b9ddbd170 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 37b5a400a551eeb0f518ca4cc3da4fc04d7077bc0c505d6614825acabd93a99a [INFO] running `Command { std: "docker" "start" "-a" "37b5a400a551eeb0f518ca4cc3da4fc04d7077bc0c505d6614825acabd93a99a", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mnl/attr.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 365 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 365 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stdout] 366 | fprintf(fd, tp!("| %.010u |\t| message length |\n"), self.len); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 369 | tp!("| %.05u | %c%c%c%c |\t| type | flags |\n"), [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 392 | fprintf(fd, tp!("| %.010u |\t| sequence number|\n"), self.seq); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 393 | fprintf(fd, tp!("| %.010u |\t| port ID |\n"), self.pid); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 394 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 407 | tp!("|%c[%d;%dm%.5u%c[%dm|%c[%d;%dm%c%c%c[%dm|%c[%d;%dm%.5u%c[%dm|\t"), [INFO] [stdout] | ---------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:447:9 [INFO] [stdout] | [INFO] [stdout] 447 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 450 | tp!("|%.5u|%c%c|%.5u|\t"), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/mnl/nlmsg.rs:477:31 [INFO] [stdout] | [INFO] [stdout] 477 | let colorize = if let Ok(fdnum) = fileno(fd).try_into() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 500 | tp!("| %.2x %.2x %.2x %.2x |\t"), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 506 | fprintf(fd, tp!("| |\n")); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 512 | tp!("| %.2x %.2x %.2x %.2x |\t"), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 518 | fprintf(fd, tp!("| extra header |\n")); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 526 | fprintf(fd, tp!("|len |flags| type|\n")); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 537 | tp!("| %.2x %.2x %.2x %.2x |\t"), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling nf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 543 | fprintf(fd, tp!("| data |")); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 552 | tp!("\t %c %c %c %c\n"), [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 561 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mnl/nlmsg.rs:574:9 [INFO] [stdout] | [INFO] [stdout] 574 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mnl/nlmsg.rs:573:13 [INFO] [stdout] | [INFO] [stdout] 573 | let mut remaining = len; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mnl/attr.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 365 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] 365 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stdout] 366 | fprintf(fd, tp!("| %.010u |\t| message length |\n"), self.len); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 369 | tp!("| %.05u | %c%c%c%c |\t| type | flags |\n"), [INFO] [stdout] | ------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 392 | fprintf(fd, tp!("| %.010u |\t| sequence number|\n"), self.seq); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 393 | fprintf(fd, tp!("| %.010u |\t| port ID |\n"), self.pid); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 364 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 394 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 407 | tp!("|%c[%d;%dm%.5u%c[%dm|%c[%d;%dm%c%c%c[%dm|%c[%d;%dm%.5u%c[%dm|\t"), [INFO] [stdout] | ---------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:447:9 [INFO] [stdout] | [INFO] [stdout] 447 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 450 | tp!("|%.5u|%c%c|%.5u|\t"), [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: irrefutable `if let` pattern [INFO] [stdout] --> src/mnl/nlmsg.rs:477:31 [INFO] [stdout] | [INFO] [stdout] 477 | let colorize = if let Ok(fdnum) = fileno(fd).try_into() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this pattern will always match, so the `if let` is useless [INFO] [stdout] = help: consider replacing the `if let` with a `let` [INFO] [stdout] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 500 | tp!("| %.2x %.2x %.2x %.2x |\t"), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 506 | fprintf(fd, tp!("| |\n")); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 512 | tp!("| %.2x %.2x %.2x %.2x |\t"), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 518 | fprintf(fd, tp!("| extra header |\n")); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 526 | fprintf(fd, tp!("|len |flags| type|\n")); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 537 | tp!("| %.2x %.2x %.2x %.2x |\t"), [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 543 | fprintf(fd, tp!("| data |")); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 552 | tp!("\t %c %c %c %c\n"), [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/lib.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 561 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mnl/nlmsg.rs:574:9 [INFO] [stdout] | [INFO] [stdout] 574 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/mnl/nlmsg.rs:573:13 [INFO] [stdout] | [INFO] [stdout] 573 | let mut remaining = len; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.42s [INFO] running `Command { std: "docker" "inspect" "37b5a400a551eeb0f518ca4cc3da4fc04d7077bc0c505d6614825acabd93a99a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37b5a400a551eeb0f518ca4cc3da4fc04d7077bc0c505d6614825acabd93a99a", kill_on_drop: false }` [INFO] [stdout] 37b5a400a551eeb0f518ca4cc3da4fc04d7077bc0c505d6614825acabd93a99a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 592b31a5add18944367dd5803e5b694252dd2ae67d3f51c11b738ee6122eafc3 [INFO] running `Command { std: "docker" "start" "-a" "592b31a5add18944367dd5803e5b694252dd2ae67d3f51c11b738ee6122eafc3", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/mnl/attr.rs:274:9 [INFO] [stderr] | [INFO] [stderr] 274 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stderr] | [INFO] [stderr] 364 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] 365 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stderr] | --------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stderr] | [INFO] [stderr] 364 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] 365 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stderr] 366 | fprintf(fd, tp!("| %.010u |\t| message length |\n"), self.len); [INFO] [stderr] | ----------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stderr] | [INFO] [stderr] 364 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 369 | tp!("| %.05u | %c%c%c%c |\t| type | flags |\n"), [INFO] [stderr] | ------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stderr] | [INFO] [stderr] 364 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 392 | fprintf(fd, tp!("| %.010u |\t| sequence number|\n"), self.seq); [INFO] [stderr] | ----------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stderr] | [INFO] [stderr] 364 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 393 | fprintf(fd, tp!("| %.010u |\t| port ID |\n"), self.pid); [INFO] [stderr] | ----------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:364:9 [INFO] [stderr] | [INFO] [stderr] 364 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 394 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stderr] | --------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:404:9 [INFO] [stderr] | [INFO] [stderr] 404 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 407 | tp!("|%c[%d;%dm%.5u%c[%dm|%c[%d;%dm%c%c%c[%dm|%c[%d;%dm%.5u%c[%dm|\t"), [INFO] [stderr] | ---------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:447:9 [INFO] [stderr] | [INFO] [stderr] 447 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 450 | tp!("|%.5u|%c%c|%.5u|\t"), [INFO] [stderr] | ------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: irrefutable `if let` pattern [INFO] [stderr] --> src/mnl/nlmsg.rs:477:31 [INFO] [stderr] | [INFO] [stderr] 477 | let colorize = if let Ok(fdnum) = fileno(fd).try_into() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this pattern will always match, so the `if let` is useless [INFO] [stderr] = help: consider replacing the `if let` with a `let` [INFO] [stderr] = note: `#[warn(irrefutable_let_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stderr] | [INFO] [stderr] 475 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 500 | tp!("| %.2x %.2x %.2x %.2x |\t"), [INFO] [stderr] | --------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stderr] | [INFO] [stderr] 475 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 506 | fprintf(fd, tp!("| |\n")); [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stderr] | [INFO] [stderr] 475 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 512 | tp!("| %.2x %.2x %.2x %.2x |\t"), [INFO] [stderr] | --------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stderr] | [INFO] [stderr] 475 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 518 | fprintf(fd, tp!("| extra header |\n")); [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stderr] | [INFO] [stderr] 475 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 526 | fprintf(fd, tp!("|len |flags| type|\n")); [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stderr] | [INFO] [stderr] 475 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 537 | tp!("| %.2x %.2x %.2x %.2x |\t"), [INFO] [stderr] | --------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stderr] | [INFO] [stderr] 475 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 543 | fprintf(fd, tp!("| data |")); [INFO] [stderr] | ------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stderr] | [INFO] [stderr] 475 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 552 | tp!("\t %c %c %c %c\n"), [INFO] [stderr] | ----------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | unsafe { core::mem::transmute::<&[u8],&[i8]>(&str::as_bytes(concat!($($t)*,"\0"))).as_ptr() as *const i8 } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] ::: src/mnl/nlmsg.rs:475:9 [INFO] [stderr] | [INFO] [stderr] 475 | unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 561 | fprintf(fd, tp!("----------------\t------------------\n")); [INFO] [stderr] | --------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `tp` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/mnl/nlmsg.rs:574:9 [INFO] [stderr] | [INFO] [stderr] 574 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/mnl/nlmsg.rs:573:13 [INFO] [stderr] | [INFO] [stderr] 573 | let mut remaining = len; [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `nf` (lib) generated 21 warnings (run `cargo fix --lib -p nf` to apply 1 suggestion) [INFO] [stderr] warning: `nf` (lib test) generated 21 warnings (21 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nf-e76fbbb26bcf183d) [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] [stderr] Doc-tests nf [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" "592b31a5add18944367dd5803e5b694252dd2ae67d3f51c11b738ee6122eafc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "592b31a5add18944367dd5803e5b694252dd2ae67d3f51c11b738ee6122eafc3", kill_on_drop: false }` [INFO] [stdout] 592b31a5add18944367dd5803e5b694252dd2ae67d3f51c11b738ee6122eafc3