[INFO] cloning repository https://github.com/sch00lb0y/rust-bpf-fork [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sch00lb0y/rust-bpf-fork" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsch00lb0y%2Frust-bpf-fork", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsch00lb0y%2Frust-bpf-fork'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ccaae5cde90bd459d2d3d490a84cc172b64e77e6 [INFO] checking sch00lb0y/rust-bpf-fork against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsch00lb0y%2Frust-bpf-fork" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sch00lb0y/rust-bpf-fork on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sch00lb0y/rust-bpf-fork [INFO] finished tweaking git repo https://github.com/sch00lb0y/rust-bpf-fork [INFO] tweaked toml for git repo https://github.com/sch00lb0y/rust-bpf-fork written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sch00lb0y/rust-bpf-fork already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cexpr v0.2.2 [INFO] [stderr] Downloaded which v1.0.3 [INFO] [stderr] Downloaded clap v2.29.2 [INFO] [stderr] Downloaded bcc-sys v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6f180330917e36966443b3319e53d9fac3226b50634643e8c83e285f09e65e72 [INFO] running `Command { std: "docker" "start" "-a" "6f180330917e36966443b3319e53d9fac3226b50634643e8c83e285f09e65e72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6f180330917e36966443b3319e53d9fac3226b50634643e8c83e285f09e65e72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f180330917e36966443b3319e53d9fac3226b50634643e8c83e285f09e65e72", kill_on_drop: false }` [INFO] [stdout] 6f180330917e36966443b3319e53d9fac3226b50634643e8c83e285f09e65e72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bafdad0f3ad34fee8eb51642f07ca34b5f15e28b32fe0ebb302be9255623bd11 [INFO] running `Command { std: "docker" "start" "-a" "bafdad0f3ad34fee8eb51642f07ca34b5f15e28b32fe0ebb302be9255623bd11", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling cc v1.0.4 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling regex v1.0.2 [INFO] [stderr] Compiling lazy_static v1.0.0 [INFO] [stderr] Compiling unicode-width v0.1.4 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling regex-syntax v0.6.2 [INFO] [stderr] Compiling thread_local v0.3.5 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling humantime v1.1.1 [INFO] [stderr] Compiling proc-macro2 v0.3.5 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling clang-sys v0.23.0 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling memchr v1.0.2 [INFO] [stderr] Compiling atty v0.2.6 [INFO] [stderr] Compiling textwrap v0.9.0 [INFO] [stderr] Compiling aho-corasick v0.6.4 [INFO] [stderr] Compiling nom v3.2.1 [INFO] [stderr] Compiling termcolor v1.0.1 [INFO] [stderr] Compiling bindgen v0.37.4 [INFO] [stderr] Compiling vec_map v0.8.0 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling strsim v0.6.0 [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling ansi_term v0.10.2 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling backtrace-sys v0.1.16 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling quote v0.5.2 [INFO] [stderr] Compiling clap v2.29.2 [INFO] [stderr] Compiling which v1.0.3 [INFO] [stderr] Compiling cexpr v0.2.2 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Checking rustc-demangle v0.1.5 [INFO] [stderr] Checking byteorder v1.2.1 [INFO] [stderr] Compiling synstructure v0.6.1 [INFO] [stderr] Compiling failure_derive v0.1.1 [INFO] [stderr] Compiling env_logger v0.5.12 [INFO] [stderr] Compiling bcc-sys v0.7.0 [INFO] [stderr] Checking backtrace v0.3.5 [INFO] [stderr] Checking failure v0.1.1 [INFO] [stderr] Checking bcc v0.0.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `types::MutPointer` [INFO] [stdout] --> src/core/uprobe.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use types::MutPointer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/core/uprobe.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/perf.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/table.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/perf.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | raw_cb: Box, [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] 15 | raw_cb: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/perf.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | cb: Box Box>, [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] 56 | cb: Box Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/perf.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | cb: Box Box>, [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] 56 | cb: Box Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/perf.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | raw_cb: Box, [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] 116 | raw_cb: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::MutPointer` [INFO] [stdout] --> src/core/uprobe.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use types::MutPointer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr` [INFO] [stdout] --> src/core/uprobe.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::ptr; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/perf.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/table.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `std` is imported redundantly [INFO] [stdout] --> src/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std; [INFO] [stdout] | ^^^ the item `std` is already imported by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cpuonline.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | / lazy_static! { [INFO] [stdout] 50 | | static ref TEST: Vec> = vec![ [INFO] [stdout] 51 | | TestData { [INFO] [stdout] 52 | | data: "", [INFO] [stdout] ... | [INFO] [stdout] 96 | | ]; [INFO] [stdout] 97 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/perf.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | raw_cb: Box, [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] 15 | raw_cb: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/perf.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | cb: Box Box>, [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] 56 | cb: Box Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/perf.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | cb: Box Box>, [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] 56 | cb: Box Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/perf.rs:116:17 [INFO] [stdout] | [INFO] [stdout] 116 | raw_cb: Box, [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] 116 | raw_cb: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/core/uprobe.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | let (cpu, group_fd) = (0, -1); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group_fd` [INFO] [stdout] --> src/core/uprobe.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | let (cpu, group_fd) = (0, -1); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_group_fd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid` [INFO] [stdout] --> src/core/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | let (pid, cpu, group_fd) = (-1, 0, -1); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/core/mod.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | let (pid, cpu, group_fd) = (-1, 0, -1); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group_fd` [INFO] [stdout] --> src/core/mod.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 40 | let (pid, cpu, group_fd) = (-1, 0, -1); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_group_fd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid` [INFO] [stdout] --> src/core/mod.rs:111:14 [INFO] [stdout] | [INFO] [stdout] 111 | let (pid, cpu, group_fd) = (-1, 0, -1); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/core/mod.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 111 | let (pid, cpu, group_fd) = (-1, 0, -1); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group_fd` [INFO] [stdout] --> src/core/mod.rs:111:24 [INFO] [stdout] | [INFO] [stdout] 111 | let (pid, cpu, group_fd) = (-1, 0, -1); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_group_fd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code_fd` and `p` are never read [INFO] [stdout] --> src/core/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Kprobe { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 29 | code_fd: File, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 30 | name: CString, [INFO] [stdout] 31 | p: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Kprobe` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code_fd` and `p` are never read [INFO] [stdout] --> src/core/mod.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct Tracepoint { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 100 | code_fd: File, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 101 | p: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Tracepoint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code_fd` and `p` are never read [INFO] [stdout] --> src/core/uprobe.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Uprobe { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 18 | code_fd: File, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | name: CString, [INFO] [stdout] 20 | p: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Uprobe` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `table` and `callbacks` are never read [INFO] [stdout] --> src/perf.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct PerfMap { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | table: Table, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 50 | readers: Vec, [INFO] [stdout] 51 | callbacks: Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/core/uprobe.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | let (cpu, group_fd) = (0, -1); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group_fd` [INFO] [stdout] --> src/core/uprobe.rs:37:19 [INFO] [stdout] | [INFO] [stdout] 37 | let (cpu, group_fd) = (0, -1); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_group_fd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid` [INFO] [stdout] --> src/core/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | let (pid, cpu, group_fd) = (-1, 0, -1); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/core/mod.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 40 | let (pid, cpu, group_fd) = (-1, 0, -1); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group_fd` [INFO] [stdout] --> src/core/mod.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 40 | let (pid, cpu, group_fd) = (-1, 0, -1); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_group_fd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid` [INFO] [stdout] --> src/core/mod.rs:111:14 [INFO] [stdout] | [INFO] [stdout] 111 | let (pid, cpu, group_fd) = (-1, 0, -1); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cpu` [INFO] [stdout] --> src/core/mod.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 111 | let (pid, cpu, group_fd) = (-1, 0, -1); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cpu` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `group_fd` [INFO] [stdout] --> src/core/mod.rs:111:24 [INFO] [stdout] | [INFO] [stdout] 111 | let (pid, cpu, group_fd) = (-1, 0, -1); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_group_fd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code_fd` and `p` are never read [INFO] [stdout] --> src/core/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Kprobe { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 29 | code_fd: File, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 30 | name: CString, [INFO] [stdout] 31 | p: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Kprobe` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code_fd` and `p` are never read [INFO] [stdout] --> src/core/mod.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct Tracepoint { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 100 | code_fd: File, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 101 | p: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Tracepoint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code_fd` and `p` are never read [INFO] [stdout] --> src/core/uprobe.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Uprobe { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 18 | code_fd: File, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | name: CString, [INFO] [stdout] 20 | p: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Uprobe` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `table` and `callbacks` are never read [INFO] [stdout] --> src/perf.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct PerfMap { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | table: Table, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 50 | readers: Vec, [INFO] [stdout] 51 | callbacks: Vec>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> examples/opensnoop.rs:55:32 [INFO] [stdout] | [INFO] [stdout] 55 | fn perf_data_callback() -> Box { [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] 55 | fn perf_data_callback() -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/opensnoop.rs:46:45 [INFO] [stdout] | [INFO] [stdout] 46 | let mut perf_map = init_perf_map(table, perf_data_callback)?; [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^ expected `Box Box<...>>`, found fn item [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<(dyn Fn() -> Box<(dyn for<'a> FnMut(&'a [u8]) + Send + 'static)> + 'static)>` [INFO] [stdout] found fn item `fn() -> Box<(dyn for<'a> FnMut(&'a [u8]) + Send + 'static)> {perf_data_callback}` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/perf.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn init_perf_map( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 46 | let mut perf_map = init_perf_map(table, Box::new(perf_data_callback))?; [INFO] [stdout] | +++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bcc` (example "opensnoop") due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "bafdad0f3ad34fee8eb51642f07ca34b5f15e28b32fe0ebb302be9255623bd11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bafdad0f3ad34fee8eb51642f07ca34b5f15e28b32fe0ebb302be9255623bd11", kill_on_drop: false }` [INFO] [stdout] bafdad0f3ad34fee8eb51642f07ca34b5f15e28b32fe0ebb302be9255623bd11