[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 try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsch00lb0y%2Frust-bpf-fork" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sch00lb0y/rust-bpf-fork on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", 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-1/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: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded which v1.0.3 [INFO] [stderr] Downloaded bcc-sys v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 34da704ab79ed4b55f2392624504038792448b6c0f87a87cbee783aa939e81a4 [INFO] running `Command { std: "docker" "start" "-a" "34da704ab79ed4b55f2392624504038792448b6c0f87a87cbee783aa939e81a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "34da704ab79ed4b55f2392624504038792448b6c0f87a87cbee783aa939e81a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34da704ab79ed4b55f2392624504038792448b6c0f87a87cbee783aa939e81a4", kill_on_drop: false }` [INFO] [stdout] 34da704ab79ed4b55f2392624504038792448b6c0f87a87cbee783aa939e81a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52b3009bd132bee703de6dd01ba122e567ceb8e510ffdbeca9aa11dd03b286a2 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "52b3009bd132bee703de6dd01ba122e567ceb8e510ffdbeca9aa11dd03b286a2", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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 quick-error v1.2.2 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling unicode-width v0.1.4 [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 bitflags v1.0.1 [INFO] [stderr] Compiling ansi_term v0.10.2 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling strsim v0.6.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Checking rustc-demangle v0.1.5 [INFO] [stderr] Checking byteorder v1.2.1 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling textwrap v0.9.0 [INFO] [stderr] Compiling humantime v1.1.1 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.6.2 [INFO] [stderr] Compiling proc-macro2 v0.3.5 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling memchr v1.0.2 [INFO] [stderr] Compiling atty v0.2.6 [INFO] [stderr] Compiling which v1.0.3 [INFO] [stderr] Compiling thread_local v0.3.5 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling aho-corasick v0.6.4 [INFO] [stderr] Compiling clap v2.29.2 [INFO] [stderr] Compiling nom v3.2.1 [INFO] [stderr] Compiling clang-sys v0.23.0 [INFO] [stderr] Compiling quote v0.5.2 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling backtrace-sys v0.1.16 [INFO] [stderr] Compiling cexpr v0.2.2 [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] Checking backtrace v0.3.5 [INFO] [stderr] Checking failure v0.1.1 [INFO] [stderr] Compiling bcc-sys v0.7.0 [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: 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] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&[u8]) + Send` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> Box` [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] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&[u8]) + Send` [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] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&[u8]) + Send` [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: 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] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&[u8]) + Send` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn() -> Box` [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] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&[u8]) + Send` [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] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&[u8]) + Send` [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 a macro (in Nightly builds, run with -Z macro-backtrace for more info) [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] = note: `#[warn(unused_variables)]` on by default [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: 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] [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: field is never read: `table` [INFO] [stdout] --> src/perf.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | table: Table, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `callbacks` [INFO] [stdout] --> src/perf.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | callbacks: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] = note: `#[warn(unused_variables)]` on by default [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: 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] [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: 16 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] | ^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnMut(&[u8]) + Send` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `table` [INFO] [stdout] --> src/perf.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | table: Table, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `callbacks` [INFO] [stdout] --> src/perf.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | callbacks: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [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] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `Box`, found fn item [INFO] [stdout] | help: store this in the heap by calling `Box::new`: `Box::new(perf_data_callback)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<(dyn Fn() -> Box<(dyn for<'r> FnMut(&'r [u8]) + Send + 'static)> + 'static)>` [INFO] [stdout] found fn item `fn() -> Box<(dyn for<'r> FnMut(&'r [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] [INFO] [stdout] [INFO] [stdout] error: aborting due to 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` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "52b3009bd132bee703de6dd01ba122e567ceb8e510ffdbeca9aa11dd03b286a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52b3009bd132bee703de6dd01ba122e567ceb8e510ffdbeca9aa11dd03b286a2", kill_on_drop: false }` [INFO] [stdout] 52b3009bd132bee703de6dd01ba122e567ceb8e510ffdbeca9aa11dd03b286a2