[INFO] cloning repository https://github.com/Brendonovich/swift-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Brendonovich/swift-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBrendonovich%2Fswift-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBrendonovich%2Fswift-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f64a4514de07f450ec5b6aa297624cd3479d9579 [INFO] checking Brendonovich/swift-rs/f64a4514de07f450ec5b6aa297624cd3479d9579 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBrendonovich%2Fswift-rs" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Brendonovich/swift-rs 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 git repo https://github.com/Brendonovich/swift-rs [INFO] finished tweaking git repo https://github.com/Brendonovich/swift-rs [INFO] tweaked toml for git repo https://github.com/Brendonovich/swift-rs 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 49 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding dashmap v5.5.3 (available: v6.1.0) [INFO] [stderr] Adding serial_test v0.10.0 (available: v3.1.1) [INFO] [stderr] Adding serial_test_derive v0.10.0 (available: v3.1.1) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [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] c25c20bf523c6ba50d90f321581120a76617ab79d921a9ddc09b4b7560e1e8a2 [INFO] running `Command { std: "docker" "start" "-a" "c25c20bf523c6ba50d90f321581120a76617ab79d921a9ddc09b4b7560e1e8a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c25c20bf523c6ba50d90f321581120a76617ab79d921a9ddc09b4b7560e1e8a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c25c20bf523c6ba50d90f321581120a76617ab79d921a9ddc09b4b7560e1e8a2", kill_on_drop: false }` [INFO] [stdout] c25c20bf523c6ba50d90f321581120a76617ab79d921a9ddc09b4b7560e1e8a2 [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] e49027566149816c926f6a9f726ded807db06d0143099c19b5e76f3cc6bf76f1 [INFO] running `Command { std: "docker" "start" "-a" "e49027566149816c926f6a9f726ded807db06d0143099c19b5e76f3cc6bf76f1", 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] Fixed Cargo.toml (2 fixes) [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Compiling serial_test_derive v0.10.0 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking serial_test v0.10.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling swift-rs v1.0.7 (/tmp/fixit) [INFO] [stderr] Migrating src-rs/test-build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src-rs/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `swift_rs` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src-rs/autorelease.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-rs/autorelease.rs:15:7 [INFO] [stderr] | [INFO] [stderr] 15 | ( $expr: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 1 previous error [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-rs/autorelease.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | ( $expr:expr ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 15 | ( $expr:expr_2021 ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [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 #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [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 #123743 [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [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 #123743 [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [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 #123743 [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `autorelease::*` [INFO] [stdout] --> src-rs/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use autorelease::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::retain_object` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | retain_object(self.0 as *const _ as *const c_void) [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-rs/swift.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) unsafe fn retain(&self) { [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::ptr::NonNull::::as_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | SwiftRef(self.get_object().0.as_ref()) [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-rs/swift.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / unsafe fn swift_ref(&self) -> SwiftRef [INFO] [stdout] 35 | | where [INFO] [stdout] 36 | | Self: Sized, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftRef::<'a, T>::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | self.swift_ref().retain() [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-rs/swift.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / unsafe fn retain(&self) [INFO] [stdout] 46 | | where [INFO] [stdout] 47 | | Self: Sized, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::swift_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | self.swift_ref().retain() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::retain_object::retain_object` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::release_object::release_object` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::data_from_bytes::data_from_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::string_from_bytes::string_from_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::swift_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_arg.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | self.swift_ref() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 67 | ref_impl!(SRObject, SRArray, SRData, SRString); [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-rs/swift_arg.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | unsafe fn as_arg(&'a self) -> Self::ArgType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | ref_impl!(SRObject, SRArray, SRData, SRString); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `ref_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_arg.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | (*self).as_arg() [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-rs/swift_arg.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe fn as_arg(&'a self) -> Self::ArgType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_ret.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | v.retain() [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-rs/swift_ret.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe fn retain(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_ret.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | (*self).retain() [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-rs/swift_ret.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | unsafe fn retain(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 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 `swift_rs` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src-rs/autorelease.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src-rs/autorelease.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | ( $expr:expr ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 15 | ( $expr:expr_2021 ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [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-rs/autorelease.rs:15:7 [INFO] [stderr] | [INFO] [stderr] 15 | ( $expr: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 1 previous error [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: extern blocks should be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [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 #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [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 #123743 [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [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 #123743 [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [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 #123743 [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `autorelease::*` [INFO] [stdout] --> src-rs/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use autorelease::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::retain_object` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | retain_object(self.0 as *const _ as *const c_void) [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-rs/swift.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) unsafe fn retain(&self) { [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::ptr::NonNull::::as_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | SwiftRef(self.get_object().0.as_ref()) [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-rs/swift.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / unsafe fn swift_ref(&self) -> SwiftRef [INFO] [stdout] 35 | | where [INFO] [stdout] 36 | | Self: Sized, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftRef::<'a, T>::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | self.swift_ref().retain() [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-rs/swift.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / unsafe fn retain(&self) [INFO] [stdout] 46 | | where [INFO] [stdout] 47 | | Self: Sized, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::swift_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | self.swift_ref().retain() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::retain_object::retain_object` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::release_object::release_object` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::data_from_bytes::data_from_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::string_from_bytes::string_from_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::swift_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_arg.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | self.swift_ref() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 67 | ref_impl!(SRObject, SRArray, SRData, SRString); [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-rs/swift_arg.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | unsafe fn as_arg(&'a self) -> Self::ArgType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | ref_impl!(SRObject, SRArray, SRData, SRString); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `ref_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_arg.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | (*self).as_arg() [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-rs/swift_arg.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe fn as_arg(&'a self) -> Self::ArgType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_ret.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | v.retain() [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-rs/swift_ret.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe fn retain(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_ret.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | (*self).retain() [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-rs/swift_ret.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | unsafe fn retain(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating tests/test_bindings.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `test_bindings` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * tests/test_bindings.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] --> tests/test_bindings.rs:11:7 [INFO] [stderr] | [INFO] [stderr] 11 | ( $op: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 1 previous error [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> tests/test_bindings.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | ( $op: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] 11 | ( $op:expr_2021 ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.32s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling swift-rs v1.0.7 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | / extern "C" { [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | / extern "C" { [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | / extern "C" { [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | / extern "C" { [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `autorelease::*` [INFO] [stdout] --> src-rs/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use autorelease::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | / extern "C" { [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | / extern "C" { [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | / extern "C" { [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src-rs/swift.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 86 | / extern "C" { [INFO] [stdout] 87 | | fn $name $(<$($lt),*>)? ($($arg: <$arg_ty as $crate::SwiftArg>::ArgType),*) $(-> $ret)?; [INFO] [stdout] 88 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `autorelease::*` [INFO] [stdout] --> src-rs/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use autorelease::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::retain_object` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | retain_object(self.0 as *const _ as *const c_void) [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-rs/swift.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) unsafe fn retain(&self) { [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 `swift::retain_object` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | retain_object(self.0 as *const _ as *const c_void) [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-rs/swift.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) unsafe fn retain(&self) { [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::ptr::NonNull::::as_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | SwiftRef(self.get_object().0.as_ref()) [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-rs/swift.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / unsafe fn swift_ref(&self) -> SwiftRef [INFO] [stdout] 35 | | where [INFO] [stdout] 36 | | Self: Sized, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftRef::<'a, T>::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | self.swift_ref().retain() [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-rs/swift.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / unsafe fn retain(&self) [INFO] [stdout] 46 | | where [INFO] [stdout] 47 | | Self: Sized, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::swift_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | self.swift_ref().retain() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::NonNull::::as_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | SwiftRef(self.get_object().0.as_ref()) [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-rs/swift.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / unsafe fn swift_ref(&self) -> SwiftRef [INFO] [stdout] 35 | | where [INFO] [stdout] 36 | | Self: Sized, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::retain_object::retain_object` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftRef::<'a, T>::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | self.swift_ref().retain() [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-rs/swift.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / unsafe fn retain(&self) [INFO] [stdout] 46 | | where [INFO] [stdout] 47 | | Self: Sized, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::release_object::release_object` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::swift_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | self.swift_ref().retain() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::data_from_bytes::data_from_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::retain_object::retain_object` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 53 | swift!(pub(crate) fn retain_object(obj: *const c_void)); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::string_from_bytes::string_from_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::release_object::release_object` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 54 | swift!(pub(crate) fn release_object(obj: *const c_void)); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::data_from_bytes::data_from_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 55 | swift!(pub(crate) fn data_from_bytes(data: *const u8, size: Int) -> SRData); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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-rs/swift.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 85 | $vis unsafe fn $name $(<$($lt),*>)? ($($arg: $arg_ty),*) $(-> $ret)? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:91:30 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 91 | $(let $arg = $crate::SwiftArg::as_arg(&$arg);)* [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::swift_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_arg.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | self.swift_ref() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 67 | ref_impl!(SRObject, SRArray, SRData, SRString); [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-rs/swift_arg.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | unsafe fn as_arg(&'a self) -> Self::ArgType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | ref_impl!(SRObject, SRArray, SRData, SRString); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `ref_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::string_from_bytes::string_from_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 93 | $name($($arg),*) [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_ret::SwiftRet::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 56 | swift!(pub(crate) fn string_from_bytes(data: *const u8, size: Int) -> SRString); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 96 | $crate::SwiftRet::retain(&res); [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: this warning originates in the macro `swift` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_arg.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | (*self).as_arg() [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-rs/swift_arg.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe fn as_arg(&'a self) -> Self::ArgType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::swift_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_arg.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | self.swift_ref() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 67 | ref_impl!(SRObject, SRArray, SRData, SRString); [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-rs/swift_arg.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | unsafe fn as_arg(&'a self) -> Self::ArgType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | ref_impl!(SRObject, SRArray, SRData, SRString); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `ref_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_ret.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | v.retain() [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-rs/swift_ret.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe fn retain(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_ret.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | (*self).retain() [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-rs/swift_ret.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | unsafe fn retain(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift_arg::SwiftArg::as_arg` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_arg.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | (*self).as_arg() [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-rs/swift_arg.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | unsafe fn as_arg(&'a self) -> Self::ArgType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_ret.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | v.retain() [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-rs/swift_ret.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | unsafe fn retain(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `swift::SwiftObject::retain` is unsafe and requires unsafe block [INFO] [stdout] --> src-rs/swift_ret.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | (*self).retain() [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-rs/swift_ret.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | unsafe fn retain(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 23 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 `swift-rs` (lib) due to 5 previous errors; 23 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `swift-rs` (lib test) due to 5 previous errors; 23 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" "e49027566149816c926f6a9f726ded807db06d0143099c19b5e76f3cc6bf76f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e49027566149816c926f6a9f726ded807db06d0143099c19b5e76f3cc6bf76f1", kill_on_drop: false }` [INFO] [stdout] e49027566149816c926f6a9f726ded807db06d0143099c19b5e76f3cc6bf76f1