[INFO] fetching crate nf 0.1.0... [INFO] testing nf-0.1.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate nf 0.1.0 into /workspace/builds/worker-5-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-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nf 0.1.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 64d3133706774e9476dad77bf9fc263c654ddcffb6fe3a794f6c11b4d171aedc [INFO] running `Command { std: "docker" "start" "-a" "64d3133706774e9476dad77bf9fc263c654ddcffb6fe3a794f6c11b4d171aedc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "64d3133706774e9476dad77bf9fc263c654ddcffb6fe3a794f6c11b4d171aedc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64d3133706774e9476dad77bf9fc263c654ddcffb6fe3a794f6c11b4d171aedc", kill_on_drop: false }` [INFO] [stdout] 64d3133706774e9476dad77bf9fc263c654ddcffb6fe3a794f6c11b4d171aedc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2b1bcc066782de78471ae711258d022705258b0d0b3a029a81c9e67c00383ccc [INFO] running `Command { std: "docker" "start" "-a" "2b1bcc066782de78471ae711258d022705258b0d0b3a029a81c9e67c00383ccc", 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)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.31s [INFO] running `Command { std: "docker" "inspect" "2b1bcc066782de78471ae711258d022705258b0d0b3a029a81c9e67c00383ccc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b1bcc066782de78471ae711258d022705258b0d0b3a029a81c9e67c00383ccc", kill_on_drop: false }` [INFO] [stdout] 2b1bcc066782de78471ae711258d022705258b0d0b3a029a81c9e67c00383ccc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d005f3a1715f9be5843d99bf7ed89042de386105c707892ed8095b6946174e58 [INFO] running `Command { std: "docker" "start" "-a" "d005f3a1715f9be5843d99bf7ed89042de386105c707892ed8095b6946174e58", 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)]` 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)]` 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)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "d005f3a1715f9be5843d99bf7ed89042de386105c707892ed8095b6946174e58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d005f3a1715f9be5843d99bf7ed89042de386105c707892ed8095b6946174e58", kill_on_drop: false }` [INFO] [stdout] d005f3a1715f9be5843d99bf7ed89042de386105c707892ed8095b6946174e58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 623dbd8720803307a3aa0eb928a9f1d8065d7ad200e3ee6762aa3e46b295146f [INFO] running `Command { std: "docker" "start" "-a" "623dbd8720803307a3aa0eb928a9f1d8065d7ad200e3ee6762aa3e46b295146f", 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)]` 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)]` 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.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nf-e76fbbb26bcf183d) [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] [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" "623dbd8720803307a3aa0eb928a9f1d8065d7ad200e3ee6762aa3e46b295146f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "623dbd8720803307a3aa0eb928a9f1d8065d7ad200e3ee6762aa3e46b295146f", kill_on_drop: false }` [INFO] [stdout] 623dbd8720803307a3aa0eb928a9f1d8065d7ad200e3ee6762aa3e46b295146f