[INFO] fetching crate pfm-sys 0.0.18+libpfm4.13.0-42d6d0c3... [INFO] checking pfm-sys-0.0.18+libpfm4.13.0-42d6d0c3 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate pfm-sys 0.0.18+libpfm4.13.0-42d6d0c3 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate pfm-sys 0.0.18+libpfm4.13.0-42d6d0c3 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate pfm-sys 0.0.18+libpfm4.13.0-42d6d0c3 [INFO] finished tweaking crates.io crate pfm-sys 0.0.18+libpfm4.13.0-42d6d0c3 [INFO] tweaked toml for crates.io crate pfm-sys 0.0.18+libpfm4.13.0-42d6d0c3 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 43 packages to latest compatible versions [INFO] [stderr] Adding bindgen v0.69.4 (available: v0.70.1) [INFO] [stderr] Adding itertools v0.12.1 (available: v0.13.0) [INFO] [stderr] Adding linux-raw-sys v0.4.14 (available: v0.6.5) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding which v4.4.2 (available: v6.0.3) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ee5a27df7913df57ddc49d903459e3dcacb68ff3e81e979431898e71c1981749 [INFO] running `Command { std: "docker" "start" "-a" "ee5a27df7913df57ddc49d903459e3dcacb68ff3e81e979431898e71c1981749", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee5a27df7913df57ddc49d903459e3dcacb68ff3e81e979431898e71c1981749", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee5a27df7913df57ddc49d903459e3dcacb68ff3e81e979431898e71c1981749", kill_on_drop: false }` [INFO] [stdout] ee5a27df7913df57ddc49d903459e3dcacb68ff3e81e979431898e71c1981749 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 945e057ae3798b276a4fc4e29d0bd69168e54dbc2c7c91a65c74b5d25141342d [INFO] running `Command { std: "docker" "start" "-a" "945e057ae3798b276a4fc4e29d0bd69168e54dbc2c7c91a65c74b5d25141342d", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling prettyplease v0.2.22 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling bindgen v0.69.4 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling pfm-sys v0.0.18+libpfm4.13.0-42d6d0c3 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs (15 fixes) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.29s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling pfm-sys v0.0.18+libpfm4.13.0-42d6d0c3 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57134 [INFO] [stdout] | [INFO] [stdout] 3 | ...arg_t) , "::" , stringify ! (idx))) ; } extern "C" { pub fn pfm_initialize () -> pfm_err_t ; } extern "C" { pub fn pfm_terminate () ; ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57189 [INFO] [stdout] | [INFO] [stdout] 3 | ...C" { pub fn pfm_initialize () -> pfm_err_t ; } extern "C" { pub fn pfm_terminate () ; } extern "C" { pub fn pfm_strerror (code : :: st... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57230 [INFO] [stdout] | [INFO] [stdout] 3 | ...e () ; } extern "C" { pub fn pfm_strerror (code : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57346 [INFO] [stdout] | [INFO] [stdout] 3 | ...td :: os :: raw :: c_char ; } extern "C" { pub fn pfm_get_version () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pfm_get_p... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57421 [INFO] [stdout] | [INFO] [stdout] 3 | ...w :: c_int ; } extern "C" { pub fn pfm_get_pmu_info (pmu : pfm_pmu_t , output : * mut pfm_pmu_info_t) -> pfm_err_t ; } extern "C" { pu... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57525 [INFO] [stdout] | [INFO] [stdout] 3 | ..._err_t ; } extern "C" { pub fn pfm_get_event_next (idx : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57637 [INFO] [stdout] | [INFO] [stdout] 3 | ...int ; } extern "C" { pub fn pfm_find_event (str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57755 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn pfm_get_event_info (idx : :: std :: os :: raw :: c_int , os : pfm_os_t , output : * mut pfm_event_info_t) -> pfm_err_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57134 [INFO] [stdout] | [INFO] [stdout] 3 | ...arg_t) , "::" , stringify ! (idx))) ; } extern "C" { pub fn pfm_initialize () -> pfm_err_t ; } extern "C" { pub fn pfm_terminate () ; ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57898 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn pfm_get_os_event_encoding (str_ : * const :: std :: os :: raw :: c_char , dfl_plm : :: std :: os :: raw :: c_int , os : pfm_os_t , args : * mut :: std :: os :: raw :: c_void) -> pfm_err_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57189 [INFO] [stdout] | [INFO] [stdout] 3 | ...C" { pub fn pfm_initialize () -> pfm_err_t ; } extern "C" { pub fn pfm_terminate () ; } extern "C" { pub fn pfm_strerror (code : :: st... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:58110 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn pfm_get_event_attr_info (eidx : :: std :: os :: raw :: c_int , aidx : :: std :: os :: raw :: c_int , os : pfm_os_t , output : * mut pfm_event_attr_info_t) -> pfm_err_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57230 [INFO] [stdout] | [INFO] [stdout] 3 | ...e () ; } extern "C" { pub fn pfm_strerror (code : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57346 [INFO] [stdout] | [INFO] [stdout] 3 | ...td :: os :: raw :: c_char ; } extern "C" { pub fn pfm_get_version () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pfm_get_p... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:58302 [INFO] [stdout] | [INFO] [stdout] 3 | ..._t) -> pfm_err_t ; } extern "C" { pub fn pfm_pmu_validate (pmu_id : pfm_pmu_t , fp : * mut FILE) -> pfm_err_t ; } extern "C" { pub fn ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57421 [INFO] [stdout] | [INFO] [stdout] 3 | ...w :: c_int ; } extern "C" { pub fn pfm_get_pmu_info (pmu : pfm_pmu_t , output : * mut pfm_pmu_info_t) -> pfm_err_t ; } extern "C" { pu... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:58395 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn pfm_get_event_encoding (str_ : * const :: std :: os :: raw :: c_char , dfl_plm : :: std :: os :: raw :: c_int , fstr : * mut * mut :: std :: os :: raw :: c_char , idx : * mut :: std :: os :: raw :: c_int , codes : * mut * mut u64 , count : * mut :: std :: os :: raw :: c_int) -> pfm_err_t ; } # ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57525 [INFO] [stdout] | [INFO] [stdout] 3 | ..._err_t ; } extern "C" { pub fn pfm_get_event_next (idx : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57637 [INFO] [stdout] | [INFO] [stdout] 3 | ...int ; } extern "C" { pub fn pfm_find_event (str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:123517 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn pfm_get_perf_event_encoding (str_ : * const :: std :: os :: raw :: c_char , dfl_plm : :: std :: os :: raw :: c_int , output : * mut perf_event_attr , fstr : * mut * mut :: std :: os :: raw :: c_char , idx : * mut :: std :: os :: raw :: c_int) -> pfm_err_t ; } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57755 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn pfm_get_event_info (idx : :: std :: os :: raw :: c_int , os : pfm_os_t , output : * mut pfm_event_info_t) -> pfm_err_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:57898 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn pfm_get_os_event_encoding (str_ : * const :: std :: os :: raw :: c_char , dfl_plm : :: std :: os :: raw :: c_int , os : pfm_os_t , args : * mut :: std :: os :: raw :: c_void) -> pfm_err_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:58110 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn pfm_get_event_attr_info (eidx : :: std :: os :: raw :: c_int , aidx : :: std :: os :: raw :: c_int , os : pfm_os_t , output : * mut pfm_event_attr_info_t) -> pfm_err_t ; } ex... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:58302 [INFO] [stdout] | [INFO] [stdout] 3 | ..._t) -> pfm_err_t ; } extern "C" { pub fn pfm_pmu_validate (pmu_id : pfm_pmu_t , fp : * mut FILE) -> pfm_err_t ; } extern "C" { pub fn ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:58395 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn pfm_get_event_encoding (str_ : * const :: std :: os :: raw :: c_char , dfl_plm : :: std :: os :: raw :: c_int , fstr : * mut * mut :: std :: os :: raw :: c_char , idx : * mut :: std :: os :: raw :: c_int , codes : * mut * mut u64 , count : * mut :: std :: os :: raw :: c_int) -> pfm_err_t ; } # ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:123517 [INFO] [stdout] | [INFO] [stdout] 3 | ... } extern "C" { pub fn pfm_get_perf_event_encoding (str_ : * const :: std :: os :: raw :: c_char , dfl_plm : :: std :: os :: raw :: c_int , output : * mut perf_event_attr , fstr : * mut * mut :: std :: os :: raw :: c_char , idx : * mut :: std :: os :: raw :: c_int) -> pfm_err_t ; } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:2697 [INFO] [stdout] | [INFO] [stdout] 3 | ..., len : usize) -> & [T] { :: std :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut se... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:2640 [INFO] [stdout] | [INFO] [stdout] 3 | ...self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: std :: slice :: from_raw_parts (se... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:2838 [INFO] [stdout] | [INFO] [stdout] 3 | ...usize) -> & mut [T] { :: std :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: std :: fmt :: Debug for __I... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:2769 [INFO] [stdout] | [INFO] [stdout] 3 | ...f . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: std :: slice :: from_raw_par... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pfm-sys` (lib) due to 14 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:2697 [INFO] [stdout] | [INFO] [stdout] 3 | ..., len : usize) -> & [T] { :: std :: slice :: from_raw_parts (self . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut se... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:2640 [INFO] [stdout] | [INFO] [stdout] 3 | ...self as * mut _ as * mut T } # [inline] pub unsafe fn as_slice (& self , len : usize) -> & [T] { :: std :: slice :: from_raw_parts (se... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:2838 [INFO] [stdout] | [INFO] [stdout] 3 | ...usize) -> & mut [T] { :: std :: slice :: from_raw_parts_mut (self . as_mut_ptr () , len) } } impl < T > :: std :: fmt :: Debug for __I... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> /opt/rustwide/target/debug/build/pfm-sys-b1eafc5ac9ee850c/out/bindings.rs:3:2769 [INFO] [stdout] | [INFO] [stdout] 3 | ...f . as_ptr () , len) } # [inline] pub unsafe fn as_mut_slice (& mut self , len : usize) -> & mut [T] { :: std :: slice :: from_raw_par... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pfm-sys` (lib test) due to 14 previous errors; 2 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "945e057ae3798b276a4fc4e29d0bd69168e54dbc2c7c91a65c74b5d25141342d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "945e057ae3798b276a4fc4e29d0bd69168e54dbc2c7c91a65c74b5d25141342d", kill_on_drop: false }` [INFO] [stdout] 945e057ae3798b276a4fc4e29d0bd69168e54dbc2c7c91a65c74b5d25141342d