[INFO] fetching crate savefile-abi 0.17.7... [INFO] checking savefile-abi-0.17.7 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate savefile-abi 0.17.7 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate savefile-abi 0.17.7 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate savefile-abi 0.17.7 [INFO] finished tweaking crates.io crate savefile-abi 0.17.7 [INFO] tweaked toml for crates.io crate savefile-abi 0.17.7 written to /workspace/builds/worker-7-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 39 packages to latest compatible versions [INFO] [stderr] Adding bit-set v0.5.3 (available: v0.8.0) [INFO] [stderr] Adding bit-vec v0.6.3 (available: v0.8.0) [INFO] [stderr] Adding hashbrown v0.12.3 (available: v0.14.5) [INFO] [stderr] Adding indexmap v1.9.3 (available: v2.5.0) [INFO] [stderr] Adding rustc_version v0.2.3 (available: v0.4.1) [INFO] [stderr] Adding semver v0.9.0 (available: v1.0.23) [INFO] [stderr] Adding semver-parser v0.7.0 (available: v0.10.2) [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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] fc7abe9bf6af43055f4ed3dbc34ebc0346578a28515cb46df7e2c4fc86cda3dc [INFO] running `Command { std: "docker" "start" "-a" "fc7abe9bf6af43055f4ed3dbc34ebc0346578a28515cb46df7e2c4fc86cda3dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc7abe9bf6af43055f4ed3dbc34ebc0346578a28515cb46df7e2c4fc86cda3dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc7abe9bf6af43055f4ed3dbc34ebc0346578a28515cb46df7e2c4fc86cda3dc", kill_on_drop: false }` [INFO] [stdout] fc7abe9bf6af43055f4ed3dbc34ebc0346578a28515cb46df7e2c4fc86cda3dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 0784eee6732bb3e1cba2076696b4581e3c6991ed847406e9be72c70e4609c139 [INFO] running `Command { std: "docker" "start" "-a" "0784eee6732bb3e1cba2076696b4581e3c6991ed847406e9be72c70e4609c139", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Compiling savefile v0.17.7 [INFO] [stderr] Compiling savefile-abi v0.17.7 (/tmp/fixit) [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking libloading v0.8.5 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling savefile-derive v0.17.7 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `savefile_abi` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:1552:28 [INFO] [stderr] | [INFO] [stderr] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 1552 | let data = unsafe { slice::from_raw_parts(data, data_length) }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/lib.rs:2:9 [INFO] [stderr] | [INFO] [stderr] 2 | #![deny(warnings)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: `#[deny(unused_unsafe)]` implied by `#[deny(warnings)]` [INFO] [stderr] [INFO] [stderr] error: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:1554:23 [INFO] [stderr] | [INFO] [stderr] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 1554 | match unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] error: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:1601:13 [INFO] [stderr] | [INFO] [stderr] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 1601 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] error: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:1633:55 [INFO] [stderr] | [INFO] [stderr] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 1633 | AbiProtocol::DropInstance { trait_object } => unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] error: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:1662:17 [INFO] [stderr] | [INFO] [stderr] 1647 | pub unsafe fn abi_entry(flag: AbiProtocol) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 1662 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] error: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:1670:17 [INFO] [stderr] | [INFO] [stderr] 1647 | pub unsafe fn abi_entry(flag: AbiProtocol) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 1670 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:417:5 [INFO] [stdout] | [INFO] [stdout] 417 | / ptr::copy( [INFO] [stdout] 418 | | &trait_object as *const TraitObject as *const MaybeUninit<*mut T>, [INFO] [stdout] 419 | | &mut raw_ptr as *mut MaybeUninit<*mut T>, [INFO] [stdout] 420 | | 1, [INFO] [stdout] 421 | | ); [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/lib.rs:415:1 [INFO] [stdout] | [INFO] [stdout] 415 | unsafe fn destroy_trait_obj(trait_object: TraitObject) { [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::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:423:13 [INFO] [stdout] | [INFO] [stdout] 423 | let _ = Box::from_raw(raw_ptr.assume_init()); [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 `std::mem::MaybeUninit::::assume_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:423:27 [INFO] [stdout] | [INFO] [stdout] 423 | let _ = Box::from_raw(raw_ptr.assume_init()); [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 `AbiConnection::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1331:9 [INFO] [stdout] | [INFO] [stdout] 1331 | Self::from_raw(packed.entry, packed.trait_object, owning) [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/lib.rs:1327:5 [INFO] [stdout] | [INFO] [stdout] 1327 | / pub unsafe fn from_raw_packaged( [INFO] [stdout] 1328 | | packed: PackagedTraitObject, [INFO] [stdout] 1329 | | owning: Owning, [INFO] [stdout] 1330 | | ) -> Result, SavefileError> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1572:25 [INFO] [stdout] | [INFO] [stdout] 1572 | receiver(&err, abi_result) [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/lib.rs:1539:1 [INFO] [stdout] | [INFO] [stdout] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1591:21 [INFO] [stdout] | [INFO] [stdout] 1591 | receiver(&err, abi_result) [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/lib.rs:1539:1 [INFO] [stdout] | [INFO] [stdout] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1619:13 [INFO] [stdout] | [INFO] [stdout] 1619 | callback(result_receiver, schema_version_required, temp.as_ptr(), temp.len()); [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 is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1631:13 [INFO] [stdout] | [INFO] [stdout] 1631 | error_callback(error_receiver, &err as *const _) [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 is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1689:21 [INFO] [stdout] | [INFO] [stdout] 1689 | error_callback(error_receiver, &err as *const _) [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/lib.rs:1647:1 [INFO] [stdout] | [INFO] [stdout] 1647 | pub unsafe fn abi_entry(flag: AbiProtocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `abi_entry_light` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1694:13 [INFO] [stdout] | [INFO] [stdout] 1694 | abi_entry_light::(flag); [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: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:1581:24 [INFO] [stdout] | [INFO] [stdout] 1581 | if let Some(err) = err.downcast_ref::<&str>() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^---^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lib.rs:1583:21 [INFO] [stdout] | [INFO] [stdout] 1583 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1581 ~ match err.downcast_ref::<&str>() { Some(err) => { [INFO] [stdout] 1582 | msg = err; [INFO] [stdout] 1583 ~ } _ => { [INFO] [stdout] 1584 | temp = format!("{:?}", err); [INFO] [stdout] 1585 | msg = &temp; [INFO] [stdout] 1586 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:1679:24 [INFO] [stdout] | [INFO] [stdout] 1679 | if let Some(err) = err.downcast_ref::<&str>() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^---^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lib.rs:1681:21 [INFO] [stdout] | [INFO] [stdout] 1681 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1679 ~ match err.downcast_ref::<&str>() { Some(err) => { [INFO] [stdout] 1680 | msg = err; [INFO] [stdout] 1681 ~ } _ => { [INFO] [stdout] 1682 | temp = format!("{:?}", err); [INFO] [stdout] 1683 | msg = &temp; [INFO] [stdout] 1684 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 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 `savefile_abi` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:417:5 [INFO] [stdout] | [INFO] [stdout] 417 | / ptr::copy( [INFO] [stdout] 418 | | &trait_object as *const TraitObject as *const MaybeUninit<*mut T>, [INFO] [stdout] 419 | | &mut raw_ptr as *mut MaybeUninit<*mut T>, [INFO] [stdout] 420 | | 1, [INFO] [stdout] 421 | | ); [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/lib.rs:415:1 [INFO] [stdout] | [INFO] [stdout] 415 | unsafe fn destroy_trait_obj(trait_object: TraitObject) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:423:13 [INFO] [stdout] | [INFO] [stdout] 423 | let _ = Box::from_raw(raw_ptr.assume_init()); [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] [stderr] * src/lib.rs [INFO] [stdout] warning[E0133]: call to unsafe function `std::mem::MaybeUninit::::assume_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:423:27 [INFO] [stdout] | [INFO] [stdout] 423 | let _ = Box::from_raw(raw_ptr.assume_init()); [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] [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: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:1552:28 [INFO] [stderr] | [INFO] [stderr] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 1552 | let data = unsafe { slice::from_raw_parts(data, data_length) }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/lib.rs:2:9 [INFO] [stderr] | [INFO] [stderr] 2 | #![deny(warnings)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: `#[deny(unused_unsafe)]` implied by `#[deny(warnings)]` [INFO] [stderr] [INFO] [stderr] error: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:1554:23 [INFO] [stderr] | [INFO] [stderr] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 1554 | match unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] error: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:1601:13 [INFO] [stderr] | [INFO] [stderr] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 1601 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] error: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:1633:55 [INFO] [stderr] | [INFO] [stderr] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 1633 | AbiProtocol::DropInstance { trait_object } => unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] error: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:1662:17 [INFO] [stderr] | [INFO] [stderr] 1647 | pub unsafe fn abi_entry(flag: AbiProtocol) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 1662 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] error: unnecessary `unsafe` block [INFO] [stderr] --> src/lib.rs:1670:17 [INFO] [stderr] | [INFO] [stderr] 1647 | pub unsafe fn abi_entry(flag: AbiProtocol) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stdout] warning[E0133]: call to unsafe function `AbiConnection::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1331:9 [INFO] [stdout] | [INFO] [stdout] 1331 | Self::from_raw(packed.entry, packed.trait_object, owning) [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/lib.rs:1327:5 [INFO] [stdout] | [INFO] [stdout] 1327 | / pub unsafe fn from_raw_packaged( [INFO] [stdout] 1328 | | packed: PackagedTraitObject, [INFO] [stdout] 1329 | | owning: Owning, [INFO] [stdout] 1330 | | ) -> Result, SavefileError> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 1670 | unsafe { [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1572:25 [INFO] [stdout] | [INFO] [stdout] 1572 | receiver(&err, abi_result) [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/lib.rs:1539:1 [INFO] [stdout] | [INFO] [stdout] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1591:21 [INFO] [stdout] | [INFO] [stdout] 1591 | receiver(&err, abi_result) [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/lib.rs:1539:1 [INFO] [stdout] | [INFO] [stdout] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1619:13 [INFO] [stdout] | [INFO] [stdout] 1619 | callback(result_receiver, schema_version_required, temp.as_ptr(), temp.len()); [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 is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1631:13 [INFO] [stdout] | [INFO] [stdout] 1631 | error_callback(error_receiver, &err as *const _) [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 is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1689:21 [INFO] [stdout] | [INFO] [stdout] 1689 | error_callback(error_receiver, &err as *const _) [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/lib.rs:1647:1 [INFO] [stdout] | [INFO] [stdout] 1647 | pub unsafe fn abi_entry(flag: AbiProtocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `abi_entry_light` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1694:13 [INFO] [stdout] | [INFO] [stdout] 1694 | abi_entry_light::(flag); [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: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:1581:24 [INFO] [stdout] | [INFO] [stdout] 1581 | if let Some(err) = err.downcast_ref::<&str>() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^---^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lib.rs:1583:21 [INFO] [stdout] | [INFO] [stdout] 1583 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1581 ~ match err.downcast_ref::<&str>() { Some(err) => { [INFO] [stdout] 1582 | msg = err; [INFO] [stdout] 1583 ~ } _ => { [INFO] [stdout] 1584 | temp = format!("{:?}", err); [INFO] [stdout] 1585 | msg = &temp; [INFO] [stdout] 1586 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/lib.rs:1679:24 [INFO] [stdout] | [INFO] [stdout] 1679 | if let Some(err) = err.downcast_ref::<&str>() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^---^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/lib.rs:1681:21 [INFO] [stdout] | [INFO] [stdout] 1681 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1679 ~ match err.downcast_ref::<&str>() { Some(err) => { [INFO] [stdout] 1680 | msg = err; [INFO] [stdout] 1681 ~ } _ => { [INFO] [stdout] 1682 | temp = format!("{:?}", err); [INFO] [stdout] 1683 | msg = &temp; [INFO] [stdout] 1684 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.51s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling savefile-abi v0.17.7 (/tmp/fixit) [INFO] [stdout] error[E0133]: call to unsafe function `std::intrinsics::copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:417:5 [INFO] [stdout] | [INFO] [stdout] 417 | / ptr::copy( [INFO] [stdout] 418 | | &trait_object as *const TraitObject as *const MaybeUninit<*mut T>, [INFO] [stdout] 419 | | &mut raw_ptr as *mut MaybeUninit<*mut T>, [INFO] [stdout] 420 | | 1, [INFO] [stdout] 421 | | ); [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/lib.rs:415:1 [INFO] [stdout] | [INFO] [stdout] 415 | unsafe fn destroy_trait_obj(trait_object: TraitObject) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unsafe_op_in_unsafe_fn)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `std::intrinsics::copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:417:5 [INFO] [stdout] | [INFO] [stdout] 417 | / ptr::copy( [INFO] [stdout] 418 | | &trait_object as *const TraitObject as *const MaybeUninit<*mut T>, [INFO] [stdout] 419 | | &mut raw_ptr as *mut MaybeUninit<*mut T>, [INFO] [stdout] 420 | | 1, [INFO] [stdout] 421 | | ); [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/lib.rs:415:1 [INFO] [stdout] | [INFO] [stdout] 415 | unsafe fn destroy_trait_obj(trait_object: TraitObject) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unsafe_op_in_unsafe_fn)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:423:13 [INFO] [stdout] | [INFO] [stdout] 423 | let _ = Box::from_raw(raw_ptr.assume_init()); [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] error[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:423:13 [INFO] [stdout] | [INFO] [stdout] 423 | let _ = Box::from_raw(raw_ptr.assume_init()); [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] error[E0133]: call to unsafe function `std::mem::MaybeUninit::::assume_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:423:27 [INFO] [stdout] | [INFO] [stdout] 423 | let _ = Box::from_raw(raw_ptr.assume_init()); [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] error[E0133]: call to unsafe function `std::mem::MaybeUninit::::assume_init` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:423:27 [INFO] [stdout] | [INFO] [stdout] 423 | let _ = Box::from_raw(raw_ptr.assume_init()); [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] error[E0133]: call to unsafe function `AbiConnection::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1331:9 [INFO] [stdout] | [INFO] [stdout] 1331 | Self::from_raw(packed.entry, packed.trait_object, owning) [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/lib.rs:1327:5 [INFO] [stdout] | [INFO] [stdout] 1327 | / pub unsafe fn from_raw_packaged( [INFO] [stdout] 1328 | | packed: PackagedTraitObject, [INFO] [stdout] 1329 | | owning: Owning, [INFO] [stdout] 1330 | | ) -> Result, SavefileError> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `AbiConnection::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1331:9 [INFO] [stdout] | [INFO] [stdout] 1331 | Self::from_raw(packed.entry, packed.trait_object, owning) [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/lib.rs:1327:5 [INFO] [stdout] | [INFO] [stdout] 1327 | / pub unsafe fn from_raw_packaged( [INFO] [stdout] 1328 | | packed: PackagedTraitObject, [INFO] [stdout] 1329 | | owning: Owning, [INFO] [stdout] 1330 | | ) -> Result, SavefileError> { [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1572:25 [INFO] [stdout] | [INFO] [stdout] 1572 | receiver(&err, abi_result) [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/lib.rs:1539:1 [INFO] [stdout] | [INFO] [stdout] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1572:25 [INFO] [stdout] | [INFO] [stdout] 1572 | receiver(&err, abi_result) [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/lib.rs:1539:1 [INFO] [stdout] | [INFO] [stdout] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1591:21 [INFO] [stdout] | [INFO] [stdout] 1591 | receiver(&err, abi_result) [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/lib.rs:1539:1 [INFO] [stdout] | [INFO] [stdout] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1619:13 [INFO] [stdout] | [INFO] [stdout] 1619 | callback(result_receiver, schema_version_required, temp.as_ptr(), temp.len()); [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] error[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1591:21 [INFO] [stdout] | [INFO] [stdout] 1591 | receiver(&err, abi_result) [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/lib.rs:1539:1 [INFO] [stdout] | [INFO] [stdout] 1539 | pub unsafe fn abi_entry_light(flag: AbiProtocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1631:13 [INFO] [stdout] | [INFO] [stdout] 1631 | error_callback(error_receiver, &err as *const _) [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] error[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1619:13 [INFO] [stdout] | [INFO] [stdout] 1619 | callback(result_receiver, schema_version_required, temp.as_ptr(), temp.len()); [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] error[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1631:13 [INFO] [stdout] | [INFO] [stdout] 1631 | error_callback(error_receiver, &err as *const _) [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] error[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1689:21 [INFO] [stdout] | [INFO] [stdout] 1689 | error_callback(error_receiver, &err as *const _) [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/lib.rs:1647:1 [INFO] [stdout] | [INFO] [stdout] 1647 | pub unsafe fn abi_entry(flag: AbiProtocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `abi_entry_light` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1694:13 [INFO] [stdout] | [INFO] [stdout] 1694 | abi_entry_light::(flag); [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] error[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1689:21 [INFO] [stdout] | [INFO] [stdout] 1689 | error_callback(error_receiver, &err as *const _) [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/lib.rs:1647:1 [INFO] [stdout] | [INFO] [stdout] 1647 | pub unsafe fn abi_entry(flag: AbiProtocol) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `abi_entry_light` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:1694:13 [INFO] [stdout] | [INFO] [stdout] 1694 | abi_entry_light::(flag); [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] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `savefile-abi` (lib) due to 11 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `savefile-abi` (lib test) due to 11 previous errors [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" "0784eee6732bb3e1cba2076696b4581e3c6991ed847406e9be72c70e4609c139", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0784eee6732bb3e1cba2076696b4581e3c6991ed847406e9be72c70e4609c139", kill_on_drop: false }` [INFO] [stdout] 0784eee6732bb3e1cba2076696b4581e3c6991ed847406e9be72c70e4609c139