[INFO] fetching crate nfqueue 0.9.1... [INFO] checking nfqueue-0.9.1 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate nfqueue 0.9.1 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate nfqueue 0.9.1 [INFO] finished tweaking crates.io crate nfqueue 0.9.1 [INFO] tweaked toml for crates.io crate nfqueue 0.9.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate nfqueue 0.9.1 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 29 packages to latest compatible versions [INFO] [stderr] Adding pnet v0.17.1 (available: v0.35.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8bb7f48412e6940fdb7ed1c61187997002d97f14263802712911d796658b3778 [INFO] running `Command { std: "docker" "start" "-a" "8bb7f48412e6940fdb7ed1c61187997002d97f14263802712911d796658b3778", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8bb7f48412e6940fdb7ed1c61187997002d97f14263802712911d796658b3778", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bb7f48412e6940fdb7ed1c61187997002d97f14263802712911d796658b3778", kill_on_drop: false }` [INFO] [stdout] 8bb7f48412e6940fdb7ed1c61187997002d97f14263802712911d796658b3778 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf600c555170e0fcbbc1732b8f97a95f565c47ec1443918262f766f625111fe6 [INFO] running `Command { std: "docker" "start" "-a" "cf600c555170e0fcbbc1732b8f97a95f565c47ec1443918262f766f625111fe6", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling rustc-serialize v0.3.25 [INFO] [stderr] Compiling unicode-xid v0.0.3 [INFO] [stderr] Compiling term v0.4.6 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling bitflags v0.5.0 [INFO] [stderr] Compiling ucd-util v0.1.10 [INFO] [stderr] Compiling utf8-ranges v1.0.5 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking no-std-net v0.6.0 [INFO] [stderr] Checking pnet_base v0.35.0 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Checking ipnetwork v0.12.8 [INFO] [stderr] Compiling ws2_32-sys v0.2.1 [INFO] [stderr] Checking pnet_macros_support v0.35.0 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Checking nfqueue v0.9.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | const NFQ_XML_HW : u32 = (1 << 0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 66 - const NFQ_XML_HW : u32 = (1 << 0); [INFO] [stdout] 66 + const NFQ_XML_HW : u32 = 1 << 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:67:32 [INFO] [stdout] | [INFO] [stdout] 67 | const NFQ_XML_MARK : u32 = (1 << 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 67 - const NFQ_XML_MARK : u32 = (1 << 1); [INFO] [stdout] 67 + const NFQ_XML_MARK : u32 = 1 << 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:68:32 [INFO] [stdout] | [INFO] [stdout] 68 | const NFQ_XML_DEV : u32 = (1 << 2); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 68 - const NFQ_XML_DEV : u32 = (1 << 2); [INFO] [stdout] 68 + const NFQ_XML_DEV : u32 = 1 << 2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | const NFQ_XML_PHYSDEV : u32 = (1 << 3); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 69 - const NFQ_XML_PHYSDEV : u32 = (1 << 3); [INFO] [stdout] 69 + const NFQ_XML_PHYSDEV : u32 = 1 << 3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:70:32 [INFO] [stdout] | [INFO] [stdout] 70 | const NFQ_XML_PAYLOAD : u32 = (1 << 4); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - const NFQ_XML_PAYLOAD : u32 = (1 << 4); [INFO] [stdout] 70 + const NFQ_XML_PAYLOAD : u32 = 1 << 4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | const NFQ_XML_TIME : u32 = (1 << 5); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - const NFQ_XML_TIME : u32 = (1 << 5); [INFO] [stdout] 71 + const NFQ_XML_TIME : u32 = 1 << 5; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | const NFQ_XML_ALL : u32 = (!0u32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 72 - const NFQ_XML_ALL : u32 = (!0u32); [INFO] [stdout] 72 + const NFQ_XML_ALL : u32 = !0u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/message.rs:97:1 [INFO] [stdout] | [INFO] [stdout] 97 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:75:1 [INFO] [stdout] | [INFO] [stdout] 75 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `nfqueue` (lib) due to 2 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/message.rs:218:42 [INFO] [stdout] | [INFO] [stdout] 218 | _ => Ok( HwAddr::new(unsafe{&((*c_hw).hw_addr)[0..c_len]})), [INFO] [stdout] | ^^^----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*const NfMsgPacketHw` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[u8; 8]` [INFO] [stdout] --> src/message.rs:218:42 [INFO] [stdout] | [INFO] [stdout] 218 | _ => Ok( HwAddr::new(unsafe{&((*c_hw).hw_addr)[0..c_len]})), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 218 | _ => Ok( HwAddr::new(unsafe{&(&((*c_hw).hw_addr))[0..c_len]})), [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: calling this function with a null pointer is undefined behavior, even if the result of the function is unused [INFO] [stdout] --> src/message.rs:295:40 [INFO] [stdout] | [INFO] [stdout] 295 | let payload : &[u8] = unsafe { std::slice::from_raw_parts(c_ptr as *mut u8, payload_len as usize) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for more information, visit and [INFO] [stdout] note: null pointer originates from here [INFO] [stdout] --> src/message.rs:293:21 [INFO] [stdout] | [INFO] [stdout] 293 | let c_ptr = std::ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(invalid_null_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "cf600c555170e0fcbbc1732b8f97a95f565c47ec1443918262f766f625111fe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf600c555170e0fcbbc1732b8f97a95f565c47ec1443918262f766f625111fe6", kill_on_drop: false }` [INFO] [stdout] cf600c555170e0fcbbc1732b8f97a95f565c47ec1443918262f766f625111fe6