[INFO] fetching crate bvm_filter 1.0.0... [INFO] checking bvm_filter-1.0.0 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate bvm_filter 1.0.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate bvm_filter 1.0.0 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate bvm_filter 1.0.0 [INFO] finished tweaking crates.io crate bvm_filter 1.0.0 [INFO] tweaked toml for crates.io crate bvm_filter 1.0.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 111 packages to latest compatible versions [INFO] [stderr] Adding ansi_term v0.11.0 (latest: v0.12.1) [INFO] [stderr] Adding ar v0.6.2 (latest: v0.9.0) [INFO] [stderr] Adding ascii v0.7.1 (latest: v1.1.0) [INFO] [stderr] Adding bit-vec v0.4.4 (latest: v0.8.0) [INFO] [stderr] Adding bit-vec v0.5.1 (latest: v0.8.0) [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.6.0) [INFO] [stderr] Adding block-buffer v0.3.3 (latest: v0.10.4) [INFO] [stderr] Adding byte-tools v0.2.0 (latest: v0.3.1) [INFO] [stderr] Adding byteorder v0.5.3 (latest: v1.5.0) [INFO] [stderr] Adding clap v2.34.0 (latest: v4.5.16) [INFO] [stderr] Adding colored v1.9.4 (latest: v2.1.0) [INFO] [stderr] Adding combine v2.5.2 (latest: v4.6.7) [INFO] [stderr] Adding digest v0.7.6 (latest: v0.10.7) [INFO] [stderr] Adding elf v0.0.10 (latest: v0.7.4) [INFO] [stderr] Adding elfkit v0.0.6 (latest: v0.0.7) [INFO] [stderr] Adding enum-primitive-derive v0.1.2 (latest: v0.3.0) [INFO] [stderr] Adding env_logger v0.5.13 (latest: v0.11.5) [INFO] [stderr] Adding generic-array v0.9.1 (latest: v1.1.0) [INFO] [stderr] Adding glob v0.2.11 (latest: v0.3.1) [INFO] [stderr] Adding hash32 v0.1.1 (latest: v0.3.1) [INFO] [stderr] Adding hashbrown v0.12.3 (latest: v0.14.5) [INFO] [stderr] Adding hermit-abi v0.1.19 (latest: v0.4.0) [INFO] [stderr] Adding humantime v1.3.0 (latest: v2.1.0) [INFO] [stderr] Adding indexmap v1.9.3 (latest: v2.5.0) [INFO] [stderr] Adding itertools v0.7.11 (latest: v0.13.0) [INFO] [stderr] Adding json v0.11.15 (latest: v0.12.4) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (latest: v0.6.5) [INFO] [stderr] Adding num-traits v0.1.43 (latest: v0.2.19) [INFO] [stderr] Adding pretty_env_logger v0.2.5 (latest: v0.5.0) [INFO] [stderr] Adding quick-error v1.2.3 (latest: v2.0.1) [INFO] [stderr] Adding quote v0.3.15 (latest: v1.0.37) [INFO] [stderr] Adding sha2 v0.7.1 (latest: v0.10.8) [INFO] [stderr] Adding strsim v0.8.0 (latest: v0.11.1) [INFO] [stderr] Adding syn v0.11.11 (latest: v2.0.77) [INFO] [stderr] Adding textwrap v0.11.0 (latest: v0.16.1) [INFO] [stderr] Adding time v0.1.45 (latest: v0.3.36) [INFO] [stderr] Adding unicode-xid v0.0.4 (latest: v0.2.5) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (latest: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-core v0.52.0 (latest: v0.58.0) [INFO] [stderr] Adding windows-sys v0.52.0 (latest: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "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] Downloading crates ... [INFO] [stderr] Downloaded digest v0.7.6 [INFO] [stderr] Downloaded json v0.11.15 [INFO] [stderr] Downloaded hash32 v0.1.1 [INFO] [stderr] Downloaded byte-tools v0.2.0 [INFO] [stderr] Downloaded generic-array v0.9.1 [INFO] [stderr] Downloaded enum-primitive-derive v0.1.2 [INFO] [stderr] Downloaded pretty_env_logger v0.2.5 [INFO] [stderr] Downloaded fake-simd v0.1.2 [INFO] [stderr] Downloaded ascii v0.7.1 [INFO] [stderr] Downloaded bit-vec v0.5.1 [INFO] [stderr] Downloaded combine v2.5.2 [INFO] [stderr] Downloaded syn v0.11.11 [INFO] [stderr] Downloaded env_logger v0.5.13 [INFO] [stderr] Downloaded bloom v0.3.2 [INFO] [stderr] Downloaded glob v0.2.11 [INFO] [stderr] Downloaded itertools v0.7.11 [INFO] [stderr] Downloaded byteorder v0.5.3 [INFO] [stderr] Downloaded elf v0.0.10 [INFO] [stderr] Downloaded ar v0.6.2 [INFO] [stderr] Downloaded bit-vec v0.4.4 [INFO] [stderr] Downloaded num-traits v0.1.43 [INFO] [stderr] Downloaded synom v0.11.3 [INFO] [stderr] Downloaded unicode-xid v0.0.4 [INFO] [stderr] Downloaded block-buffer v0.3.3 [INFO] [stderr] Downloaded sha2 v0.7.1 [INFO] [stderr] Downloaded elfkit v0.0.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 68c473a6ba1cd20db8a22ebb3b23944101320fa58b4bc530e6f659d3f71651fa [INFO] running `Command { std: "docker" "start" "-a" "68c473a6ba1cd20db8a22ebb3b23944101320fa58b4bc530e6f659d3f71651fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "68c473a6ba1cd20db8a22ebb3b23944101320fa58b4bc530e6f659d3f71651fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68c473a6ba1cd20db8a22ebb3b23944101320fa58b4bc530e6f659d3f71651fa", kill_on_drop: false }` [INFO] [stdout] 68c473a6ba1cd20db8a22ebb3b23944101320fa58b4bc530e6f659d3f71651fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0c436f89516f4b6f764c423e9e19ba96545f2edcad9e8bd2d622bdc2f16eea06 [INFO] running `Command { std: "docker" "start" "-a" "0c436f89516f4b6f764c423e9e19ba96545f2edcad9e8bd2d622bdc2f16eea06", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Checking generic-array v0.9.1 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking arrayref v0.3.8 [INFO] [stderr] Checking byte-tools v0.2.0 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Checking block-buffer v0.3.3 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking env_logger v0.5.13 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Checking digest v0.7.6 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking bit-vec v0.4.4 [INFO] [stderr] Checking bloom v0.3.2 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking sha2 v0.7.1 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking colored v1.9.4 [INFO] [stderr] Checking itertools v0.7.11 [INFO] [stderr] Checking ar v0.6.2 [INFO] [stderr] Checking glob v0.2.11 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking bit-vec v0.5.1 [INFO] [stderr] Checking ascii v0.7.1 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking hash32 v0.1.1 [INFO] [stderr] Checking combine v2.5.2 [INFO] [stderr] Checking byteorder v0.5.3 [INFO] [stderr] Checking json v0.11.15 [INFO] [stderr] Compiling enum-primitive-derive v0.1.2 [INFO] [stderr] Checking elf v0.0.10 [INFO] [stderr] Checking pretty_env_logger v0.2.5 [INFO] [stderr] Checking elfkit v0.0.6 [INFO] [stderr] Checking bvm_filter v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/lib.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | #![cfg_attr(feature = "cargo-clippy", allow(redundant_field_names, single_match, cast_lossless, doc_markdown, match_same_arms, unreadable... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/assembler.rs:162:21 [INFO] [stdout] | [INFO] [stdout] 162 | let (a, b, c) = try!(operands_tuple(operands)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/assembler.rs:245:18 [INFO] [stdout] | [INFO] [stdout] 245 | let parsed = try!(parse(src)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/assembler.rs:246:17 [INFO] [stdout] | [INFO] [stdout] 246 | let insns = try!(assemble_internal(&parsed)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/ebpf.rs:405:100 [INFO] [stdout] | [INFO] [stdout] 405 | pub type HelperVerifier = fn (u64, u64, u64, u64, u64, &[MemoryRegion], &[MemoryRegion]) -> Result<(()), Error>; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 405 - pub type HelperVerifier = fn (u64, u64, u64, u64, u64, &[MemoryRegion], &[MemoryRegion]) -> Result<(()), Error>; [INFO] [stdout] 405 + pub type HelperVerifier = fn (u64, u64, u64, u64, u64, &[MemoryRegion], &[MemoryRegion]) -> Result<(), Error>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/elf.rs:94:45 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn load(elf_bytes: &[u8]) -> Result<(EBpfElf), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 94 - pub fn load(elf_bytes: &[u8]) -> Result<(EBpfElf), Error> { [INFO] [stdout] 94 + pub fn load(elf_bytes: &[u8]) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/elf.rs:205:49 [INFO] [stdout] | [INFO] [stdout] 205 | fn get_section(&self, name: &str) -> Result<(&elfkit::Section), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 205 - fn get_section(&self, name: &str) -> Result<(&elfkit::Section), Error> { [INFO] [stdout] 205 + fn get_section(&self, name: &str) -> Result<&elfkit::Section, Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/elf.rs:334:17 [INFO] [stdout] | [INFO] [stdout] 334 | ) -> Result<(&'a mut elfkit::Section), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 334 - ) -> Result<(&'a mut elfkit::Section), Error> { [INFO] [stdout] 334 + ) -> Result<&'a mut elfkit::Section, Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/elf.rs:352:17 [INFO] [stdout] | [INFO] [stdout] 352 | ) -> Result<(Vec>), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 352 - ) -> Result<(Vec>), Error> { [INFO] [stdout] 352 + ) -> Result>, Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `cast_ptr_alignment` [INFO] [stdout] --> src/jit.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | emit_bytes!(jit, data, u8); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] = note: this warning originates in the macro `emit_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `cast_ptr_alignment` [INFO] [stdout] --> src/jit.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | emit_bytes!(jit, data, u16); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `emit_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `cast_ptr_alignment` [INFO] [stdout] --> src/jit.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | emit_bytes!(jit, data, u32); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `emit_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `cast_ptr_alignment` [INFO] [stdout] --> src/jit.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | emit_bytes!(jit, data, u64); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `emit_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/lib.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | #![cfg_attr(feature = "cargo-clippy", allow(redundant_field_names, single_match, cast_lossless, doc_markdown, match_same_arms, unreadable... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/assembler.rs:162:21 [INFO] [stdout] | [INFO] [stdout] 162 | let (a, b, c) = try!(operands_tuple(operands)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/assembler.rs:245:18 [INFO] [stdout] | [INFO] [stdout] 245 | let parsed = try!(parse(src)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/assembler.rs:246:17 [INFO] [stdout] | [INFO] [stdout] 246 | let insns = try!(assemble_internal(&parsed)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/ebpf.rs:405:100 [INFO] [stdout] | [INFO] [stdout] 405 | pub type HelperVerifier = fn (u64, u64, u64, u64, u64, &[MemoryRegion], &[MemoryRegion]) -> Result<(()), Error>; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 405 - pub type HelperVerifier = fn (u64, u64, u64, u64, u64, &[MemoryRegion], &[MemoryRegion]) -> Result<(()), Error>; [INFO] [stdout] 405 + pub type HelperVerifier = fn (u64, u64, u64, u64, u64, &[MemoryRegion], &[MemoryRegion]) -> Result<(), Error>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/elf.rs:94:45 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn load(elf_bytes: &[u8]) -> Result<(EBpfElf), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 94 - pub fn load(elf_bytes: &[u8]) -> Result<(EBpfElf), Error> { [INFO] [stdout] 94 + pub fn load(elf_bytes: &[u8]) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/elf.rs:205:49 [INFO] [stdout] | [INFO] [stdout] 205 | fn get_section(&self, name: &str) -> Result<(&elfkit::Section), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 205 - fn get_section(&self, name: &str) -> Result<(&elfkit::Section), Error> { [INFO] [stdout] 205 + fn get_section(&self, name: &str) -> Result<&elfkit::Section, Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/elf.rs:334:17 [INFO] [stdout] | [INFO] [stdout] 334 | ) -> Result<(&'a mut elfkit::Section), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 334 - ) -> Result<(&'a mut elfkit::Section), Error> { [INFO] [stdout] 334 + ) -> Result<&'a mut elfkit::Section, Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/elf.rs:352:17 [INFO] [stdout] | [INFO] [stdout] 352 | ) -> Result<(Vec>), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 352 - ) -> Result<(Vec>), Error> { [INFO] [stdout] 352 + ) -> Result>, Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `cast_ptr_alignment` [INFO] [stdout] --> src/jit.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | emit_bytes!(jit, data, u8); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] = note: this warning originates in the macro `emit_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `cast_ptr_alignment` [INFO] [stdout] --> src/jit.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | emit_bytes!(jit, data, u16); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `emit_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `cast_ptr_alignment` [INFO] [stdout] --> src/jit.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | emit_bytes!(jit, data, u32); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `emit_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `cast_ptr_alignment` [INFO] [stdout] --> src/jit.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | emit_bytes!(jit, data, u64); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `emit_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/jit.rs:846:10 [INFO] [stdout] | [INFO] [stdout] 846 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/jit.rs:911:15 [INFO] [stdout] | [INFO] [stdout] 911 | -> Result<(JitProgram), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 911 - -> Result<(JitProgram), Error> { [INFO] [stdout] 911 + -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/verifier.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | (0 ... 9, _) | (10, true) => Ok(()), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/jit.rs:846:10 [INFO] [stdout] | [INFO] [stdout] 846 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/jit.rs:911:15 [INFO] [stdout] | [INFO] [stdout] 911 | -> Result<(JitProgram), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 911 - -> Result<(JitProgram), Error> { [INFO] [stdout] 911 + -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/verifier.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 108 | (0 ... 9, _) | (10, true) => Ok(()), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:2101:49 [INFO] [stdout] | [INFO] [stdout] 2101 | pub fn execute_program(&mut self) -> Result<(u64), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2101 - pub fn execute_program(&mut self) -> Result<(u64), Error> { [INFO] [stdout] 2101 + pub fn execute_program(&mut self) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:2137:56 [INFO] [stdout] | [INFO] [stdout] 2137 | pub unsafe fn execute_program_jit(&self) -> Result<(u64), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2137 - pub unsafe fn execute_program_jit(&self) -> Result<(u64), Error> { [INFO] [stdout] 2137 + pub unsafe fn execute_program_jit(&self) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:2101:49 [INFO] [stdout] | [INFO] [stdout] 2101 | pub fn execute_program(&mut self) -> Result<(u64), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2101 - pub fn execute_program(&mut self) -> Result<(u64), Error> { [INFO] [stdout] 2101 + pub fn execute_program(&mut self) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:2137:56 [INFO] [stdout] | [INFO] [stdout] 2137 | pub unsafe fn execute_program_jit(&self) -> Result<(u64), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2137 - pub unsafe fn execute_program_jit(&self) -> Result<(u64), Error> { [INFO] [stdout] 2137 + pub unsafe fn execute_program_jit(&self) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/jit.rs:444:51 [INFO] [stdout] | [INFO] [stdout] 444 | let mut raw: *mut libc::c_void = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/jit.rs:444:51 [INFO] [stdout] | [INFO] [stdout] 444 | let mut raw: *mut libc::c_void = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut c_void` does not permit being left uninitialized [INFO] [stdout] --> src/jit.rs:444:46 [INFO] [stdout] | [INFO] [stdout] 444 | let mut raw: *mut libc::c_void = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> tests/assembler.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | #![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> tests/assembler.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 20 | Ok(ebpf::to_insn_vec(&try!(assemble(src)))) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> examples/load_elf.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | #![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> tests/misc.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | #![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> tests/misc.rs:709:112 [INFO] [stdout] | [INFO] [stdout] 709 | ... unused5: u64, ro_regions: &[MemoryRegion], unused7: &[MemoryRegion]) -> Result<(()), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 709 - unused5: u64, ro_regions: &[MemoryRegion], unused7: &[MemoryRegion]) -> Result<(()), Error> { [INFO] [stdout] 709 + unused5: u64, ro_regions: &[MemoryRegion], unused7: &[MemoryRegion]) -> Result<(), Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> tests/ubpf_jit_x86_64.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | #![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> tests/ubpf_vm.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | #![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut c_void` does not permit being left uninitialized [INFO] [stdout] --> src/jit.rs:444:46 [INFO] [stdout] | [INFO] [stdout] 444 | let mut raw: *mut libc::c_void = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.36s [INFO] running `Command { std: "docker" "inspect" "0c436f89516f4b6f764c423e9e19ba96545f2edcad9e8bd2d622bdc2f16eea06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c436f89516f4b6f764c423e9e19ba96545f2edcad9e8bd2d622bdc2f16eea06", kill_on_drop: false }` [INFO] [stdout] 0c436f89516f4b6f764c423e9e19ba96545f2edcad9e8bd2d622bdc2f16eea06