[INFO] fetching crate rbpf 0.1.0... [INFO] checking rbpf-0.1.0 against master#42bd138126b0a9d38d65bc9973e72de3c5b6c37f for pr-99217 [INFO] extracting crate rbpf 0.1.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate rbpf 0.1.0 on toolchain 42bd138126b0a9d38d65bc9973e72de3c5b6c37f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rbpf 0.1.0 [INFO] finished tweaking crates.io crate rbpf 0.1.0 [INFO] tweaked toml for crates.io crate rbpf 0.1.0 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded combine v2.5.2 [INFO] [stderr] Downloaded ascii v0.7.1 [INFO] [stderr] Downloaded elf v0.0.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 856dcff2975976748644224ec88be1f5a1a296af9a9d484188a0dfd3ba864e98 [INFO] running `Command { std: "docker" "start" "-a" "856dcff2975976748644224ec88be1f5a1a296af9a9d484188a0dfd3ba864e98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "856dcff2975976748644224ec88be1f5a1a296af9a9d484188a0dfd3ba864e98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "856dcff2975976748644224ec88be1f5a1a296af9a9d484188a0dfd3ba864e98", kill_on_drop: false }` [INFO] [stdout] 856dcff2975976748644224ec88be1f5a1a296af9a9d484188a0dfd3ba864e98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a1ac2cb81085ad27f1dd2ff8ff37e38f753887a3cf1618334692dc2e5feebcd [INFO] running `Command { std: "docker" "start" "-a" "8a1ac2cb81085ad27f1dd2ff8ff37e38f753887a3cf1618334692dc2e5feebcd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Checking ascii v0.7.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking byteorder v0.5.3 [INFO] [stderr] Checking json v0.11.15 [INFO] [stderr] Checking elf v0.0.10 [INFO] [stderr] Checking combine v2.5.2 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking rbpf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/assembler.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 157 | 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:239:18 [INFO] [stdout] | [INFO] [stdout] 239 | 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:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | let insns = try!(assemble_internal(&parsed)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `cast_ptr_alignment` [INFO] [stdout] --> src/jit.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | 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:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | 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:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | 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:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | 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:839:10 [INFO] [stdout] | [INFO] [stdout] 839 | }; [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:904:15 [INFO] [stdout] | [INFO] [stdout] 904 | -> Result<(JitProgram), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 904 - -> Result<(JitProgram), Error> { [INFO] [stdout] 904 + -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/verifier.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | (0 ... 9, _) | (10, true) => Ok(()), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [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] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1539:45 [INFO] [stdout] | [INFO] [stdout] 1539 | pub fn execute_program(&self) -> Result<(u64), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1539 - pub fn execute_program(&self) -> Result<(u64), Error> { [INFO] [stdout] 1539 + pub fn execute_program(&self) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1575:56 [INFO] [stdout] | [INFO] [stdout] 1575 | pub unsafe fn execute_program_jit(&self) -> Result<(u64), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1575 - pub unsafe fn execute_program_jit(&self) -> Result<(u64), Error> { [INFO] [stdout] 1575 + pub unsafe fn execute_program_jit(&self) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/assembler.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 157 | 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:239:18 [INFO] [stdout] | [INFO] [stdout] 239 | 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:240:17 [INFO] [stdout] | [INFO] [stdout] 240 | let insns = try!(assemble_internal(&parsed)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `cast_ptr_alignment` [INFO] [stdout] --> src/jit.rs:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | 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:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | 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:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | 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:86:21 [INFO] [stdout] | [INFO] [stdout] 86 | #[allow(cast_ptr_alignment)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | 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:839:10 [INFO] [stdout] | [INFO] [stdout] 839 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/jit.rs:442:51 [INFO] [stdout] | [INFO] [stdout] 442 | let mut raw: *mut libc::c_void = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/jit.rs:904:15 [INFO] [stdout] | [INFO] [stdout] 904 | -> Result<(JitProgram), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 904 - -> Result<(JitProgram), Error> { [INFO] [stdout] 904 + -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/verifier.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | (0 ... 9, _) | (10, true) => Ok(()), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [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] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1539:45 [INFO] [stdout] | [INFO] [stdout] 1539 | pub fn execute_program(&self) -> Result<(u64), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1539 - pub fn execute_program(&self) -> Result<(u64), Error> { [INFO] [stdout] 1539 + pub fn execute_program(&self) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:1575:56 [INFO] [stdout] | [INFO] [stdout] 1575 | pub unsafe fn execute_program_jit(&self) -> Result<(u64), Error> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 1575 - pub unsafe fn execute_program_jit(&self) -> Result<(u64), Error> { [INFO] [stdout] 1575 + 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:442:51 [INFO] [stdout] | [INFO] [stdout] 442 | let mut raw: *mut libc::c_void = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> tests/assembler.rs:17:27 [INFO] [stdout] | [INFO] [stdout] 17 | 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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.66s [INFO] running `Command { std: "docker" "inspect" "8a1ac2cb81085ad27f1dd2ff8ff37e38f753887a3cf1618334692dc2e5feebcd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a1ac2cb81085ad27f1dd2ff8ff37e38f753887a3cf1618334692dc2e5feebcd", kill_on_drop: false }` [INFO] [stdout] 8a1ac2cb81085ad27f1dd2ff8ff37e38f753887a3cf1618334692dc2e5feebcd