[INFO] fetching crate perfmon 0.2.2... [INFO] checking perfmon-0.2.2 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate perfmon 0.2.2 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate perfmon 0.2.2 [INFO] finished tweaking crates.io crate perfmon 0.2.2 [INFO] tweaked toml for crates.io crate perfmon 0.2.2 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate perfmon 0.2.2 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate perfmon 0.2.2 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mach-sys v0.5.4 [INFO] [stderr] Downloaded cc v1.0.92 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd7d845125898093d2df6062e22e872bcec81f77c9f892ab37e2ad3ed8faae40 [INFO] running `Command { std: "docker" "start" "-a" "dd7d845125898093d2df6062e22e872bcec81f77c9f892ab37e2ad3ed8faae40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd7d845125898093d2df6062e22e872bcec81f77c9f892ab37e2ad3ed8faae40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd7d845125898093d2df6062e22e872bcec81f77c9f892ab37e2ad3ed8faae40", kill_on_drop: false }` [INFO] [stdout] dd7d845125898093d2df6062e22e872bcec81f77c9f892ab37e2ad3ed8faae40 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 247a6643620ef40d69dd0191d3b8aca9388aca29050cc103952b2616caa9a74d [INFO] running `Command { std: "docker" "start" "-a" "247a6643620ef40d69dd0191d3b8aca9388aca29050cc103952b2616caa9a74d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling cc v1.0.92 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling libloading v0.8.3 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling bindgen v0.59.2 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling portable-atomic v1.6.0 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling anyhow v1.0.81 [INFO] [stderr] Compiling clang-sys v1.7.0 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Compiling procfs v0.16.0 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking fastrand v2.0.2 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking object v0.32.2 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking chrono v0.4.37 [INFO] [stderr] Compiling backtrace v0.3.71 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking procfs-core v0.16.0 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Checking thiserror v1.0.58 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling perfmon v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Error` and `Result` [INFO] [stdout] --> src/mem/process_memory_info.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{Error, Result}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::*` [INFO] [stdout] --> src/lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use utils::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error` and `Result` [INFO] [stdout] --> src/mem/process_memory_info.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{Error, Result}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::*` [INFO] [stdout] --> src/lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use utils::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature `test` [INFO] [stdout] --> src/lib.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | extern crate test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #50297 for more information [INFO] [stdout] = help: add `#![feature(test)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-08-13; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `fd::android_linux::fd_count_cur` [INFO] [stdout] --> src/fd/android_linux.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | let count = fd_count_cur().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `fd::android_linux::fd_count_cur` [INFO] [stdout] --> src/fd/android_linux.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | let count = fd_count_cur().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cpu::android_linux::ThreadStat::cpu` [INFO] [stdout] --> src/cpu/mod.rs:159:16 [INFO] [stdout] | [INFO] [stdout] 159 | self.0.cpu() [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/io/mod.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 65 | return get_process_io_stats_impl(); [INFO] [stdout] | ---------------------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 68 | anyhow::bail!("cannot get I/O stats: this platform is not supported"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `anyhow::bail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cpu::android_linux::ThreadStat::cpu` [INFO] [stdout] --> src/cpu/mod.rs:159:16 [INFO] [stdout] | [INFO] [stdout] 159 | self.0.cpu() [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pid` is never read [INFO] [stdout] --> src/cpu/mod.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct ProcessStat { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 69 | pid: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `CPU_INFO` is never used [INFO] [stdout] --> src/cpu/android_linux.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub static CPU_INFO: Lazy = [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_task` is never used [INFO] [stdout] --> src/cpu/android_linux.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn current_task() -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `cur` and `build` are never used [INFO] [stdout] --> src/cpu/android_linux.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 142 | impl ThreadStat { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn cur() -> std::io::Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn build(tid: ThreadId)-> std::io::Result{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_cputime` is never used [INFO] [stdout] --> src/cpu/android_linux.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn process_cputime>(pid: T) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fd_count_pid` is never used [INFO] [stdout] --> src/fd/android_linux.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn fd_count_pid>(pid: T) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fd_count_cur` is never used [INFO] [stdout] --> src/fd/android_linux.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn fd_count_cur() -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `HandleUpgrade` is never used [INFO] [stdout] --> src/utils/ptr_upgrade.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait HandleUpgrade: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cpu::ThreadStat::cpu` [INFO] [stdout] --> src/cpu/mod.rs:208:26 [INFO] [stdout] | [INFO] [stdout] 208 | let usage = stat.cpu().unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cpu::ThreadStat::cpu` [INFO] [stdout] --> src/cpu/mod.rs:219:26 [INFO] [stdout] | [INFO] [stdout] 219 | let usage = stat.cpu().unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/io/mod.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 65 | return get_process_io_stats_impl(); [INFO] [stdout] | ---------------------------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 68 | anyhow::bail!("cannot get I/O stats: this platform is not supported"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `anyhow::bail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] [INFO] [stderr] error: could not compile `perfmon` (lib test) due to 1 previous error; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: use of deprecated function `perfmon::fd_count_cur` [INFO] [stdout] --> examples/activity_monitor.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | use perfmon::fd::fd_count_cur; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `perfmon::fd_count_cur` [INFO] [stdout] --> examples/activity_monitor.rs:49:22 [INFO] [stdout] | [INFO] [stdout] 49 | let fd_num = fd_count_cur().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `perfmon::ProcessStat::cur` [INFO] [stdout] --> examples/activity_monitor.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 16 | let mut stat_p = ProcessStat::cur().unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `perfmon::ThreadStat::cur` [INFO] [stdout] --> examples/activity_monitor.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | let mut stat_t = ThreadStat::cur().unwrap(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `perfmon::ThreadStat::cpu` [INFO] [stdout] --> examples/activity_monitor.rs:33:30 [INFO] [stdout] | [INFO] [stdout] 33 | let usage_t = stat_t.cpu().unwrap() * 100f64; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `perfmon::ThreadStat::cpu` [INFO] [stdout] --> examples/activity_monitor.rs:68:56 [INFO] [stdout] | [INFO] [stdout] 68 | println!("{i} cpu usage: {:?}", t_stat.cpu()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/activity_monitor.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut stat_p = ProcessStat::cur().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/activity_monitor.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut stat_t = ThreadStat::cur().unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "247a6643620ef40d69dd0191d3b8aca9388aca29050cc103952b2616caa9a74d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "247a6643620ef40d69dd0191d3b8aca9388aca29050cc103952b2616caa9a74d", kill_on_drop: false }` [INFO] [stdout] 247a6643620ef40d69dd0191d3b8aca9388aca29050cc103952b2616caa9a74d