[INFO] fetching crate nfqueue 0.9.1... [INFO] testing nfqueue-0.9.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate nfqueue 0.9.1 into /workspace/builds/worker-3-tc1/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-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nfqueue 0.9.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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] Downloading crates ... [INFO] [stderr] Downloaded pnet_macros v0.15.0 [INFO] [stderr] Downloaded pnet v0.17.1 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 73dffad74383356ab44a241430c5e73e371bd147ed8e46361bea5d2eb5e4c42f [INFO] running `Command { std: "docker" "start" "-a" "73dffad74383356ab44a241430c5e73e371bd147ed8e46361bea5d2eb5e4c42f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "73dffad74383356ab44a241430c5e73e371bd147ed8e46361bea5d2eb5e4c42f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73dffad74383356ab44a241430c5e73e371bd147ed8e46361bea5d2eb5e4c42f", kill_on_drop: false }` [INFO] [stdout] 73dffad74383356ab44a241430c5e73e371bd147ed8e46361bea5d2eb5e4c42f [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 899a204afb34b81170d6f847a01b0948494884c0b1cafef170eb9981d4f71207 [INFO] running `Command { std: "docker" "start" "-a" "899a204afb34b81170d6f847a01b0948494884c0b1cafef170eb9981d4f71207", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) 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] [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] [stderr] error: could not compile `nfqueue` (lib) due to 2 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "899a204afb34b81170d6f847a01b0948494884c0b1cafef170eb9981d4f71207", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "899a204afb34b81170d6f847a01b0948494884c0b1cafef170eb9981d4f71207", kill_on_drop: false }` [INFO] [stdout] 899a204afb34b81170d6f847a01b0948494884c0b1cafef170eb9981d4f71207