[INFO] fetching crate thread_db 0.1.4... [INFO] checking thread_db-0.1.4 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate thread_db 0.1.4 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate thread_db 0.1.4 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 thread_db 0.1.4 [INFO] finished tweaking crates.io crate thread_db 0.1.4 [INFO] tweaked toml for crates.io crate thread_db 0.1.4 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate crates.io crate thread_db 0.1.4 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" "+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] b8cec33116db8087a40e579d1511abc163a3417dbceda5262cceac381cff385d [INFO] running `Command { std: "docker" "start" "-a" "b8cec33116db8087a40e579d1511abc163a3417dbceda5262cceac381cff385d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b8cec33116db8087a40e579d1511abc163a3417dbceda5262cceac381cff385d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8cec33116db8087a40e579d1511abc163a3417dbceda5262cceac381cff385d", kill_on_drop: false }` [INFO] [stdout] b8cec33116db8087a40e579d1511abc163a3417dbceda5262cceac381cff385d [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] e8606d25eba89cfe63e87b06b78c43d927bfcf7925f20d6bb6008a333fa79a09 [INFO] running `Command { std: "docker" "start" "-a" "e8606d25eba89cfe63e87b06b78c43d927bfcf7925f20d6bb6008a333fa79a09", 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.68 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Compiling thiserror-core v1.0.38 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling futures-task v0.3.25 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling parking_lot_core v0.9.6 [INFO] [stderr] Checking futures-sink v0.3.25 [INFO] [stderr] Compiling futures-util v0.3.25 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking twox-hash v1.6.3 [INFO] [stderr] Checking miniz_oxide v0.6.2 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling proc-maps v0.3.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Checking futures-io v0.3.25 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling thread_db v0.1.4 (/tmp/fixit) [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking bitflags v2.4.0 [INFO] [stderr] Checking libloading v0.8.1 [INFO] [stderr] Checking once_cell v1.17.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking flate2 v1.0.25 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking dashmap v5.4.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling dlopen_derive v0.1.4 [INFO] [stderr] Compiling thiserror-core-impl v1.0.38 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Checking dlopen v0.1.8 [INFO] [stderr] Checking futures-executor v0.3.25 [INFO] [stderr] Checking futures v0.3.25 [INFO] [stderr] Checking ruzstd v0.4.0 [INFO] [stderr] Compiling serial_test_derive v2.0.0 [INFO] [stderr] Checking object v0.32.1 [INFO] [stderr] Checking serial_test v2.0.0 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `thread_db` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stderr] --> src/lib.rs:168:89 [INFO] [stderr] | [INFO] [stderr] 168 | if let Err(e) = td_call!(self.lib.td_ta_delete(self.thread_agent)) { Err(e) => { [INFO] [stderr] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stderr] | [INFO] [stderr] help: you might have meant to write a "greater than or equal to" comparison [INFO] [stderr] | [INFO] [stderr] 168 | if let Err(e) = td_call!(self.lib.td_ta_delete(self.thread_agent)) { Err(e) >= { [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:27:6 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:42:3 [INFO] [stdout] | [INFO] [stdout] 42 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 42 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] warning: unused import: `TdThrState` [INFO] [stderr] --> src/lib.rs:6:71 [INFO] [stderr] | [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 81 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 6 | ProcHandle, TdErr, TdTaStats, TdThrAgent, TdThrHandle, TdThrInfo, TdThrState, ThreadDb, [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:122:3 [INFO] [stdout] | [INFO] [stdout] 122 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 122 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 15 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:132:3 [INFO] [stdout] | [INFO] [stdout] 132 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 132 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:147:3 [INFO] [stdout] | [INFO] [stdout] 147 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 147 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:157:3 [INFO] [stdout] | [INFO] [stdout] 157 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 157 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:169:3 [INFO] [stdout] | [INFO] [stdout] 169 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 169 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:181:3 [INFO] [stdout] | [INFO] [stdout] 181 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 181 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:209:3 [INFO] [stdout] | [INFO] [stdout] 209 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 209 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | ($td_expr: expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 27 | ($td_expr: expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | (*handle).pid.as_raw() [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub unsafe extern "C" fn ps_getpid(handle: *mut ProcHandle) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | read((*handle).pid, ps_addr, addr, size).into() [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | / pub unsafe extern "C" fn ps_pdread( [INFO] [stdout] 83 | | handle: *mut ProcHandle, [INFO] [stdout] 84 | | ps_addr: *mut PsAddr, [INFO] [stdout] 85 | | addr: *mut libc::c_void, [INFO] [stdout] 86 | | size: usize, [INFO] [stdout] 87 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | write((*handle).pid, ps_addr, addr, size).into() [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:123:1 [INFO] [stdout] | [INFO] [stdout] 123 | / pub unsafe extern "C" fn ps_pdwrite( [INFO] [stdout] 124 | | handle: *mut ProcHandle, [INFO] [stdout] 125 | | ps_addr: *mut PsAddr, [INFO] [stdout] 126 | | addr: *mut c_void, [INFO] [stdout] 127 | | size: usize, [INFO] [stdout] 128 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | *(registers as *mut user_regs_struct) = r; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | / pub unsafe extern "C" fn ps_lgetregs( [INFO] [stdout] 134 | | _handle: *mut ProcHandle, [INFO] [stdout] 135 | | lwpid: libc::pid_t, [INFO] [stdout] 136 | | registers: *mut libc::c_void, [INFO] [stdout] 137 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:154:48 [INFO] [stdout] | [INFO] [stdout] 154 | sys::ptrace::setregs(Pid::from_raw(lwpid), *registers).into() [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:148:1 [INFO] [stdout] | [INFO] [stdout] 148 | / pub unsafe extern "C" fn ps_lsetregs( [INFO] [stdout] 149 | | _handle: *mut ProcHandle, [INFO] [stdout] 150 | | lwpid: libc::pid_t, [INFO] [stdout] 151 | | registers: *mut libc::c_void, [INFO] [stdout] 152 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `nix::libc::ptrace` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:163:11 [INFO] [stdout] | [INFO] [stdout] 163 | match libc::ptrace(libc::PTRACE_GETFPREGS, lwpid, 0, registers) { [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] --> src/proc_service.rs:158:1 [INFO] [stdout] | [INFO] [stdout] 158 | / pub unsafe extern "C" fn ps_lgetfpregs( [INFO] [stdout] 159 | | _handle: *mut ProcHandle, [INFO] [stdout] 160 | | lwpid: libc::pid_t, [INFO] [stdout] 161 | | registers: *mut libc::c_void, [INFO] [stdout] 162 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `nix::libc::ptrace` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:175:11 [INFO] [stdout] | [INFO] [stdout] 175 | match libc::ptrace(libc::PTRACE_SETFPREGS, lwpid, 0, registers) { [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] --> src/proc_service.rs:170:1 [INFO] [stdout] | [INFO] [stdout] 170 | / pub unsafe extern "C" fn ps_lsetfpregs( [INFO] [stdout] 171 | | _handle: *mut ProcHandle, [INFO] [stdout] 172 | | lwpid: libc::pid_t, [INFO] [stdout] 173 | | registers: *mut libc::c_void, [INFO] [stdout] 174 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:188:24 [INFO] [stdout] | [INFO] [stdout] 188 | let _object_name = CStr::from_ptr(object_name).to_str().unwrap(); [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] --> src/proc_service.rs:182:1 [INFO] [stdout] | [INFO] [stdout] 182 | / pub unsafe extern "C" fn ps_pglobal_lookup( [INFO] [stdout] 183 | | handle: *mut ProcHandle, [INFO] [stdout] 184 | | object_name: *const libc::c_char, [INFO] [stdout] 185 | | sym_name: *const libc::c_char, [INFO] [stdout] 186 | | sym_addr: *mut *mut PsAddr, [INFO] [stdout] 187 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:189:20 [INFO] [stdout] | [INFO] [stdout] 189 | let sym_name = CStr::from_ptr(sym_name).to_str().unwrap(); [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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:191:20 [INFO] [stdout] | [INFO] [stdout] 191 | let symbols = &(*handle).symbols; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | *sym_addr = *addr as *mut PsAddr; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | *addr = reg_val as *mut PsAddr; [INFO] [stdout] | ^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:210:1 [INFO] [stdout] | [INFO] [stdout] 210 | / pub unsafe extern "C" fn ps_get_thread_area( [INFO] [stdout] 211 | | _handle: *mut ProcHandle, [INFO] [stdout] 212 | | lwpid: libc::pid_t, [INFO] [stdout] 213 | | idx: i32, [INFO] [stdout] 214 | | addr: *mut *mut PsAddr, [INFO] [stdout] 215 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | (*threads).push(*handle); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | / unsafe extern "C" fn thr_iter_callback( [INFO] [stdout] 111 | | handle: *const TdThrHandle, [INFO] [stdout] 112 | | cbdata: *mut libc::c_void, [INFO] [stdout] 113 | | ) -> i32 { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | (*threads).push(*handle); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:174:16 [INFO] [stdout] | [INFO] [stdout] 27 | ($td_expr: expr) => {{ [INFO] [stdout] | __________________________- [INFO] [stdout] 28 | | let err = $td_expr; [INFO] [stdout] 29 | | match err { [INFO] [stdout] 30 | | TdErr::Ok => Ok(()), [INFO] [stdout] 31 | | _ => Err(ThreadDbError::LibError(err)), [INFO] [stdout] 32 | | } [INFO] [stdout] 33 | | }}; [INFO] [stdout] | |_____- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] ... [INFO] [stdout] 174 | if let Err(e) = td_call!(self.lib.td_ta_delete(self.thread_agent)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lib.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 27 ~ ($td_expr: expr) => {match }; [INFO] [stdout] 28 | } [INFO] [stdout] ... [INFO] [stdout] 167 | unsafe { [INFO] [stdout] 168 ~ if let Err(e) = td_call!(self.lib.td_ta_delete(self.thread_agent)) { Err(e) => { [INFO] [stdout] 169 | panic!("thread_db: td_ta_delete returns {}", e); [INFO] [stdout] 170 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating src/bin/tls_test.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `thread_db` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>` [INFO] [stderr] --> src/lib.rs:168:89 [INFO] [stderr] | [INFO] [stderr] 168 | if let Err(e) = td_call!(self.lib.td_ta_delete(self.thread_agent)) { Err(e) => { [INFO] [stderr] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stderr] | [INFO] [stderr] help: you might have meant to write a "greater than or equal to" comparison [INFO] [stderr] | [INFO] [stderr] 168 | if let Err(e) = td_call!(self.lib.td_ta_delete(self.thread_agent)) { Err(e) >= { [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:27:6 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:42:3 [INFO] [stdout] | [INFO] [stdout] 42 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 42 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 81 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:122:3 [INFO] [stdout] | [INFO] [stdout] 122 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 122 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:132:3 [INFO] [stdout] | [INFO] [stdout] 132 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 132 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:147:3 [INFO] [stdout] | [INFO] [stdout] 147 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 147 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:157:3 [INFO] [stdout] | [INFO] [stdout] 157 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 157 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] error: macro expansion ends with an incomplete expression: expected expression [INFO] [stderr] --> src/lib.rs:27:36 [INFO] [stderr] | [INFO] [stderr] 27 | ($td_expr: expr_2021) => {match }; [INFO] [stderr] | -----^ expected expression [INFO] [stderr] | | [INFO] [stderr] | while parsing this `match` expression [INFO] [stderr] [INFO] [stderr] warning: unused import: `TdThrState` [INFO] [stderr] --> src/lib.rs:6:71 [INFO] [stderr] | [INFO] [stderr] 6 | ProcHandle, TdErr, TdTaStats, TdThrAgent, TdThrHandle, TdThrInfo, TdThrState, ThreadDb, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 15 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:169:3 [INFO] [stdout] | [INFO] [stdout] 169 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 169 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:181:3 [INFO] [stdout] | [INFO] [stdout] 181 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 181 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:209:3 [INFO] [stdout] | [INFO] [stdout] 209 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 209 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | ($td_expr: expr) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 27 | ($td_expr: expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | (*handle).pid.as_raw() [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub unsafe extern "C" fn ps_getpid(handle: *mut ProcHandle) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | read((*handle).pid, ps_addr, addr, size).into() [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | / pub unsafe extern "C" fn ps_pdread( [INFO] [stdout] 83 | | handle: *mut ProcHandle, [INFO] [stdout] 84 | | ps_addr: *mut PsAddr, [INFO] [stdout] 85 | | addr: *mut libc::c_void, [INFO] [stdout] 86 | | size: usize, [INFO] [stdout] 87 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | write((*handle).pid, ps_addr, addr, size).into() [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:123:1 [INFO] [stdout] | [INFO] [stdout] 123 | / pub unsafe extern "C" fn ps_pdwrite( [INFO] [stdout] 124 | | handle: *mut ProcHandle, [INFO] [stdout] 125 | | ps_addr: *mut PsAddr, [INFO] [stdout] 126 | | addr: *mut c_void, [INFO] [stdout] 127 | | size: usize, [INFO] [stdout] 128 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | *(registers as *mut user_regs_struct) = r; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | / pub unsafe extern "C" fn ps_lgetregs( [INFO] [stdout] 134 | | _handle: *mut ProcHandle, [INFO] [stdout] 135 | | lwpid: libc::pid_t, [INFO] [stdout] 136 | | registers: *mut libc::c_void, [INFO] [stdout] 137 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:154:48 [INFO] [stdout] | [INFO] [stdout] 154 | sys::ptrace::setregs(Pid::from_raw(lwpid), *registers).into() [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:148:1 [INFO] [stdout] | [INFO] [stdout] 148 | / pub unsafe extern "C" fn ps_lsetregs( [INFO] [stdout] 149 | | _handle: *mut ProcHandle, [INFO] [stdout] 150 | | lwpid: libc::pid_t, [INFO] [stdout] 151 | | registers: *mut libc::c_void, [INFO] [stdout] 152 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `nix::libc::ptrace` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:163:11 [INFO] [stdout] | [INFO] [stdout] 163 | match libc::ptrace(libc::PTRACE_GETFPREGS, lwpid, 0, registers) { [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] --> src/proc_service.rs:158:1 [INFO] [stdout] | [INFO] [stdout] 158 | / pub unsafe extern "C" fn ps_lgetfpregs( [INFO] [stdout] 159 | | _handle: *mut ProcHandle, [INFO] [stdout] 160 | | lwpid: libc::pid_t, [INFO] [stdout] 161 | | registers: *mut libc::c_void, [INFO] [stdout] 162 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `nix::libc::ptrace` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:175:11 [INFO] [stdout] | [INFO] [stdout] 175 | match libc::ptrace(libc::PTRACE_SETFPREGS, lwpid, 0, registers) { [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] --> src/proc_service.rs:170:1 [INFO] [stdout] | [INFO] [stdout] 170 | / pub unsafe extern "C" fn ps_lsetfpregs( [INFO] [stdout] 171 | | _handle: *mut ProcHandle, [INFO] [stdout] 172 | | lwpid: libc::pid_t, [INFO] [stdout] 173 | | registers: *mut libc::c_void, [INFO] [stdout] 174 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:188:24 [INFO] [stdout] | [INFO] [stdout] 188 | let _object_name = CStr::from_ptr(object_name).to_str().unwrap(); [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] --> src/proc_service.rs:182:1 [INFO] [stdout] | [INFO] [stdout] 182 | / pub unsafe extern "C" fn ps_pglobal_lookup( [INFO] [stdout] 183 | | handle: *mut ProcHandle, [INFO] [stdout] 184 | | object_name: *const libc::c_char, [INFO] [stdout] 185 | | sym_name: *const libc::c_char, [INFO] [stdout] 186 | | sym_addr: *mut *mut PsAddr, [INFO] [stdout] 187 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:189:20 [INFO] [stdout] | [INFO] [stdout] 189 | let sym_name = CStr::from_ptr(sym_name).to_str().unwrap(); [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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:191:20 [INFO] [stdout] | [INFO] [stdout] 191 | let symbols = &(*handle).symbols; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | *sym_addr = *addr as *mut PsAddr; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | *addr = reg_val as *mut PsAddr; [INFO] [stdout] | ^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:210:1 [INFO] [stdout] | [INFO] [stdout] 210 | / pub unsafe extern "C" fn ps_get_thread_area( [INFO] [stdout] 211 | | _handle: *mut ProcHandle, [INFO] [stdout] 212 | | lwpid: libc::pid_t, [INFO] [stdout] 213 | | idx: i32, [INFO] [stdout] 214 | | addr: *mut *mut PsAddr, [INFO] [stdout] 215 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | (*threads).push(*handle); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | / unsafe extern "C" fn thr_iter_callback( [INFO] [stdout] 111 | | handle: *const TdThrHandle, [INFO] [stdout] 112 | | cbdata: *mut libc::c_void, [INFO] [stdout] 113 | | ) -> i32 { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | (*threads).push(*handle); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:174:16 [INFO] [stdout] | [INFO] [stdout] 27 | ($td_expr: expr) => {{ [INFO] [stdout] | __________________________- [INFO] [stdout] 28 | | let err = $td_expr; [INFO] [stdout] 29 | | match err { [INFO] [stdout] 30 | | TdErr::Ok => Ok(()), [INFO] [stdout] 31 | | _ => Err(ThreadDbError::LibError(err)), [INFO] [stdout] 32 | | } [INFO] [stdout] 33 | | }}; [INFO] [stdout] | |_____- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] ... [INFO] [stdout] 174 | if let Err(e) = td_call!(self.lib.td_ta_delete(self.thread_agent)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lib.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 27 ~ ($td_expr: expr) => {match }; [INFO] [stdout] 28 | } [INFO] [stdout] ... [INFO] [stdout] 167 | unsafe { [INFO] [stdout] 168 ~ if let Err(e) = td_call!(self.lib.td_ta_delete(self.thread_agent)) { Err(e) => { [INFO] [stdout] 169 | panic!("thread_db: td_ta_delete returns {}", e); [INFO] [stdout] 170 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/thread_db.rs from 2021 edition to 2024 [INFO] [stdout] warning: struct `LinkMap` is never constructed [INFO] [stdout] --> tests/thread_db.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | struct LinkMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.51s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling thread_db v0.1.4 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:42:3 [INFO] [stdout] | [INFO] [stdout] 42 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 42 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:42:3 [INFO] [stdout] | [INFO] [stdout] 42 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 42 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 81 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 81 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:122:3 [INFO] [stdout] | [INFO] [stdout] 122 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 122 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:132:3 [INFO] [stdout] | [INFO] [stdout] 132 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 132 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:147:3 [INFO] [stdout] | [INFO] [stdout] 147 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 147 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:122:3 [INFO] [stdout] | [INFO] [stdout] 122 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 122 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:157:3 [INFO] [stdout] | [INFO] [stdout] 157 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 157 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:169:3 [INFO] [stdout] | [INFO] [stdout] 169 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 169 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:132:3 [INFO] [stdout] | [INFO] [stdout] 132 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 132 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:181:3 [INFO] [stdout] | [INFO] [stdout] 181 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 181 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:209:3 [INFO] [stdout] | [INFO] [stdout] 209 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 209 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:147:3 [INFO] [stdout] | [INFO] [stdout] 147 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 147 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:157:3 [INFO] [stdout] | [INFO] [stdout] 157 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 157 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:169:3 [INFO] [stdout] | [INFO] [stdout] 169 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 169 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:181:3 [INFO] [stdout] | [INFO] [stdout] 181 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 181 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/proc_service.rs:209:3 [INFO] [stdout] | [INFO] [stdout] 209 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 209 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | (*handle).pid.as_raw() [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub unsafe extern "C" fn ps_getpid(handle: *mut ProcHandle) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | read((*handle).pid, ps_addr, addr, size).into() [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | / pub unsafe extern "C" fn ps_pdread( [INFO] [stdout] 83 | | handle: *mut ProcHandle, [INFO] [stdout] 84 | | ps_addr: *mut PsAddr, [INFO] [stdout] 85 | | addr: *mut libc::c_void, [INFO] [stdout] 86 | | size: usize, [INFO] [stdout] 87 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | write((*handle).pid, ps_addr, addr, size).into() [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:123:1 [INFO] [stdout] | [INFO] [stdout] 123 | / pub unsafe extern "C" fn ps_pdwrite( [INFO] [stdout] 124 | | handle: *mut ProcHandle, [INFO] [stdout] 125 | | ps_addr: *mut PsAddr, [INFO] [stdout] 126 | | addr: *mut c_void, [INFO] [stdout] 127 | | size: usize, [INFO] [stdout] 128 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | *(registers as *mut user_regs_struct) = r; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | / pub unsafe extern "C" fn ps_lgetregs( [INFO] [stdout] 134 | | _handle: *mut ProcHandle, [INFO] [stdout] 135 | | lwpid: libc::pid_t, [INFO] [stdout] 136 | | registers: *mut libc::c_void, [INFO] [stdout] 137 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:154:48 [INFO] [stdout] | [INFO] [stdout] 154 | sys::ptrace::setregs(Pid::from_raw(lwpid), *registers).into() [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:148:1 [INFO] [stdout] | [INFO] [stdout] 148 | / pub unsafe extern "C" fn ps_lsetregs( [INFO] [stdout] 149 | | _handle: *mut ProcHandle, [INFO] [stdout] 150 | | lwpid: libc::pid_t, [INFO] [stdout] 151 | | registers: *mut libc::c_void, [INFO] [stdout] 152 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `nix::libc::ptrace` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:163:11 [INFO] [stdout] | [INFO] [stdout] 163 | match libc::ptrace(libc::PTRACE_GETFPREGS, lwpid, 0, registers) { [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] --> src/proc_service.rs:158:1 [INFO] [stdout] | [INFO] [stdout] 158 | / pub unsafe extern "C" fn ps_lgetfpregs( [INFO] [stdout] 159 | | _handle: *mut ProcHandle, [INFO] [stdout] 160 | | lwpid: libc::pid_t, [INFO] [stdout] 161 | | registers: *mut libc::c_void, [INFO] [stdout] 162 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `nix::libc::ptrace` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:175:11 [INFO] [stdout] | [INFO] [stdout] 175 | match libc::ptrace(libc::PTRACE_SETFPREGS, lwpid, 0, registers) { [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] --> src/proc_service.rs:170:1 [INFO] [stdout] | [INFO] [stdout] 170 | / pub unsafe extern "C" fn ps_lsetfpregs( [INFO] [stdout] 171 | | _handle: *mut ProcHandle, [INFO] [stdout] 172 | | lwpid: libc::pid_t, [INFO] [stdout] 173 | | registers: *mut libc::c_void, [INFO] [stdout] 174 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:188:24 [INFO] [stdout] | [INFO] [stdout] 188 | let _object_name = CStr::from_ptr(object_name).to_str().unwrap(); [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] --> src/proc_service.rs:182:1 [INFO] [stdout] | [INFO] [stdout] 182 | / pub unsafe extern "C" fn ps_pglobal_lookup( [INFO] [stdout] 183 | | handle: *mut ProcHandle, [INFO] [stdout] 184 | | object_name: *const libc::c_char, [INFO] [stdout] 185 | | sym_name: *const libc::c_char, [INFO] [stdout] 186 | | sym_addr: *mut *mut PsAddr, [INFO] [stdout] 187 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:189:20 [INFO] [stdout] | [INFO] [stdout] 189 | let sym_name = CStr::from_ptr(sym_name).to_str().unwrap(); [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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:191:20 [INFO] [stdout] | [INFO] [stdout] 191 | let symbols = &(*handle).symbols; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | *sym_addr = *addr as *mut PsAddr; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | *addr = reg_val as *mut PsAddr; [INFO] [stdout] | ^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:210:1 [INFO] [stdout] | [INFO] [stdout] 210 | / pub unsafe extern "C" fn ps_get_thread_area( [INFO] [stdout] 211 | | _handle: *mut ProcHandle, [INFO] [stdout] 212 | | lwpid: libc::pid_t, [INFO] [stdout] 213 | | idx: i32, [INFO] [stdout] 214 | | addr: *mut *mut PsAddr, [INFO] [stdout] 215 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | (*handle).pid.as_raw() [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | pub unsafe extern "C" fn ps_getpid(handle: *mut ProcHandle) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 88 | read((*handle).pid, ps_addr, addr, size).into() [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | / pub unsafe extern "C" fn ps_pdread( [INFO] [stdout] 83 | | handle: *mut ProcHandle, [INFO] [stdout] 84 | | ps_addr: *mut PsAddr, [INFO] [stdout] 85 | | addr: *mut libc::c_void, [INFO] [stdout] 86 | | size: usize, [INFO] [stdout] 87 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:129:11 [INFO] [stdout] | [INFO] [stdout] 129 | write((*handle).pid, ps_addr, addr, size).into() [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:123:1 [INFO] [stdout] | [INFO] [stdout] 123 | / pub unsafe extern "C" fn ps_pdwrite( [INFO] [stdout] 124 | | handle: *mut ProcHandle, [INFO] [stdout] 125 | | ps_addr: *mut PsAddr, [INFO] [stdout] 126 | | addr: *mut c_void, [INFO] [stdout] 127 | | size: usize, [INFO] [stdout] 128 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | *(registers as *mut user_regs_struct) = r; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | / pub unsafe extern "C" fn ps_lgetregs( [INFO] [stdout] 134 | | _handle: *mut ProcHandle, [INFO] [stdout] 135 | | lwpid: libc::pid_t, [INFO] [stdout] 136 | | registers: *mut libc::c_void, [INFO] [stdout] 137 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:154:48 [INFO] [stdout] | [INFO] [stdout] 154 | sys::ptrace::setregs(Pid::from_raw(lwpid), *registers).into() [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:148:1 [INFO] [stdout] | [INFO] [stdout] 148 | / pub unsafe extern "C" fn ps_lsetregs( [INFO] [stdout] 149 | | _handle: *mut ProcHandle, [INFO] [stdout] 150 | | lwpid: libc::pid_t, [INFO] [stdout] 151 | | registers: *mut libc::c_void, [INFO] [stdout] 152 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `nix::libc::ptrace` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:163:11 [INFO] [stdout] | [INFO] [stdout] 163 | match libc::ptrace(libc::PTRACE_GETFPREGS, lwpid, 0, registers) { [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] --> src/proc_service.rs:158:1 [INFO] [stdout] | [INFO] [stdout] 158 | / pub unsafe extern "C" fn ps_lgetfpregs( [INFO] [stdout] 159 | | _handle: *mut ProcHandle, [INFO] [stdout] 160 | | lwpid: libc::pid_t, [INFO] [stdout] 161 | | registers: *mut libc::c_void, [INFO] [stdout] 162 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `nix::libc::ptrace` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:175:11 [INFO] [stdout] | [INFO] [stdout] 175 | match libc::ptrace(libc::PTRACE_SETFPREGS, lwpid, 0, registers) { [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] --> src/proc_service.rs:170:1 [INFO] [stdout] | [INFO] [stdout] 170 | / pub unsafe extern "C" fn ps_lsetfpregs( [INFO] [stdout] 171 | | _handle: *mut ProcHandle, [INFO] [stdout] 172 | | lwpid: libc::pid_t, [INFO] [stdout] 173 | | registers: *mut libc::c_void, [INFO] [stdout] 174 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:188:24 [INFO] [stdout] | [INFO] [stdout] 188 | let _object_name = CStr::from_ptr(object_name).to_str().unwrap(); [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] --> src/proc_service.rs:182:1 [INFO] [stdout] | [INFO] [stdout] 182 | / pub unsafe extern "C" fn ps_pglobal_lookup( [INFO] [stdout] 183 | | handle: *mut ProcHandle, [INFO] [stdout] 184 | | object_name: *const libc::c_char, [INFO] [stdout] 185 | | sym_name: *const libc::c_char, [INFO] [stdout] 186 | | sym_addr: *mut *mut PsAddr, [INFO] [stdout] 187 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:189:20 [INFO] [stdout] | [INFO] [stdout] 189 | let sym_name = CStr::from_ptr(sym_name).to_str().unwrap(); [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] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:191:20 [INFO] [stdout] | [INFO] [stdout] 191 | let symbols = &(*handle).symbols; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | *sym_addr = *addr as *mut PsAddr; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | (*threads).push(*handle); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | / unsafe extern "C" fn thr_iter_callback( [INFO] [stdout] 111 | | handle: *const TdThrHandle, [INFO] [stdout] 112 | | cbdata: *mut libc::c_void, [INFO] [stdout] 113 | | ) -> i32 { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | (*threads).push(*handle); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/proc_service.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | *addr = reg_val as *mut PsAddr; [INFO] [stdout] | ^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/proc_service.rs:210:1 [INFO] [stdout] | [INFO] [stdout] 210 | / pub unsafe extern "C" fn ps_get_thread_area( [INFO] [stdout] 211 | | _handle: *mut ProcHandle, [INFO] [stdout] 212 | | lwpid: libc::pid_t, [INFO] [stdout] 213 | | idx: i32, [INFO] [stdout] 214 | | addr: *mut *mut PsAddr, [INFO] [stdout] 215 | | ) -> PsErr { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | (*threads).push(*handle); [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/lib.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | / unsafe extern "C" fn thr_iter_callback( [INFO] [stdout] 111 | | handle: *const TdThrHandle, [INFO] [stdout] 112 | | cbdata: *mut libc::c_void, [INFO] [stdout] 113 | | ) -> i32 { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | (*threads).push(*handle); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `thread_db` (lib) due to 10 previous errors; 14 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 9 previous errors; 14 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 `thread_db` (lib test) due to 10 previous errors; 14 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" "e8606d25eba89cfe63e87b06b78c43d927bfcf7925f20d6bb6008a333fa79a09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8606d25eba89cfe63e87b06b78c43d927bfcf7925f20d6bb6008a333fa79a09", kill_on_drop: false }` [INFO] [stdout] e8606d25eba89cfe63e87b06b78c43d927bfcf7925f20d6bb6008a333fa79a09