[INFO] fetching crate ffi_helpers 0.3.0... [INFO] checking ffi_helpers-0.3.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate ffi_helpers 0.3.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate ffi_helpers 0.3.0 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 ffi_helpers 0.3.0 [INFO] finished tweaking crates.io crate ffi_helpers 0.3.0 [INFO] tweaked toml for crates.io crate ffi_helpers 0.3.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 8 packages to latest compatible versions [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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] c6932de4a798595205c153d98fdef86a6b95601b7e92f6fa600f68c2da7a23cf [INFO] running `Command { std: "docker" "start" "-a" "c6932de4a798595205c153d98fdef86a6b95601b7e92f6fa600f68c2da7a23cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c6932de4a798595205c153d98fdef86a6b95601b7e92f6fa600f68c2da7a23cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6932de4a798595205c153d98fdef86a6b95601b7e92f6fa600f68c2da7a23cf", kill_on_drop: false }` [INFO] [stdout] c6932de4a798595205c153d98fdef86a6b95601b7e92f6fa600f68c2da7a23cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] ab32b907cb55c9a62f36fac19f8ac700f252d7686e29ef8fbe997db96076781c [INFO] running `Command { std: "docker" "start" "-a" "ab32b907cb55c9a62f36fac19f8ac700f252d7686e29ef8fbe997db96076781c", 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 anyhow v1.0.89 [INFO] [stderr] Checking ffi_helpers v0.3.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `ffi_helpers` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/nullable.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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/nullable.rs:131:6 [INFO] [stderr] | [INFO] [stderr] 131 | ($ptr:expr_2021) => { [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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/nullable.rs:134:6 [INFO] [stderr] | [INFO] [stderr] 134 | ($ptr:expr_2021, $null:expr_2021) => {{ [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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/nullable.rs:134:22 [INFO] [stderr] | [INFO] [stderr] 134 | ($ptr:expr_2021, $null:expr_2021) => {{ [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: aborting due to 3 previous errors [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: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/nullable.rs:131:11 [INFO] [stdout] | [INFO] [stdout] 131 | ($ptr: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] 131 | ($ptr:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/nullable.rs:134:11 [INFO] [stdout] | [INFO] [stdout] 134 | ($ptr:expr, $null: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] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 134 | ($ptr:expr_2021, $null:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/nullable.rs:134:23 [INFO] [stdout] | [INFO] [stdout] 134 | ($ptr:expr, $null: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] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 134 | ($ptr:expr, $null:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/error_handling.rs:135:18 [INFO] [stdout] | [INFO] [stdout] 135 | let buffer = slice::from_raw_parts_mut(buf as *mut u8, length as usize); [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/error_handling.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub unsafe fn error_message_utf8(buf: *mut c_char, length: c_int) -> c_int { [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]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/error_handling.rs:146:18 [INFO] [stdout] | [INFO] [stdout] 146 | let buffer = slice::from_raw_parts_mut(buf, length as usize); [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/error_handling.rs:144:1 [INFO] [stdout] | [INFO] [stdout] 144 | pub unsafe fn error_message_utf16(buf: *mut u16, length: c_int) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 95 | impl_split!(;); [INFO] [stdout] | -------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 95 | impl_split!(;); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 96 | impl_split!(A; A); [INFO] [stdout] | ----------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 96 | impl_split!(A; A); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 97 | impl_split!(A, B; A, B); [INFO] [stdout] | ----------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 97 | impl_split!(A, B; A, B); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 98 | impl_split!(A, B, C; A, B, C); [INFO] [stdout] | ----------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl_split!(A, B, C; A, B, C); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 99 | impl_split!(A, B, C, D; A, B, C, D); [INFO] [stdout] | ----------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 99 | impl_split!(A, B, C, D; A, B, C, D); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 100 | impl_split!(A, B, C, D, E; A, B, C, D, E); [INFO] [stdout] | ----------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 100 | impl_split!(A, B, C, D, E; A, B, C, D, E); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 101 | impl_split!(A, B, C, D, E, F; A, B, C, D, E, F); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 101 | impl_split!(A, B, C, D, E, F; A, B, C, D, E, F); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 102 | impl_split!(A, B, C, D, E, F, G; A, B, C, D, E, F, G); [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 102 | impl_split!(A, B, C, D, E, F, G; A, B, C, D, E, F, G); [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 103 | impl_split!(A, B, C, D, E, F, G, H; A, B, C, D, E, F, G, H); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 103 | impl_split!(A, B, C, D, E, F, G, H; A, B, C, D, E, F, G, H); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 104 | impl_split!(A, B, C, D, E, F, G, H, I; A, B, C, D, E, F, G, H, I); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 104 | impl_split!(A, B, C, D, E, F, G, H, I; A, B, C, D, E, F, G, H, I); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 105 | impl_split!(A, B, C, D, E, F, G, H, I, K; A, B, C, D, E, F, G, H, I, K); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 105 | impl_split!(A, B, C, D, E, F, G, H, I, K; A, B, C, D, E, F, G, H, I, K); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 106 | impl_split!(A, B, C, D, E, F, G, H, I, K, L; A, B, C, D, E, F, G, H, I, K, L); [INFO] [stdout] | ----------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 106 | impl_split!(A, B, C, D, E, F, G, H, I, K, L; A, B, C, D, E, F, G, H, I, K, L); [INFO] [stdout] | ----------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 107 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M; A, B, C, D, E, F, G, H, I, K, L, M); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 107 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M; A, B, C, D, E, F, G, H, I, K, L, M); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 108 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N; A, B, C, D, E, F, G, H, I, K, L, M, N); [INFO] [stdout] | ----------------------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 108 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N; A, B, C, D, E, F, G, H, I, K, L, M, N); [INFO] [stdout] | ----------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 109 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N, O; A, B, C, D, E, F, G, H, I, K, L, M, N, O); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 109 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N, O; A, B, C, D, E, F, G, H, I, K, L, M, N, O); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/panic.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | if let Some(msg) = e.downcast_ref::() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^-^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 88 | Some(msg.clone()) [INFO] [stdout] 89 | } else if let Some(msg) = e.downcast_ref::<&str>() { [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] = 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/panic.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | } else if let Some(msg) = e.downcast_ref::<&str>() { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/panic.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | } else { [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] 87 ~ match e.downcast_ref::() { Some(msg) => { [INFO] [stdout] 88 | Some(msg.clone()) [INFO] [stdout] 89 ~ } _ => { match e.downcast_ref::<&str>() { Some(msg) => { [INFO] [stdout] 90 | Some(msg.to_string()) [INFO] [stdout] 91 ~ } _ => { [INFO] [stdout] 92 | None [INFO] [stdout] 93 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `ffi_helpers` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/nullable.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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/nullable.rs:131:6 [INFO] [stderr] | [INFO] [stderr] 131 | ($ptr:expr_2021) => { [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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/nullable.rs:134:6 [INFO] [stderr] | [INFO] [stderr] 134 | ($ptr:expr_2021, $null:expr_2021) => {{ [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[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/nullable.rs:134:22 [INFO] [stderr] | [INFO] [stderr] 134 | ($ptr:expr_2021, $null:expr_2021) => {{ [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: aborting due to 3 previous errors [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/task.rs:169:11 [INFO] [stdout] | [INFO] [stdout] 169 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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] = note: this warning originates in the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [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/task.rs:248:11 [INFO] [stdout] | [INFO] [stdout] 248 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 248 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/task.rs:191:11 [INFO] [stdout] | [INFO] [stdout] 191 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 191 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/task.rs:271:11 [INFO] [stdout] | [INFO] [stdout] 271 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 271 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/task.rs:283:11 [INFO] [stdout] | [INFO] [stdout] 283 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 283 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/task.rs:216:11 [INFO] [stdout] | [INFO] [stdout] 216 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 216 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/task.rs:229:11 [INFO] [stdout] | [INFO] [stdout] 229 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 229 | #[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/nullable.rs:131:11 [INFO] [stdout] | [INFO] [stdout] 131 | ($ptr: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] 131 | ($ptr:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/nullable.rs:134:11 [INFO] [stdout] | [INFO] [stdout] 134 | ($ptr:expr, $null: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] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 134 | ($ptr:expr_2021, $null:expr) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/nullable.rs:134:23 [INFO] [stdout] | [INFO] [stdout] 134 | ($ptr:expr, $null: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] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 134 | ($ptr:expr, $null: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/task.rs:173:26 [INFO] [stdout] | [INFO] [stdout] 173 | let task = (&*task).clone(); [INFO] [stdout] | ^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | pub unsafe extern "C" fn $spawn(task: *const $Task) -> *mut $crate::task::TaskHandle<<$Task as $crate::Task>::Output> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:254:26 [INFO] [stdout] | [INFO] [stdout] 254 | let handle = Box::from_raw(handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | / pub unsafe extern "C" fn $wait(handle: *mut $crate::task::TaskHandle<<$Task as $crate::Task>::Output>) [INFO] [stdout] 251 | | -> *mut <$Task as $crate::Task>::Output [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | match (&*handle).poll() { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | pub unsafe extern "C" fn $poll(handle: *mut $crate::task::TaskHandle<<$Task as $crate::Task>::Output>) -> *mut <$Task as $crate::Task>::Outpu... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:275:15 [INFO] [stdout] | [INFO] [stdout] 275 | (&*handle).cancel(); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 273 | pub unsafe extern "C" fn $cancel(handle: *mut $crate::task::TaskHandle<<$Task as $crate::Task>::Output>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:287:18 [INFO] [stdout] | [INFO] [stdout] 287 | if (&*handle).cancelled() { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | pub unsafe extern "C" fn $cancelled(handle: *mut $crate::task::TaskHandle<<$Task as $crate::Task>::Output>) -> ::std::os::raw::c_in... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:220:26 [INFO] [stdout] | [INFO] [stdout] 220 | let handle = Box::from_raw(handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | pub unsafe extern "C" fn $handle_destructor(handle: *mut $crate::task::TaskHandle<<$Task as $crate::Task>::Output>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 233 | let result = Box::from_raw(result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | pub unsafe extern "C" fn $result_destroy(result: *mut <$Task as $crate::Task>::Output) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/error_handling.rs:135:18 [INFO] [stdout] | [INFO] [stdout] 135 | let buffer = slice::from_raw_parts_mut(buf as *mut u8, length as usize); [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/error_handling.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub unsafe fn error_message_utf8(buf: *mut c_char, length: c_int) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/error_handling.rs:146:18 [INFO] [stdout] | [INFO] [stdout] 146 | let buffer = slice::from_raw_parts_mut(buf, length as usize); [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/error_handling.rs:144:1 [INFO] [stdout] | [INFO] [stdout] 144 | pub unsafe fn error_message_utf16(buf: *mut u16, length: c_int) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 95 | impl_split!(;); [INFO] [stdout] | -------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 95 | impl_split!(;); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 96 | impl_split!(A; A); [INFO] [stdout] | ----------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 96 | impl_split!(A; A); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 97 | impl_split!(A, B; A, B); [INFO] [stdout] | ----------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 97 | impl_split!(A, B; A, B); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 98 | impl_split!(A, B, C; A, B, C); [INFO] [stdout] | ----------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl_split!(A, B, C; A, B, C); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 99 | impl_split!(A, B, C, D; A, B, C, D); [INFO] [stdout] | ----------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 99 | impl_split!(A, B, C, D; A, B, C, D); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 100 | impl_split!(A, B, C, D, E; A, B, C, D, E); [INFO] [stdout] | ----------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 100 | impl_split!(A, B, C, D, E; A, B, C, D, E); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 101 | impl_split!(A, B, C, D, E, F; A, B, C, D, E, F); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 101 | impl_split!(A, B, C, D, E, F; A, B, C, D, E, F); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 102 | impl_split!(A, B, C, D, E, F, G; A, B, C, D, E, F, G); [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 102 | impl_split!(A, B, C, D, E, F, G; A, B, C, D, E, F, G); [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 103 | impl_split!(A, B, C, D, E, F, G, H; A, B, C, D, E, F, G, H); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 103 | impl_split!(A, B, C, D, E, F, G, H; A, B, C, D, E, F, G, H); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 104 | impl_split!(A, B, C, D, E, F, G, H, I; A, B, C, D, E, F, G, H, I); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 104 | impl_split!(A, B, C, D, E, F, G, H, I; A, B, C, D, E, F, G, H, I); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 105 | impl_split!(A, B, C, D, E, F, G, H, I, K; A, B, C, D, E, F, G, H, I, K); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 105 | impl_split!(A, B, C, D, E, F, G, H, I, K; A, B, C, D, E, F, G, H, I, K); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 106 | impl_split!(A, B, C, D, E, F, G, H, I, K, L; A, B, C, D, E, F, G, H, I, K, L); [INFO] [stdout] | ----------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 106 | impl_split!(A, B, C, D, E, F, G, H, I, K, L; A, B, C, D, E, F, G, H, I, K, L); [INFO] [stdout] | ----------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 107 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M; A, B, C, D, E, F, G, H, I, K, L, M); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 107 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M; A, B, C, D, E, F, G, H, I, K, L, M); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 108 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N; A, B, C, D, E, F, G, H, I, K, L, M, N); [INFO] [stdout] | ----------------------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 108 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N; A, B, C, D, E, F, G, H, I, K, L, M, N); [INFO] [stdout] | ----------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 109 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N, O; A, B, C, D, E, F, G, H, I, K, L, M, N, O); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 109 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N, O; A, B, C, D, E, F, G, H, I, K, L, M, N, O); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/task.rs:547:12 [INFO] [stdout] | [INFO] [stdout] 547 | if let Some(p) = err.downcast_ref::() { [INFO] [stdout] | ^^^^^^^^^^^^^^---^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [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] = 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/task.rs:549:9 [INFO] [stdout] | [INFO] [stdout] 549 | } else { [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] 547 ~ match err.downcast_ref::() { Some(p) => { [INFO] [stdout] 548 | assert_eq!(p.message, PANIC_MESSAGE); [INFO] [stdout] 549 ~ } _ => { [INFO] [stdout] 550 | panic!("Expected a panic failure, got {}", err); [INFO] [stdout] 551 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/panic.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | if let Some(msg) = e.downcast_ref::() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^-^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 88 | Some(msg.clone()) [INFO] [stdout] 89 | } else if let Some(msg) = e.downcast_ref::<&str>() { [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] = 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/panic.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | } else if let Some(msg) = e.downcast_ref::<&str>() { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/panic.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 87 ~ match e.downcast_ref::() { Some(msg) => { [INFO] [stdout] 88 | Some(msg.clone()) [INFO] [stdout] 89 ~ } _ => { match e.downcast_ref::<&str>() { Some(msg) => { [INFO] [stdout] 90 | Some(msg.to_string()) [INFO] [stdout] 91 ~ } _ => { [INFO] [stdout] 92 | None [INFO] [stdout] 93 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.71s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking ffi_helpers v0.3.0 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/task.rs:169:11 [INFO] [stdout] | [INFO] [stdout] 169 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [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/task.rs:248:11 [INFO] [stdout] | [INFO] [stdout] 248 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 248 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/task.rs:191:11 [INFO] [stdout] | [INFO] [stdout] 191 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 191 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/task.rs:271:11 [INFO] [stdout] | [INFO] [stdout] 271 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 271 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/task.rs:283:11 [INFO] [stdout] | [INFO] [stdout] 283 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 283 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/task.rs:216:11 [INFO] [stdout] | [INFO] [stdout] 216 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 216 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/task.rs:229:11 [INFO] [stdout] | [INFO] [stdout] 229 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 229 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/error_handling.rs:135:18 [INFO] [stdout] | [INFO] [stdout] 135 | let buffer = slice::from_raw_parts_mut(buf as *mut u8, length as usize); [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/error_handling.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub unsafe fn error_message_utf8(buf: *mut c_char, length: c_int) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/error_handling.rs:146:18 [INFO] [stdout] | [INFO] [stdout] 146 | let buffer = slice::from_raw_parts_mut(buf, length as usize); [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/error_handling.rs:144:1 [INFO] [stdout] | [INFO] [stdout] 144 | pub unsafe fn error_message_utf16(buf: *mut u16, length: c_int) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 95 | impl_split!(;); [INFO] [stdout] | -------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 95 | impl_split!(;); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 96 | impl_split!(A; A); [INFO] [stdout] | ----------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 96 | impl_split!(A; A); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 97 | impl_split!(A, B; A, B); [INFO] [stdout] | ----------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 97 | impl_split!(A, B; A, B); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 98 | impl_split!(A, B, C; A, B, C); [INFO] [stdout] | ----------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl_split!(A, B, C; A, B, C); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 99 | impl_split!(A, B, C, D; A, B, C, D); [INFO] [stdout] | ----------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 99 | impl_split!(A, B, C, D; A, B, C, D); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 100 | impl_split!(A, B, C, D, E; A, B, C, D, E); [INFO] [stdout] | ----------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 100 | impl_split!(A, B, C, D, E; A, B, C, D, E); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 101 | impl_split!(A, B, C, D, E, F; A, B, C, D, E, F); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 101 | impl_split!(A, B, C, D, E, F; A, B, C, D, E, F); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 102 | impl_split!(A, B, C, D, E, F, G; A, B, C, D, E, F, G); [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 102 | impl_split!(A, B, C, D, E, F, G; A, B, C, D, E, F, G); [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 103 | impl_split!(A, B, C, D, E, F, G, H; A, B, C, D, E, F, G, H); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 103 | impl_split!(A, B, C, D, E, F, G, H; A, B, C, D, E, F, G, H); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 104 | impl_split!(A, B, C, D, E, F, G, H, I; A, B, C, D, E, F, G, H, I); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 104 | impl_split!(A, B, C, D, E, F, G, H, I; A, B, C, D, E, F, G, H, I); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 105 | impl_split!(A, B, C, D, E, F, G, H, I, K; A, B, C, D, E, F, G, H, I, K); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 105 | impl_split!(A, B, C, D, E, F, G, H, I, K; A, B, C, D, E, F, G, H, I, K); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 106 | impl_split!(A, B, C, D, E, F, G, H, I, K, L; A, B, C, D, E, F, G, H, I, K, L); [INFO] [stdout] | ----------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 106 | impl_split!(A, B, C, D, E, F, G, H, I, K, L; A, B, C, D, E, F, G, H, I, K, L); [INFO] [stdout] | ----------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 107 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M; A, B, C, D, E, F, G, H, I, K, L, M); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 107 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M; A, B, C, D, E, F, G, H, I, K, L, M); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 108 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N; A, B, C, D, E, F, G, H, I, K, L, M, N); [INFO] [stdout] | ----------------------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 108 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N; A, B, C, D, E, F, G, H, I, K, L, M, N); [INFO] [stdout] | ----------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 109 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N, O; A, B, C, D, E, F, G, H, I, K, L, M, N, O); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 109 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N, O; A, B, C, D, E, F, G, H, I, K, L, M, N, O); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:173:26 [INFO] [stdout] | [INFO] [stdout] 173 | let task = (&*task).clone(); [INFO] [stdout] | ^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | pub unsafe extern "C" fn $spawn(task: *const $Task) -> *mut $crate::task::TaskHandle<<$Task as $crate::Task>::Output> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] = note: this warning originates in the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:254:26 [INFO] [stdout] | [INFO] [stdout] 254 | let handle = Box::from_raw(handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | / pub unsafe extern "C" fn $wait(handle: *mut $crate::task::TaskHandle<<$Task as $crate::Task>::Output>) [INFO] [stdout] 251 | | -> *mut <$Task as $crate::Task>::Output [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | match (&*handle).poll() { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | pub unsafe extern "C" fn $poll(handle: *mut $crate::task::TaskHandle<<$Task as $crate::Task>::Output>) -> *mut <$Task as $crate::Task>::Outpu... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:275:15 [INFO] [stdout] | [INFO] [stdout] 275 | (&*handle).cancel(); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 273 | pub unsafe extern "C" fn $cancel(handle: *mut $crate::task::TaskHandle<<$Task as $crate::Task>::Output>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:287:18 [INFO] [stdout] | [INFO] [stdout] 287 | if (&*handle).cancelled() { [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | pub unsafe extern "C" fn $cancelled(handle: *mut $crate::task::TaskHandle<<$Task as $crate::Task>::Output>) -> ::std::os::raw::c_in... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:220:26 [INFO] [stdout] | [INFO] [stdout] 220 | let handle = Box::from_raw(handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | pub unsafe extern "C" fn $handle_destructor(handle: *mut $crate::task::TaskHandle<<$Task as $crate::Task>::Output>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/task.rs:233:26 [INFO] [stdout] | [INFO] [stdout] 233 | let result = Box::from_raw(result); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [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/task.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | pub unsafe extern "C" fn $result_destroy(result: *mut <$Task as $crate::Task>::Output) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 479 | / export_task! { [INFO] [stdout] 480 | | Task: Spin; [INFO] [stdout] 481 | | spawn: spin_spawn; [INFO] [stdout] 482 | | wait: spin_wait; [INFO] [stdout] ... | [INFO] [stdout] 487 | | result_destroy: spin_result_destroy; [INFO] [stdout] 488 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `$crate::export_task` which comes from the expansion of the macro `export_task` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/error_handling.rs:135:18 [INFO] [stdout] | [INFO] [stdout] 135 | let buffer = slice::from_raw_parts_mut(buf as *mut u8, length as usize); [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/error_handling.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub unsafe fn error_message_utf8(buf: *mut c_char, length: c_int) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/error_handling.rs:146:18 [INFO] [stdout] | [INFO] [stdout] 146 | let buffer = slice::from_raw_parts_mut(buf, length as usize); [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/error_handling.rs:144:1 [INFO] [stdout] | [INFO] [stdout] 144 | pub unsafe fn error_message_utf16(buf: *mut u16, length: c_int) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 95 | impl_split!(;); [INFO] [stdout] | -------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 95 | impl_split!(;); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 96 | impl_split!(A; A); [INFO] [stdout] | ----------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 96 | impl_split!(A; A); [INFO] [stdout] | ----------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 97 | impl_split!(A, B; A, B); [INFO] [stdout] | ----------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 97 | impl_split!(A, B; A, B); [INFO] [stdout] | ----------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 98 | impl_split!(A, B, C; A, B, C); [INFO] [stdout] | ----------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 98 | impl_split!(A, B, C; A, B, C); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 99 | impl_split!(A, B, C, D; A, B, C, D); [INFO] [stdout] | ----------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 99 | impl_split!(A, B, C, D; A, B, C, D); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 100 | impl_split!(A, B, C, D, E; A, B, C, D, E); [INFO] [stdout] | ----------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 100 | impl_split!(A, B, C, D, E; A, B, C, D, E); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 101 | impl_split!(A, B, C, D, E, F; A, B, C, D, E, F); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 101 | impl_split!(A, B, C, D, E, F; A, B, C, D, E, F); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 102 | impl_split!(A, B, C, D, E, F, G; A, B, C, D, E, F, G); [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 102 | impl_split!(A, B, C, D, E, F, G; A, B, C, D, E, F, G); [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 103 | impl_split!(A, B, C, D, E, F, G, H; A, B, C, D, E, F, G, H); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 103 | impl_split!(A, B, C, D, E, F, G, H; A, B, C, D, E, F, G, H); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 104 | impl_split!(A, B, C, D, E, F, G, H, I; A, B, C, D, E, F, G, H, I); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 104 | impl_split!(A, B, C, D, E, F, G, H, I; A, B, C, D, E, F, G, H, I); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 105 | impl_split!(A, B, C, D, E, F, G, H, I, K; A, B, C, D, E, F, G, H, I, K); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 105 | impl_split!(A, B, C, D, E, F, G, H, I, K; A, B, C, D, E, F, G, H, I, K); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 106 | impl_split!(A, B, C, D, E, F, G, H, I, K, L; A, B, C, D, E, F, G, H, I, K, L); [INFO] [stdout] | ----------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 106 | impl_split!(A, B, C, D, E, F, G, H, I, K, L; A, B, C, D, E, F, G, H, I, K, L); [INFO] [stdout] | ----------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 107 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M; A, B, C, D, E, F, G, H, I, K, L, M); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 107 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M; A, B, C, D, E, F, G, H, I, K, L, M); [INFO] [stdout] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 108 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N; A, B, C, D, E, F, G, H, I, K, L, M, N); [INFO] [stdout] | ----------------------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 108 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N; A, B, C, D, E, F, G, H, I, K, L, M, N); [INFO] [stdout] | ----------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/split.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let callback: &mut T = &mut *(ptr as *mut T); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] ... [INFO] [stdout] 109 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N, O; A, B, C, D, E, F, G, H, I, K, L, M, N, O); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [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/split.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | / unsafe extern "C" fn trampoline(ptr: *mut c_void, $($inner: $inner),*) -> Ret_ [INFO] [stdout] 79 | | where [INFO] [stdout] 80 | | T: FnMut($($inner),*) -> Ret_, [INFO] [stdout] | |__________________________________________________^ [INFO] [stdout] ... [INFO] [stdout] 109 | impl_split!(A, B, C, D, E, F, G, H, I, K, L, M, N, O; A, B, C, D, E, F, G, H, I, K, L, M, N, O); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_split` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 24 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 `ffi_helpers` (lib test) due to 8 previous errors; 24 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" "ab32b907cb55c9a62f36fac19f8ac700f252d7686e29ef8fbe997db96076781c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab32b907cb55c9a62f36fac19f8ac700f252d7686e29ef8fbe997db96076781c", kill_on_drop: false }` [INFO] [stdout] ab32b907cb55c9a62f36fac19f8ac700f252d7686e29ef8fbe997db96076781c