[INFO] fetching crate bcc 0.0.34... [INFO] checking bcc-0.0.34 against try#7014e13d5becc920d4bea3cd87942c8a13d359bf+rustflags=-Dtail_expr_drop_order for pr-129864 [INFO] extracting crate bcc 0.0.34 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate bcc 0.0.34 on toolchain 7014e13d5becc920d4bea3cd87942c8a13d359bf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate bcc 0.0.34 [INFO] finished tweaking crates.io crate bcc 0.0.34 [INFO] tweaked toml for crates.io crate bcc 0.0.34 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate bcc 0.0.34 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" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c3b8eff2123ffa2a705f186f790c570251bc3b94ddcc91c12bba5263fbb969af [INFO] running `Command { std: "docker" "start" "-a" "c3b8eff2123ffa2a705f186f790c570251bc3b94ddcc91c12bba5263fbb969af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c3b8eff2123ffa2a705f186f790c570251bc3b94ddcc91c12bba5263fbb969af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3b8eff2123ffa2a705f186f790c570251bc3b94ddcc91c12bba5263fbb969af", kill_on_drop: false }` [INFO] [stdout] c3b8eff2123ffa2a705f186f790c570251bc3b94ddcc91c12bba5263fbb969af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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 -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+7014e13d5becc920d4bea3cd87942c8a13d359bf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d33c61a5213a743c2ba64b1c8da80d14a2ebf770595cc6c2ed902e0ceac623b [INFO] running `Command { std: "docker" "start" "-a" "4d33c61a5213a743c2ba64b1c8da80d14a2ebf770595cc6c2ed902e0ceac623b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling bcc-sys v0.23.0 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Checking unicode-width v0.1.6 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking deranged v0.3.9 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking time v0.3.30 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking ctrlc v3.4.1 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Checking bcc v0.0.34 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `cflags` is never read [INFO] [stdout] --> src/core/mod.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct BPF { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 84 | cflags: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BPF` 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: field `code_fd` is never read [INFO] [stdout] --> src/core/kprobe/v0_9_0.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Kprobe { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 15 | code_fd: File, [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] [INFO] [stdout] [INFO] [stdout] warning: field `code_fd` is never read [INFO] [stdout] --> src/core/perf_event/v0_4_0.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct PerfEvent { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | code_fd: File, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PerfEvent` 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/raw_tracepoint/v0_6_0.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct RawTracepoint { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 12 | name: CString, [INFO] [stdout] 13 | code_fd: File, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | p: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `RawTracepoint` 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/tracepoint/v0_6_0.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Tracepoint { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | code_fd: File, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | 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: field `code_fd` is never read [INFO] [stdout] --> src/core/uprobe/v0_17_0.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Uprobe { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 15 | code_fd: File, [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 `comm`, `pid`, `cpu`, `flags`, `timestamp`, and `msg` are never read [INFO] [stdout] --> src/utils/trace_print.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PrintkItem { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 8 | comm: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | pid: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | cpu: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | flags: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | timestamp: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | msg: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrintkItem` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cflags` is never read [INFO] [stdout] --> src/core/mod.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct BPF { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 84 | cflags: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BPF` 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: field `code_fd` is never read [INFO] [stdout] --> src/core/kprobe/v0_9_0.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Kprobe { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 15 | code_fd: File, [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] [INFO] [stdout] [INFO] [stdout] warning: field `code_fd` is never read [INFO] [stdout] --> src/core/perf_event/v0_4_0.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct PerfEvent { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | code_fd: File, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PerfEvent` 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/raw_tracepoint/v0_6_0.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct RawTracepoint { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 12 | name: CString, [INFO] [stdout] 13 | code_fd: File, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | p: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `RawTracepoint` 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/tracepoint/v0_6_0.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Tracepoint { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | code_fd: File, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | 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: field `code_fd` is never read [INFO] [stdout] --> src/core/uprobe/v0_17_0.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Uprobe { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 15 | code_fd: File, [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 `comm`, `pid`, `cpu`, `flags`, `timestamp`, and `msg` are never read [INFO] [stdout] --> src/utils/trace_print.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PrintkItem { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 8 | comm: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | pid: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | cpu: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | flags: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | timestamp: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | msg: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PrintkItem` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Event` and `SoftwareEvent` [INFO] [stdout] --> examples/bpf_dump_ins.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use bcc::perf_event::{Event, SoftwareEvent}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PerfEventArray` and `PerfEvent` [INFO] [stdout] --> examples/bpf_dump_ins.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use bcc::{PerfEvent, PerfEventArray, BPF}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App` and `Arg` [INFO] [stdout] --> examples/bpf_dump_ins.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | use clap::{App, Arg}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> examples/bpf_dump_ins.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `thread` and `time` [INFO] [stdout] --> examples/bpf_dump_ins.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{thread, time}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runnable` [INFO] [stdout] --> examples/bpf_dump_ins.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | fn do_main(runnable: Arc) -> Result<(), BccError> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runnable` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this value of type `Result` has significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> examples/port_filter.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn recv_loop(mut socket_wrapper: bcc::SocketWrapper) { [INFO] [stdout] | ------------------ these local bindings with significant drop implementation may observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 12 | match socket_wrapper.socket.read(&mut buf) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bcc` (example "port_filter") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `SoftwareEvent` [INFO] [stdout] --> examples/memory.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use bcc::perf_event::{Event, SoftwareEvent}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PerfEvent` [INFO] [stdout] --> examples/memory.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use bcc::{PerfEvent, PerfEventArray, BPF}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_SAMPLE_FREQ` is never used [INFO] [stdout] --> examples/memory.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const DEFAULT_SAMPLE_FREQ: u64 = 99; // Hertz [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4d33c61a5213a743c2ba64b1c8da80d14a2ebf770595cc6c2ed902e0ceac623b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d33c61a5213a743c2ba64b1c8da80d14a2ebf770595cc6c2ed902e0ceac623b", kill_on_drop: false }` [INFO] [stdout] 4d33c61a5213a743c2ba64b1c8da80d14a2ebf770595cc6c2ed902e0ceac623b