[INFO] fetching crate libnetfilter_queue 0.0.3... [INFO] checking libnetfilter_queue-0.0.3 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate libnetfilter_queue 0.0.3 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate libnetfilter_queue 0.0.3 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate libnetfilter_queue 0.0.3 [INFO] finished tweaking crates.io crate libnetfilter_queue 0.0.3 [INFO] tweaked toml for crates.io crate libnetfilter_queue 0.0.3 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 20 packages to latest compatible versions [INFO] [stderr] Adding lazy_static v0.1.16 (available: v1.5.0) [INFO] [stderr] Adding libc v0.1.12 (available: v0.2.159) [INFO] [stderr] Adding num v0.1.42 (available: v0.4.3) [INFO] [stderr] Adding num-bigint v0.1.44 (available: v0.4.6) [INFO] [stderr] Adding num-complex v0.1.43 (available: v0.4.6) [INFO] [stderr] Adding num-rational v0.1.42 (available: v0.4.2) [INFO] [stderr] Adding rand v0.4.6 (available: v0.8.5) [INFO] [stderr] Adding rand_core v0.3.1 (available: v0.6.4) [INFO] [stderr] Adding rand_core v0.4.2 (available: v0.6.4) [INFO] [stderr] Adding rdrand v0.4.0 (available: v0.8.3) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5bc64abaf9491b4fc8dc6079105f5a36972a202d2c1fda2e1af0832416fba4e0 [INFO] running `Command { std: "docker" "start" "-a" "5bc64abaf9491b4fc8dc6079105f5a36972a202d2c1fda2e1af0832416fba4e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5bc64abaf9491b4fc8dc6079105f5a36972a202d2c1fda2e1af0832416fba4e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bc64abaf9491b4fc8dc6079105f5a36972a202d2c1fda2e1af0832416fba4e0", kill_on_drop: false }` [INFO] [stdout] 5bc64abaf9491b4fc8dc6079105f5a36972a202d2c1fda2e1af0832416fba4e0 [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57a34f8e5408eb5fe42dff42f90beadb8e927e164f9541579edaecf236b94a83 [INFO] running `Command { std: "docker" "start" "-a" "57a34f8e5408eb5fe42dff42f90beadb8e927e164f9541579edaecf236b94a83", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking lazy_static v0.1.16 [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking libnetfilter_queue v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find attribute `packed` in this scope [INFO] [stdout] --> src/ffi.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 27 | #[packed] [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `naked` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `packed` in this scope [INFO] [stdout] --> src/ffi.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 27 | #[packed] [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `naked` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/ffi.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[link(name="linux/netfilter")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | pub const NF_DROP: c_int = 0; [INFO] [stdout] | ----------------------------- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: attribute should be applied to an `extern` block with non-Rust ABI [INFO] [stdout] --> src/ffi.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[link(name="linux/netfilter")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | pub const NF_DROP: c_int = 0; [INFO] [stdout] | ----------------------------- not an `extern` block [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/lock.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | lazy_static! { pub static ref NFQ_LOCK: Mutex<()> = Mutex::new(()); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/lock.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | lazy_static! { pub static ref NFQ_LOCK: Mutex<()> = Mutex::new(()); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown `doc` attribute `hide` [INFO] [stdout] --> src/queue.rs:135:11 [INFO] [stdout] | [INFO] [stdout] 135 | #[doc(hide)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(invalid_doc_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/lock.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | lazy_static! { pub static ref NFQ_LOCK: Mutex<()> = Mutex::new(()); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/lock.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | lazy_static! { pub static ref NFQ_LOCK: Mutex<()> = Mutex::new(()); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unknown `doc` attribute `hide` [INFO] [stdout] --> src/queue.rs:135:11 [INFO] [stdout] | [INFO] [stdout] 135 | #[doc(hide)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(invalid_doc_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | cause: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 | cause: Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | cause: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 | cause: Option>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | fn cause(&self) -> Option<&Base> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 | fn cause(&self) -> Option<&dyn Base> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/error.rs:45:32 [INFO] [stdout] | [INFO] [stdout] 45 | fn cause(&self) -> Option<&Base> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 45 | fn cause(&self) -> Option<&dyn Base> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::traits::PrimInt` [INFO] [stdout] --> src/ffi.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use num::traits::PrimInt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::traits::PrimInt` [INFO] [stdout] --> src/message.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use num::traits::PrimInt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::traits::PrimInt` [INFO] [stdout] --> src/ffi.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use num::traits::PrimInt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::traits::PrimInt` [INFO] [stdout] --> src/message.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use num::traits::PrimInt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: use of extern static is unsafe and requires unsafe function or block [INFO] [stdout] --> src/error.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let errno = nfq_errno; [INFO] [stdout] | ^^^^^^^^^ use of extern static [INFO] [stdout] | [INFO] [stdout] = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: use of extern static is unsafe and requires unsafe function or block [INFO] [stdout] --> src/error.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let errno = nfq_errno; [INFO] [stdout] | ^^^^^^^^^ use of extern static [INFO] [stdout] | [INFO] [stdout] = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `libnetfilter_queue` (lib test) due to 4 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `libnetfilter_queue` (lib) due to 4 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "57a34f8e5408eb5fe42dff42f90beadb8e927e164f9541579edaecf236b94a83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57a34f8e5408eb5fe42dff42f90beadb8e927e164f9541579edaecf236b94a83", kill_on_drop: false }` [INFO] [stdout] 57a34f8e5408eb5fe42dff42f90beadb8e927e164f9541579edaecf236b94a83