[INFO] fetching crate nflog 0.9.0... [INFO] checking nflog-0.9.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate nflog 0.9.0 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate nflog 0.9.0 [INFO] finished tweaking crates.io crate nflog 0.9.0 [INFO] tweaked toml for crates.io crate nflog 0.9.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nflog 0.9.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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 1 package to latest compatible version [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] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 26600fb641bee5bc4c0ec9172b66e1c9d5d773f084b2944d1dc2553b2185cfbe [INFO] running `Command { std: "docker" "start" "-a" "26600fb641bee5bc4c0ec9172b66e1c9d5d773f084b2944d1dc2553b2185cfbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "26600fb641bee5bc4c0ec9172b66e1c9d5d773f084b2944d1dc2553b2185cfbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26600fb641bee5bc4c0ec9172b66e1c9d5d773f084b2944d1dc2553b2185cfbe", kill_on_drop: false }` [INFO] [stdout] 26600fb641bee5bc4c0ec9172b66e1c9d5d773f084b2944d1dc2553b2185cfbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43b0972922154d3636b9b141238de0dd8fcdd9c377f36d4e55a5fe2bef417145 [INFO] running `Command { std: "docker" "start" "-a" "43b0972922154d3636b9b141238de0dd8fcdd9c377f36d4e55a5fe2bef417145", 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] Checking nflog v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/message.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | 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: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:55:34 [INFO] [stdout] | [INFO] [stdout] 55 | const NFLOG_XML_PREFIX : 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] 55 - const NFLOG_XML_PREFIX : u32 = (1 << 0); [INFO] [stdout] 55 + const NFLOG_XML_PREFIX : u32 = 1 << 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | const NFLOG_XML_HW : u32 = (1 << 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - const NFLOG_XML_HW : u32 = (1 << 1); [INFO] [stdout] 56 + const NFLOG_XML_HW : u32 = 1 << 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:57:34 [INFO] [stdout] | [INFO] [stdout] 57 | const NFLOG_XML_MARK : u32 = (1 << 2); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 57 - const NFLOG_XML_MARK : u32 = (1 << 2); [INFO] [stdout] 57 + const NFLOG_XML_MARK : u32 = 1 << 2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:58:34 [INFO] [stdout] | [INFO] [stdout] 58 | const NFLOG_XML_DEV : u32 = (1 << 3); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - const NFLOG_XML_DEV : u32 = (1 << 3); [INFO] [stdout] 58 + const NFLOG_XML_DEV : u32 = 1 << 3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 59 | const NFLOG_XML_PHYSDEV : u32 = (1 << 4); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - const NFLOG_XML_PHYSDEV : u32 = (1 << 4); [INFO] [stdout] 59 + const NFLOG_XML_PHYSDEV : u32 = 1 << 4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:60:34 [INFO] [stdout] | [INFO] [stdout] 60 | const NFLOG_XML_PAYLOAD : u32 = (1 << 5); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - const NFLOG_XML_PAYLOAD : u32 = (1 << 5); [INFO] [stdout] 60 + const NFLOG_XML_PAYLOAD : u32 = 1 << 5; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | const NFLOG_XML_TIME : u32 = (1 << 6); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - const NFLOG_XML_TIME : u32 = (1 << 6); [INFO] [stdout] 61 + const NFLOG_XML_TIME : u32 = 1 << 6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:62:34 [INFO] [stdout] | [INFO] [stdout] 62 | const NFLOG_XML_ALL : u32 = (!0u32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - const NFLOG_XML_ALL : u32 = (!0u32); [INFO] [stdout] 62 + const NFLOG_XML_ALL : u32 = !0u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | extern { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/message.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | 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: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:55:34 [INFO] [stdout] | [INFO] [stdout] 55 | const NFLOG_XML_PREFIX : 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] 55 - const NFLOG_XML_PREFIX : u32 = (1 << 0); [INFO] [stdout] 55 + const NFLOG_XML_PREFIX : u32 = 1 << 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | const NFLOG_XML_HW : u32 = (1 << 1); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - const NFLOG_XML_HW : u32 = (1 << 1); [INFO] [stdout] 56 + const NFLOG_XML_HW : u32 = 1 << 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:57:34 [INFO] [stdout] | [INFO] [stdout] 57 | const NFLOG_XML_MARK : u32 = (1 << 2); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 57 - const NFLOG_XML_MARK : u32 = (1 << 2); [INFO] [stdout] 57 + const NFLOG_XML_MARK : u32 = 1 << 2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:58:34 [INFO] [stdout] | [INFO] [stdout] 58 | const NFLOG_XML_DEV : u32 = (1 << 3); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - const NFLOG_XML_DEV : u32 = (1 << 3); [INFO] [stdout] 58 + const NFLOG_XML_DEV : u32 = 1 << 3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:59:34 [INFO] [stdout] | [INFO] [stdout] 59 | const NFLOG_XML_PHYSDEV : u32 = (1 << 4); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - const NFLOG_XML_PHYSDEV : u32 = (1 << 4); [INFO] [stdout] 59 + const NFLOG_XML_PHYSDEV : u32 = 1 << 4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:60:34 [INFO] [stdout] | [INFO] [stdout] 60 | const NFLOG_XML_PAYLOAD : u32 = (1 << 5); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - const NFLOG_XML_PAYLOAD : u32 = (1 << 5); [INFO] [stdout] 60 + const NFLOG_XML_PAYLOAD : u32 = 1 << 5; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | const NFLOG_XML_TIME : u32 = (1 << 6); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 61 - const NFLOG_XML_TIME : u32 = (1 << 6); [INFO] [stdout] 61 + const NFLOG_XML_TIME : u32 = 1 << 6; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/message.rs:62:34 [INFO] [stdout] | [INFO] [stdout] 62 | const NFLOG_XML_ALL : u32 = (!0u32); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - const NFLOG_XML_ALL : u32 = (!0u32); [INFO] [stdout] 62 + const NFLOG_XML_ALL : u32 = !0u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/lib.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | 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:199:42 [INFO] [stdout] | [INFO] [stdout] 199 | _ => Ok( HwAddr::new(unsafe{&((*c_hw).hw_addr)[1..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:199:42 [INFO] [stdout] | [INFO] [stdout] 199 | _ => Ok( HwAddr::new(unsafe{&((*c_hw).hw_addr)[1..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] 199 | _ => Ok( HwAddr::new(unsafe{&(&((*c_hw).hw_addr))[1..c_len]})), [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/message.rs:199:42 [INFO] [stdout] | [INFO] [stdout] 199 | _ => Ok( HwAddr::new(unsafe{&((*c_hw).hw_addr)[1..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:199:42 [INFO] [stdout] | [INFO] [stdout] 199 | _ => Ok( HwAddr::new(unsafe{&((*c_hw).hw_addr)[1..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] 199 | _ => Ok( HwAddr::new(unsafe{&(&((*c_hw).hw_addr))[1..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:211:40 [INFO] [stdout] | [INFO] [stdout] 211 | 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:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | let c_ptr = std::ptr::null_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(invalid_null_arguments)]` on by default [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:211:40 [INFO] [stdout] | [INFO] [stdout] 211 | 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:209:21 [INFO] [stdout] | [INFO] [stdout] 209 | 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 `nflog` (lib) due to 2 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `nflog` (lib test) due to 2 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "43b0972922154d3636b9b141238de0dd8fcdd9c377f36d4e55a5fe2bef417145", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43b0972922154d3636b9b141238de0dd8fcdd9c377f36d4e55a5fe2bef417145", kill_on_drop: false }` [INFO] [stdout] 43b0972922154d3636b9b141238de0dd8fcdd9c377f36d4e55a5fe2bef417145