[INFO] fetching crate composable-allocators 0.3.1... [INFO] checking composable-allocators-0.3.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate composable-allocators 0.3.1 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate composable-allocators 0.3.1 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 composable-allocators 0.3.1 [INFO] finished tweaking crates.io crate composable-allocators 0.3.1 [INFO] tweaked toml for crates.io crate composable-allocators 0.3.1 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 36 packages to latest compatible versions [INFO] [stderr] Adding proc-macro-crate v1.3.1 (available: v3.2.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] [stderr] Adding toml_edit v0.19.15 (available: v0.22.22) [INFO] [stderr] Adding winnow v0.5.40 (available: v0.6.20) [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] a983b84f7906b7ca93581b7908faca82e4e9e432d3430b7ea2a47784682d8d67 [INFO] running `Command { std: "docker" "start" "-a" "a983b84f7906b7ca93581b7908faca82e4e9e432d3430b7ea2a47784682d8d67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a983b84f7906b7ca93581b7908faca82e4e9e432d3430b7ea2a47784682d8d67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a983b84f7906b7ca93581b7908faca82e4e9e432d3430b7ea2a47784682d8d67", kill_on_drop: false }` [INFO] [stdout] a983b84f7906b7ca93581b7908faca82e4e9e432d3430b7ea2a47784682d8d67 [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] 0011b48eb69214f881e22f86ca652a6fa0e15bad5515ad290fcaf1dc87a3fd70 [INFO] running `Command { std: "docker" "start" "-a" "0011b48eb69214f881e22f86ca652a6fa0e15bad5515ad290fcaf1dc87a3fd70", 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 litrs v0.4.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling errno-sys v0.2.0 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Checking const-default v1.0.0 [INFO] [stderr] Compiling document-features v0.2.10 [INFO] [stderr] Checking errno-no-std v0.2.2 [INFO] [stderr] Checking panicking v0.5.0 [INFO] [stderr] Checking sync-no-std v0.1.3 [INFO] [stderr] Checking print-no-std v0.2.0 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling const-default-derive v0.2.0 [INFO] [stderr] Checking composable-allocators v0.3.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `composable_allocators` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/freelist.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/freelist.rs:174:20 [INFO] [stderr] | [INFO] [stderr] 167 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 174 | list.len = unsafe { self.limit.inc_list_len(list.len) }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/lib.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | #![deny(warnings)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: `#[deny(unused_unsafe)]` implied by `#[deny(warnings)]` [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/base.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | (*self).has_allocated(ptr, layout) [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/base.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | self.0.has_allocated(ptr, layout) || self.1.has_allocated(ptr, layout) [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/fallbacked.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:14:46 [INFO] [stdout] | [INFO] [stdout] 14 | self.0.has_allocated(ptr, layout) || self.1.has_allocated(ptr, layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | if self.0.has_allocated(ptr, layout) { [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/fallbacked.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | self.0.deallocate(ptr, layout); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | self.1.deallocate(ptr, layout); [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | if self.0.has_allocated(ptr, old_layout) { [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/fallbacked.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | / unsafe fn grow( [INFO] [stdout] 52 | | &self, [INFO] [stdout] 53 | | ptr: NonNull, [INFO] [stdout] 54 | | old_layout: alloc::Layout, [INFO] [stdout] 55 | | new_layout: alloc::Layout [INFO] [stdout] 56 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:58:32 [INFO] [stdout] | [INFO] [stdout] 58 | if let Ok(block) = self.0.grow(ptr, old_layout, new_layout) { [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 `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), old_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | self.0.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | self.1.grow(ptr, old_layout, new_layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | if self.0.has_allocated(ptr, old_layout) { [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/fallbacked.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | / unsafe fn grow_zeroed( [INFO] [stdout] 77 | | &self, [INFO] [stdout] 78 | | ptr: NonNull, [INFO] [stdout] 79 | | old_layout: alloc::Layout, [INFO] [stdout] 80 | | new_layout: alloc::Layout [INFO] [stdout] 81 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:83:32 [INFO] [stdout] | [INFO] [stdout] 83 | if let Ok(block) = self.0.grow_zeroed(ptr, old_layout, new_layout) { [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 `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), old_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | self.0.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | self.1.grow_zeroed(ptr, old_layout, new_layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | if self.0.has_allocated(ptr, old_layout) { [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/fallbacked.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | / unsafe fn shrink( [INFO] [stdout] 102 | | &self, [INFO] [stdout] 103 | | ptr: NonNull, [INFO] [stdout] 104 | | old_layout: alloc::Layout, [INFO] [stdout] 105 | | new_layout: alloc::Layout [INFO] [stdout] 106 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | if let Ok(block) = self.0.shrink(ptr, old_layout, new_layout) { [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 `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), new_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | self.0.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | self.1.shrink(ptr, old_layout, new_layout) [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | self.base.deallocate(ptr, layout); [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/limited_up_to.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | if let Ok(block) = self.base.grow(ptr, old_layout, new_layout) { [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/limited_up_to.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | / unsafe fn grow( [INFO] [stdout] 66 | | &self, [INFO] [stdout] 67 | | ptr: NonNull, [INFO] [stdout] 68 | | old_layout: alloc::Layout, [INFO] [stdout] 69 | | new_layout: alloc::Layout [INFO] [stdout] 70 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:74:50 [INFO] [stdout] | [INFO] [stdout] 74 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), 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 `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:90:32 [INFO] [stdout] | [INFO] [stdout] 90 | if let Ok(block) = self.base.grow_zeroed(ptr, old_layout, new_layout) { [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/limited_up_to.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | / unsafe fn grow_zeroed( [INFO] [stdout] 84 | | &self, [INFO] [stdout] 85 | | ptr: NonNull, [INFO] [stdout] 86 | | old_layout: alloc::Layout, [INFO] [stdout] 87 | | new_layout: alloc::Layout [INFO] [stdout] 88 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:92:50 [INFO] [stdout] | [INFO] [stdout] 92 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), 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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | if let Ok(block) = self.base.shrink(ptr, old_layout, new_layout) { [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/limited_up_to.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | / unsafe fn shrink( [INFO] [stdout] 102 | | &self, [INFO] [stdout] 103 | | ptr: NonNull, [INFO] [stdout] 104 | | old_layout: alloc::Layout, [INFO] [stdout] 105 | | new_layout: alloc::Layout [INFO] [stdout] 106 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:110:50 [INFO] [stdout] | [INFO] [stdout] 110 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), 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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | alloc::Global.deallocate(ptr, layout) [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/global.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | alloc::Global.grow(ptr, old_layout, new_layout) [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/global.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / unsafe fn grow( [INFO] [stdout] 25 | | &self, [INFO] [stdout] 26 | | ptr: NonNull, [INFO] [stdout] 27 | | old_layout: alloc::Layout, [INFO] [stdout] 28 | | new_layout: alloc::Layout [INFO] [stdout] 29 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | alloc::Global.grow_zeroed(ptr, old_layout, new_layout) [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/global.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | / unsafe fn grow_zeroed( [INFO] [stdout] 34 | | &self, [INFO] [stdout] 35 | | ptr: NonNull, [INFO] [stdout] 36 | | old_layout: alloc::Layout, [INFO] [stdout] 37 | | new_layout: alloc::Layout [INFO] [stdout] 38 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | alloc::Global.shrink(ptr, old_layout, new_layout) [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/global.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / unsafe fn shrink( [INFO] [stdout] 43 | | &self, [INFO] [stdout] 44 | | ptr: NonNull, [INFO] [stdout] 45 | | old_layout: alloc::Layout, [INFO] [stdout] 46 | | new_layout: alloc::Layout [INFO] [stdout] 47 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | self.0.deallocate(NonNull::new_unchecked(ptr), layout) [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/as_global.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe fn dealloc(&self, ptr: *mut u8, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | self.0.deallocate(NonNull::new_unchecked(ptr), layout) [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 `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | let ptr = NonNull::new_unchecked(ptr); [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/as_global.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | / unsafe fn realloc( [INFO] [stdout] 27 | | &self, [INFO] [stdout] 28 | | ptr: *mut u8, [INFO] [stdout] 29 | | layout: alloc::Layout, [INFO] [stdout] 30 | | new_size: usize [INFO] [stdout] 31 | | ) -> *mut u8 { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Layout::from_size_align_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | let new_layout = alloc::Layout::from_size_align_unchecked(new_size, layout.align()); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | self.0.grow(ptr, layout, new_layout) [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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | self.0.shrink(ptr, layout, new_layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | self.0.has_allocated(ptr, layout) [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/logging.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | self.0.deallocate(ptr, layout) [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/logging.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | self.0.grow(ptr, old_layout, new_layout) [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/logging.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | / unsafe fn grow( [INFO] [stdout] 37 | | &self, [INFO] [stdout] 38 | | ptr: NonNull, [INFO] [stdout] 39 | | old_layout: alloc::Layout, [INFO] [stdout] 40 | | new_layout: alloc::Layout [INFO] [stdout] 41 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | self.0.grow_zeroed(ptr, old_layout, new_layout) [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/logging.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | / unsafe fn grow_zeroed( [INFO] [stdout] 47 | | &self, [INFO] [stdout] 48 | | ptr: NonNull, [INFO] [stdout] 49 | | old_layout: alloc::Layout, [INFO] [stdout] 50 | | new_layout: alloc::Layout [INFO] [stdout] 51 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | self.0.shrink(ptr, old_layout, new_layout) [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/logging.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | / unsafe fn shrink( [INFO] [stdout] 57 | | &self, [INFO] [stdout] 58 | | ptr: NonNull, [INFO] [stdout] 59 | | old_layout: alloc::Layout, [INFO] [stdout] 60 | | new_layout: alloc::Layout [INFO] [stdout] 61 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | free(ptr.as_ptr() as _); [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/posix.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | let ptr = NonNull::new(realloc(ptr.as_ptr() as _, new_layout.size()) as *mut u8).ok_or(AllocError)?; [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/posix.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / unsafe fn grow( [INFO] [stdout] 54 | | &self, [INFO] [stdout] 55 | | ptr: NonNull, [INFO] [stdout] 56 | | old_layout: alloc::Layout, [INFO] [stdout] 57 | | new_layout: alloc::Layout [INFO] [stdout] 58 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | ptr::copy_nonoverlapping(ptr.as_ptr(), new.as_mut_ptr(), old_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | self.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 77 | let ptr = self.grow(ptr, old_layout, new_layout)?; [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/posix.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / unsafe fn grow_zeroed( [INFO] [stdout] 72 | | &self, [INFO] [stdout] 73 | | ptr: NonNull, [INFO] [stdout] 74 | | old_layout: alloc::Layout, [INFO] [stdout] 75 | | new_layout: alloc::Layout [INFO] [stdout] 76 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::write_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | ptr.as_mut_ptr().map_addr(|x| x + old_layout.size()).write_bytes(0, ptr.len() - old_layout.size()); [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 `libc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:89:36 [INFO] [stdout] | [INFO] [stdout] 89 | let ptr = NonNull::new(realloc(ptr.as_ptr() as _, new_layout.size()) as *mut u8).ok_or(AllocError)?; [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/posix.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | / unsafe fn shrink( [INFO] [stdout] 83 | | &self, [INFO] [stdout] 84 | | ptr: NonNull, [INFO] [stdout] 85 | | old_layout: alloc::Layout, [INFO] [stdout] 86 | | new_layout: alloc::Layout [INFO] [stdout] 87 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | ptr::copy_nonoverlapping(ptr.as_ptr(), new.as_mut_ptr(), new_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | self.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | IMPL.deallocate(ptr, layout) [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/system.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | IMPL.grow(ptr, old_layout, new_layout) [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/system.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / unsafe fn grow( [INFO] [stdout] 31 | | &self, [INFO] [stdout] 32 | | ptr: NonNull, [INFO] [stdout] 33 | | old_layout: alloc::Layout, [INFO] [stdout] 34 | | new_layout: alloc::Layout [INFO] [stdout] 35 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | IMPL.grow_zeroed(ptr, old_layout, new_layout) [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/system.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | / unsafe fn grow_zeroed( [INFO] [stdout] 40 | | &self, [INFO] [stdout] 41 | | ptr: NonNull, [INFO] [stdout] 42 | | old_layout: alloc::Layout, [INFO] [stdout] 43 | | new_layout: alloc::Layout [INFO] [stdout] 44 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | IMPL.shrink(ptr, old_layout, new_layout) [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/system.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | / unsafe fn shrink( [INFO] [stdout] 49 | | &self, [INFO] [stdout] 50 | | ptr: NonNull, [INFO] [stdout] 51 | | old_layout: alloc::Layout, [INFO] [stdout] 52 | | new_layout: alloc::Layout [INFO] [stdout] 53 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/non_working.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | unreachable_unchecked() [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/non_working.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe fn deallocate(&self, _ptr: NonNull, _layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::offset_from` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | let start_offset = ptr.as_ptr().offset_from(self.buf_ptr.load(Ordering::Relaxed)) as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stacked.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | / unsafe fn grow_raw( [INFO] [stdout] 68 | | &self, [INFO] [stdout] 69 | | ptr: NonNull, [INFO] [stdout] 70 | | old_layout: alloc::Layout, [INFO] [stdout] 71 | | new_layout: alloc::Layout, [INFO] [stdout] 72 | | zeroed: bool, [INFO] [stdout] 73 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::write_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | ptr.as_ptr().add(old_layout.size()).write_bytes(0, new_layout.size() - old_layout.size()); [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 `core::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | ptr.as_ptr().add(old_layout.size()).write_bytes(0, new_layout.size() - old_layout.size()); [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 `core::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:110:38 [INFO] [stdout] | [INFO] [stdout] 110 | offset < self.buf_len && self.buf_ptr.load(Ordering::Relaxed).add(offset) == ptr.as_ptr() [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/stacked.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | unsafe fn has_allocated(&self, ptr: NonNull, _layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::offset_from` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:144:28 [INFO] [stdout] | [INFO] [stdout] 144 | let start_offset = ptr.as_ptr().offset_from(self.buf_ptr.load(Ordering::Relaxed)) as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stacked.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `stacked::Stacked::grow_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | self.grow_raw(ptr, old_layout, new_layout, false) [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/stacked.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | / unsafe fn grow( [INFO] [stdout] 151 | | &self, [INFO] [stdout] 152 | | ptr: NonNull, [INFO] [stdout] 153 | | old_layout: alloc::Layout, [INFO] [stdout] 154 | | new_layout: alloc::Layout [INFO] [stdout] 155 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `stacked::Stacked::grow_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | self.grow_raw(ptr, old_layout, new_layout, true) [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/stacked.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | / unsafe fn grow_zeroed( [INFO] [stdout] 160 | | &self, [INFO] [stdout] 161 | | ptr: NonNull, [INFO] [stdout] 162 | | old_layout: alloc::Layout, [INFO] [stdout] 163 | | new_layout: alloc::Layout [INFO] [stdout] 164 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::offset_from` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | let start_offset = ptr.as_ptr().offset_from(self.buf_ptr.load(Ordering::Relaxed)) as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stacked.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | / unsafe fn shrink( [INFO] [stdout] 169 | | &self, [INFO] [stdout] 170 | | ptr: NonNull, [INFO] [stdout] 171 | | old_layout: alloc::Layout, [INFO] [stdout] 172 | | new_layout: alloc::Layout [INFO] [stdout] 173 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | self.base().has_allocated(ptr, layout) [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/freelist.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `freelist::LimitParam::limit_reached` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | if self.limit.limit_reached(list.len) || !self.manages(layout) { [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/freelist.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | return self.base().deallocate(ptr, layout); [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 `core::ptr::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | ptr::write(ptr.as_ptr() as *mut Node, Node { next: AtomicPtr::new(*list.head.next.get_mut()) }); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | self.base().grow(ptr, old_layout, new_layout) [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/freelist.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | / unsafe fn grow( [INFO] [stdout] 178 | | &self, [INFO] [stdout] 179 | | ptr: NonNull, [INFO] [stdout] 180 | | old_layout: alloc::Layout, [INFO] [stdout] 181 | | new_layout: alloc::Layout [INFO] [stdout] 182 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | self.base().grow_zeroed(ptr, old_layout, new_layout) [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/freelist.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 187 | / unsafe fn grow_zeroed( [INFO] [stdout] 188 | | &self, [INFO] [stdout] 189 | | ptr: NonNull, [INFO] [stdout] 190 | | old_layout: alloc::Layout, [INFO] [stdout] 191 | | new_layout: alloc::Layout [INFO] [stdout] 192 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | self.base().shrink(ptr, old_layout, new_layout) [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/freelist.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | / unsafe fn shrink( [INFO] [stdout] 198 | | &self, [INFO] [stdout] 199 | | ptr: NonNull, [INFO] [stdout] 200 | | old_layout: alloc::Layout, [INFO] [stdout] 201 | | new_layout: alloc::Layout [INFO] [stdout] 202 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | if let Ok(block) = self.0.allocate(layout) { [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/fallbacked.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | } else if self.0.allows_fallback(layout) { [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] 24 ~ match self.0.allocate(layout) { Ok(block) => { [INFO] [stdout] 25 | Ok(block) [INFO] [stdout] 26 ~ } _ => if self.0.allows_fallback(layout) { [INFO] [stdout] 27 | self.1.allocate(layout) [INFO] [stdout] 28 | } else { [INFO] [stdout] 29 | Err(AllocError) [INFO] [stdout] 30 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | if let Ok(block) = self.0.allocate_zeroed(layout) { [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/fallbacked.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | } else if self.0.allows_fallback(layout) { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 34 ~ match self.0.allocate_zeroed(layout) { Ok(block) => { [INFO] [stdout] 35 | Ok(block) [INFO] [stdout] 36 ~ } _ => if self.0.allows_fallback(layout) { [INFO] [stdout] 37 | self.1.allocate_zeroed(layout) [INFO] [stdout] 38 | } else { [INFO] [stdout] 39 | Err(AllocError) [INFO] [stdout] 40 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | if let Ok(block) = self.0.grow(ptr, old_layout, new_layout) { [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/fallbacked.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | } else if self.0.allows_fallback(new_layout) { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 58 ~ match self.0.grow(ptr, old_layout, new_layout) { Ok(block) => { [INFO] [stdout] 59 | Ok(block) [INFO] [stdout] 60 ~ } _ => if self.0.allows_fallback(new_layout) { [INFO] [stdout] 61 | if let Ok(block) = self.1.allocate(new_layout) { [INFO] [stdout] ... [INFO] [stdout] 69 | Err(AllocError) [INFO] [stdout] 70 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | if let Ok(block) = self.1.allocate(new_layout) { [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/fallbacked.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | } 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] 61 ~ match self.1.allocate(new_layout) { Ok(block) => { [INFO] [stdout] 62 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), old_layout.size()); [INFO] [stdout] 63 | self.0.deallocate(ptr, old_layout); [INFO] [stdout] 64 | Ok(block) [INFO] [stdout] 65 ~ } _ => { [INFO] [stdout] 66 | Err(AllocError) [INFO] [stdout] 67 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:83:16 [INFO] [stdout] | [INFO] [stdout] 83 | if let Ok(block) = self.0.grow_zeroed(ptr, old_layout, new_layout) { [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/fallbacked.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | } else if self.0.allows_fallback(new_layout) { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 83 ~ match self.0.grow_zeroed(ptr, old_layout, new_layout) { Ok(block) => { [INFO] [stdout] 84 | Ok(block) [INFO] [stdout] 85 ~ } _ => if self.0.allows_fallback(new_layout) { [INFO] [stdout] 86 | if let Ok(block) = self.1.allocate_zeroed(new_layout) { [INFO] [stdout] ... [INFO] [stdout] 94 | Err(AllocError) [INFO] [stdout] 95 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | if let Ok(block) = self.1.allocate_zeroed(new_layout) { [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/fallbacked.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | } 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] 86 ~ match self.1.allocate_zeroed(new_layout) { Ok(block) => { [INFO] [stdout] 87 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), old_layout.size()); [INFO] [stdout] 88 | self.0.deallocate(ptr, old_layout); [INFO] [stdout] 89 | Ok(block) [INFO] [stdout] 90 ~ } _ => { [INFO] [stdout] 91 | Err(AllocError) [INFO] [stdout] 92 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | if let Ok(block) = self.0.shrink(ptr, old_layout, new_layout) { [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/fallbacked.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | } else if self.0.allows_fallback(new_layout) { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 108 ~ match self.0.shrink(ptr, old_layout, new_layout) { Ok(block) => { [INFO] [stdout] 109 | Ok(block) [INFO] [stdout] 110 ~ } _ => if self.0.allows_fallback(new_layout) { [INFO] [stdout] 111 | if let Ok(block) = self.1.allocate(new_layout) { [INFO] [stdout] ... [INFO] [stdout] 119 | Err(AllocError) [INFO] [stdout] 120 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | if let Ok(block) = self.1.allocate(new_layout) { [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/fallbacked.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 115 | } 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] 111 ~ match self.1.allocate(new_layout) { Ok(block) => { [INFO] [stdout] 112 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), new_layout.size()); [INFO] [stdout] 113 | self.0.deallocate(ptr, old_layout); [INFO] [stdout] 114 | Ok(block) [INFO] [stdout] 115 ~ } _ => { [INFO] [stdout] 116 | Err(AllocError) [INFO] [stdout] 117 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/limited_up_to.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | if let Ok(block) = self.base.allocate(layout) { [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/limited_up_to.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | } 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] 37 ~ match self.base.allocate(layout) { Ok(block) => { [INFO] [stdout] 38 | let len = min(block.len(), self.layout.size()); [INFO] [stdout] 39 | Ok(unsafe { NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), len) }) [INFO] [stdout] 40 ~ } _ => { [INFO] [stdout] 41 | Err(AllocError) [INFO] [stdout] 42 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/limited_up_to.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | if let Ok(block) = self.base.allocate_zeroed(layout) { [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/limited_up_to.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | } 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] 50 ~ match self.base.allocate_zeroed(layout) { Ok(block) => { [INFO] [stdout] 51 | let len = min(block.len(), self.layout.size()); [INFO] [stdout] 52 | Ok(unsafe { NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), len) }) [INFO] [stdout] 53 ~ } _ => { [INFO] [stdout] 54 | Err(AllocError) [INFO] [stdout] 55 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/limited_up_to.rs:72:16 [INFO] [stdout] | [INFO] [stdout] 72 | if let Ok(block) = self.base.grow(ptr, old_layout, new_layout) { [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/limited_up_to.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | } 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] 72 ~ match self.base.grow(ptr, old_layout, new_layout) { Ok(block) => { [INFO] [stdout] 73 | let len = min(block.len(), self.layout.size()); [INFO] [stdout] 74 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), len)) [INFO] [stdout] 75 ~ } _ => { [INFO] [stdout] 76 | Err(AllocError) [INFO] [stdout] 77 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/limited_up_to.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | if let Ok(block) = self.base.grow_zeroed(ptr, old_layout, new_layout) { [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/limited_up_to.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | } 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] 90 ~ match self.base.grow_zeroed(ptr, old_layout, new_layout) { Ok(block) => { [INFO] [stdout] 91 | let len = min(block.len(), self.layout.size()); [INFO] [stdout] 92 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), len)) [INFO] [stdout] 93 ~ } _ => { [INFO] [stdout] 94 | Err(AllocError) [INFO] [stdout] 95 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/limited_up_to.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | if let Ok(block) = self.base.shrink(ptr, old_layout, new_layout) { [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/limited_up_to.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | } 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] 108 ~ match self.base.shrink(ptr, old_layout, new_layout) { Ok(block) => { [INFO] [stdout] 109 | let len = min(block.len(), self.layout.size()); [INFO] [stdout] 110 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), len)) [INFO] [stdout] 111 ~ } _ => { [INFO] [stdout] 112 | Err(AllocError) [INFO] [stdout] 113 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/freelist.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | if let Some(next_ptr) = NonNull::new(*list.head.next.get_mut()) { [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/freelist.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | } 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] 140 ~ match NonNull::new(*list.head.next.get_mut()) { Some(next_ptr) => { [INFO] [stdout] 141 | let next = unsafe { ptr::read(next_ptr.as_ptr() as *const Node) }.next; [INFO] [stdout] ... [INFO] [stdout] 144 | Ok(NonNull::slice_from_raw_parts(next_ptr, self.layout.size())) [INFO] [stdout] 145 ~ } _ => { [INFO] [stdout] 146 | self.base().allocate(self.layout) [INFO] [stdout] 147 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/freelist.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | if let Some(next_ptr) = NonNull::new(*list.head.next.get_mut()) { [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/freelist.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | } 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] 155 ~ match NonNull::new(*list.head.next.get_mut()) { Some(next_ptr) => { [INFO] [stdout] 156 | let next = unsafe { ptr::read(next_ptr.as_ptr() as *const Node) }.next; [INFO] [stdout] ... [INFO] [stdout] 161 | Ok(ptr) [INFO] [stdout] 162 ~ } _ => { [INFO] [stdout] 163 | self.base().allocate_zeroed(self.layout) [INFO] [stdout] 164 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 87 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 `composable_allocators` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/freelist.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/freelist.rs:174:20 [INFO] [stderr] | [INFO] [stderr] 167 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 174 | list.len = unsafe { self.limit.inc_list_len(list.len) }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/lib.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | #![deny(warnings)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: `#[deny(unused_unsafe)]` implied by `#[deny(warnings)]` [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/base.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | (*self).has_allocated(ptr, layout) [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/base.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | self.0.has_allocated(ptr, layout) || self.1.has_allocated(ptr, layout) [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/fallbacked.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:14:46 [INFO] [stdout] | [INFO] [stdout] 14 | self.0.has_allocated(ptr, layout) || self.1.has_allocated(ptr, layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | if self.0.has_allocated(ptr, layout) { [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/fallbacked.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | self.0.deallocate(ptr, layout); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | self.1.deallocate(ptr, layout); [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | if self.0.has_allocated(ptr, old_layout) { [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/fallbacked.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | / unsafe fn grow( [INFO] [stdout] 52 | | &self, [INFO] [stdout] 53 | | ptr: NonNull, [INFO] [stdout] 54 | | old_layout: alloc::Layout, [INFO] [stdout] 55 | | new_layout: alloc::Layout [INFO] [stdout] 56 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:58:32 [INFO] [stdout] | [INFO] [stdout] 58 | if let Ok(block) = self.0.grow(ptr, old_layout, new_layout) { [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 `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), old_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | self.0.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | self.1.grow(ptr, old_layout, new_layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | if self.0.has_allocated(ptr, old_layout) { [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/fallbacked.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | / unsafe fn grow_zeroed( [INFO] [stdout] 77 | | &self, [INFO] [stdout] 78 | | ptr: NonNull, [INFO] [stdout] 79 | | old_layout: alloc::Layout, [INFO] [stdout] 80 | | new_layout: alloc::Layout [INFO] [stdout] 81 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:83:32 [INFO] [stdout] | [INFO] [stdout] 83 | if let Ok(block) = self.0.grow_zeroed(ptr, old_layout, new_layout) { [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 `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), old_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | self.0.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | self.1.grow_zeroed(ptr, old_layout, new_layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | if self.0.has_allocated(ptr, old_layout) { [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/fallbacked.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | / unsafe fn shrink( [INFO] [stdout] 102 | | &self, [INFO] [stdout] 103 | | ptr: NonNull, [INFO] [stdout] 104 | | old_layout: alloc::Layout, [INFO] [stdout] 105 | | new_layout: alloc::Layout [INFO] [stdout] 106 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | if let Ok(block) = self.0.shrink(ptr, old_layout, new_layout) { [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 `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), new_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | self.0.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | self.1.shrink(ptr, old_layout, new_layout) [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | self.base.deallocate(ptr, layout); [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/limited_up_to.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | if let Ok(block) = self.base.grow(ptr, old_layout, new_layout) { [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/limited_up_to.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | / unsafe fn grow( [INFO] [stdout] 66 | | &self, [INFO] [stdout] 67 | | ptr: NonNull, [INFO] [stdout] 68 | | old_layout: alloc::Layout, [INFO] [stdout] 69 | | new_layout: alloc::Layout [INFO] [stdout] 70 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:74:50 [INFO] [stdout] | [INFO] [stdout] 74 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), 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 `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:90:32 [INFO] [stdout] | [INFO] [stdout] 90 | if let Ok(block) = self.base.grow_zeroed(ptr, old_layout, new_layout) { [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/limited_up_to.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | / unsafe fn grow_zeroed( [INFO] [stdout] 84 | | &self, [INFO] [stdout] 85 | | ptr: NonNull, [INFO] [stdout] 86 | | old_layout: alloc::Layout, [INFO] [stdout] 87 | | new_layout: alloc::Layout [INFO] [stdout] 88 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:92:50 [INFO] [stdout] | [INFO] [stdout] 92 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), 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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | if let Ok(block) = self.base.shrink(ptr, old_layout, new_layout) { [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/limited_up_to.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | / unsafe fn shrink( [INFO] [stdout] 102 | | &self, [INFO] [stdout] 103 | | ptr: NonNull, [INFO] [stdout] 104 | | old_layout: alloc::Layout, [INFO] [stdout] 105 | | new_layout: alloc::Layout [INFO] [stdout] 106 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:110:50 [INFO] [stdout] | [INFO] [stdout] 110 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), 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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | alloc::Global.deallocate(ptr, layout) [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/global.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | alloc::Global.grow(ptr, old_layout, new_layout) [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/global.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / unsafe fn grow( [INFO] [stdout] 25 | | &self, [INFO] [stdout] 26 | | ptr: NonNull, [INFO] [stdout] 27 | | old_layout: alloc::Layout, [INFO] [stdout] 28 | | new_layout: alloc::Layout [INFO] [stdout] 29 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | alloc::Global.grow_zeroed(ptr, old_layout, new_layout) [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/global.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | / unsafe fn grow_zeroed( [INFO] [stdout] 34 | | &self, [INFO] [stdout] 35 | | ptr: NonNull, [INFO] [stdout] 36 | | old_layout: alloc::Layout, [INFO] [stdout] 37 | | new_layout: alloc::Layout [INFO] [stdout] 38 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | alloc::Global.shrink(ptr, old_layout, new_layout) [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/global.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / unsafe fn shrink( [INFO] [stdout] 43 | | &self, [INFO] [stdout] 44 | | ptr: NonNull, [INFO] [stdout] 45 | | old_layout: alloc::Layout, [INFO] [stdout] 46 | | new_layout: alloc::Layout [INFO] [stdout] 47 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | self.0.deallocate(NonNull::new_unchecked(ptr), layout) [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/as_global.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe fn dealloc(&self, ptr: *mut u8, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | self.0.deallocate(NonNull::new_unchecked(ptr), layout) [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 `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | let ptr = NonNull::new_unchecked(ptr); [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/as_global.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | / unsafe fn realloc( [INFO] [stdout] 27 | | &self, [INFO] [stdout] 28 | | ptr: *mut u8, [INFO] [stdout] 29 | | layout: alloc::Layout, [INFO] [stdout] 30 | | new_size: usize [INFO] [stdout] 31 | | ) -> *mut u8 { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Layout::from_size_align_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | let new_layout = alloc::Layout::from_size_align_unchecked(new_size, layout.align()); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | self.0.grow(ptr, layout, new_layout) [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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | self.0.shrink(ptr, layout, new_layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | self.0.has_allocated(ptr, layout) [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/logging.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | self.0.deallocate(ptr, layout) [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/logging.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | self.0.grow(ptr, old_layout, new_layout) [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/logging.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | / unsafe fn grow( [INFO] [stdout] 37 | | &self, [INFO] [stdout] 38 | | ptr: NonNull, [INFO] [stdout] 39 | | old_layout: alloc::Layout, [INFO] [stdout] 40 | | new_layout: alloc::Layout [INFO] [stdout] 41 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | self.0.grow_zeroed(ptr, old_layout, new_layout) [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/logging.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | / unsafe fn grow_zeroed( [INFO] [stdout] 47 | | &self, [INFO] [stdout] 48 | | ptr: NonNull, [INFO] [stdout] 49 | | old_layout: alloc::Layout, [INFO] [stdout] 50 | | new_layout: alloc::Layout [INFO] [stdout] 51 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | self.0.shrink(ptr, old_layout, new_layout) [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/logging.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | / unsafe fn shrink( [INFO] [stdout] 57 | | &self, [INFO] [stdout] 58 | | ptr: NonNull, [INFO] [stdout] 59 | | old_layout: alloc::Layout, [INFO] [stdout] 60 | | new_layout: alloc::Layout [INFO] [stdout] 61 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | free(ptr.as_ptr() as _); [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/posix.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `libc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | let ptr = NonNull::new(realloc(ptr.as_ptr() as _, new_layout.size()) as *mut u8).ok_or(AllocError)?; [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/posix.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / unsafe fn grow( [INFO] [stdout] 54 | | &self, [INFO] [stdout] 55 | | ptr: NonNull, [INFO] [stdout] 56 | | old_layout: alloc::Layout, [INFO] [stdout] 57 | | new_layout: alloc::Layout [INFO] [stdout] 58 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | ptr::copy_nonoverlapping(ptr.as_ptr(), new.as_mut_ptr(), old_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | self.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 77 | let ptr = self.grow(ptr, old_layout, new_layout)?; [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/posix.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / unsafe fn grow_zeroed( [INFO] [stdout] 72 | | &self, [INFO] [stdout] 73 | | ptr: NonNull, [INFO] [stdout] 74 | | old_layout: alloc::Layout, [INFO] [stdout] 75 | | new_layout: alloc::Layout [INFO] [stdout] 76 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::write_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | ptr.as_mut_ptr().map_addr(|x| x + old_layout.size()).write_bytes(0, ptr.len() - old_layout.size()); [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 `libc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:89:36 [INFO] [stdout] | [INFO] [stdout] 89 | let ptr = NonNull::new(realloc(ptr.as_ptr() as _, new_layout.size()) as *mut u8).ok_or(AllocError)?; [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/posix.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | / unsafe fn shrink( [INFO] [stdout] 83 | | &self, [INFO] [stdout] 84 | | ptr: NonNull, [INFO] [stdout] 85 | | old_layout: alloc::Layout, [INFO] [stdout] 86 | | new_layout: alloc::Layout [INFO] [stdout] 87 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | ptr::copy_nonoverlapping(ptr.as_ptr(), new.as_mut_ptr(), new_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | self.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | IMPL.deallocate(ptr, layout) [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/system.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | IMPL.grow(ptr, old_layout, new_layout) [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/system.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / unsafe fn grow( [INFO] [stdout] 31 | | &self, [INFO] [stdout] 32 | | ptr: NonNull, [INFO] [stdout] 33 | | old_layout: alloc::Layout, [INFO] [stdout] 34 | | new_layout: alloc::Layout [INFO] [stdout] 35 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | IMPL.grow_zeroed(ptr, old_layout, new_layout) [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/system.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | / unsafe fn grow_zeroed( [INFO] [stdout] 40 | | &self, [INFO] [stdout] 41 | | ptr: NonNull, [INFO] [stdout] 42 | | old_layout: alloc::Layout, [INFO] [stdout] 43 | | new_layout: alloc::Layout [INFO] [stdout] 44 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | IMPL.shrink(ptr, old_layout, new_layout) [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/system.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | / unsafe fn shrink( [INFO] [stdout] 49 | | &self, [INFO] [stdout] 50 | | ptr: NonNull, [INFO] [stdout] 51 | | old_layout: alloc::Layout, [INFO] [stdout] 52 | | new_layout: alloc::Layout [INFO] [stdout] 53 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/non_working.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | unreachable_unchecked() [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/non_working.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe fn deallocate(&self, _ptr: NonNull, _layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::offset_from` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | let start_offset = ptr.as_ptr().offset_from(self.buf_ptr.load(Ordering::Relaxed)) as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stacked.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | / unsafe fn grow_raw( [INFO] [stdout] 68 | | &self, [INFO] [stdout] 69 | | ptr: NonNull, [INFO] [stdout] 70 | | old_layout: alloc::Layout, [INFO] [stdout] 71 | | new_layout: alloc::Layout, [INFO] [stdout] 72 | | zeroed: bool, [INFO] [stdout] 73 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::write_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | ptr.as_ptr().add(old_layout.size()).write_bytes(0, new_layout.size() - old_layout.size()); [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 `core::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | ptr.as_ptr().add(old_layout.size()).write_bytes(0, new_layout.size() - old_layout.size()); [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 `core::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:110:38 [INFO] [stdout] | [INFO] [stdout] 110 | offset < self.buf_len && self.buf_ptr.load(Ordering::Relaxed).add(offset) == ptr.as_ptr() [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/stacked.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | unsafe fn has_allocated(&self, ptr: NonNull, _layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::offset_from` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:144:28 [INFO] [stdout] | [INFO] [stdout] 144 | let start_offset = ptr.as_ptr().offset_from(self.buf_ptr.load(Ordering::Relaxed)) as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stacked.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `stacked::Stacked::grow_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | self.grow_raw(ptr, old_layout, new_layout, false) [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/stacked.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | / unsafe fn grow( [INFO] [stdout] 151 | | &self, [INFO] [stdout] 152 | | ptr: NonNull, [INFO] [stdout] 153 | | old_layout: alloc::Layout, [INFO] [stdout] 154 | | new_layout: alloc::Layout [INFO] [stdout] 155 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `stacked::Stacked::grow_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | self.grow_raw(ptr, old_layout, new_layout, true) [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/stacked.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | / unsafe fn grow_zeroed( [INFO] [stdout] 160 | | &self, [INFO] [stdout] 161 | | ptr: NonNull, [INFO] [stdout] 162 | | old_layout: alloc::Layout, [INFO] [stdout] 163 | | new_layout: alloc::Layout [INFO] [stdout] 164 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::offset_from` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | let start_offset = ptr.as_ptr().offset_from(self.buf_ptr.load(Ordering::Relaxed)) as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stacked.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | / unsafe fn shrink( [INFO] [stdout] 169 | | &self, [INFO] [stdout] 170 | | ptr: NonNull, [INFO] [stdout] 171 | | old_layout: alloc::Layout, [INFO] [stdout] 172 | | new_layout: alloc::Layout [INFO] [stdout] 173 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | self.base().has_allocated(ptr, layout) [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/freelist.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `freelist::LimitParam::limit_reached` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | if self.limit.limit_reached(list.len) || !self.manages(layout) { [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/freelist.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | return self.base().deallocate(ptr, layout); [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 `core::ptr::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | ptr::write(ptr.as_ptr() as *mut Node, Node { next: AtomicPtr::new(*list.head.next.get_mut()) }); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | self.base().grow(ptr, old_layout, new_layout) [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/freelist.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | / unsafe fn grow( [INFO] [stdout] 178 | | &self, [INFO] [stdout] 179 | | ptr: NonNull, [INFO] [stdout] 180 | | old_layout: alloc::Layout, [INFO] [stdout] 181 | | new_layout: alloc::Layout [INFO] [stdout] 182 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | self.base().grow_zeroed(ptr, old_layout, new_layout) [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/freelist.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 187 | / unsafe fn grow_zeroed( [INFO] [stdout] 188 | | &self, [INFO] [stdout] 189 | | ptr: NonNull, [INFO] [stdout] 190 | | old_layout: alloc::Layout, [INFO] [stdout] 191 | | new_layout: alloc::Layout [INFO] [stdout] 192 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | self.base().shrink(ptr, old_layout, new_layout) [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/freelist.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | / unsafe fn shrink( [INFO] [stdout] 198 | | &self, [INFO] [stdout] 199 | | ptr: NonNull, [INFO] [stdout] 200 | | old_layout: alloc::Layout, [INFO] [stdout] 201 | | new_layout: alloc::Layout [INFO] [stdout] 202 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | if let Ok(block) = self.0.allocate(layout) { [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/fallbacked.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | } else if self.0.allows_fallback(layout) { [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] 24 ~ match self.0.allocate(layout) { Ok(block) => { [INFO] [stdout] 25 | Ok(block) [INFO] [stdout] 26 ~ } _ => if self.0.allows_fallback(layout) { [INFO] [stdout] 27 | self.1.allocate(layout) [INFO] [stdout] 28 | } else { [INFO] [stdout] 29 | Err(AllocError) [INFO] [stdout] 30 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | if let Ok(block) = self.0.allocate_zeroed(layout) { [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/fallbacked.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | } else if self.0.allows_fallback(layout) { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 34 ~ match self.0.allocate_zeroed(layout) { Ok(block) => { [INFO] [stdout] 35 | Ok(block) [INFO] [stdout] 36 ~ } _ => if self.0.allows_fallback(layout) { [INFO] [stdout] 37 | self.1.allocate_zeroed(layout) [INFO] [stdout] 38 | } else { [INFO] [stdout] 39 | Err(AllocError) [INFO] [stdout] 40 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | if let Ok(block) = self.0.grow(ptr, old_layout, new_layout) { [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/fallbacked.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | } else if self.0.allows_fallback(new_layout) { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 58 ~ match self.0.grow(ptr, old_layout, new_layout) { Ok(block) => { [INFO] [stdout] 59 | Ok(block) [INFO] [stdout] 60 ~ } _ => if self.0.allows_fallback(new_layout) { [INFO] [stdout] 61 | if let Ok(block) = self.1.allocate(new_layout) { [INFO] [stdout] ... [INFO] [stdout] 69 | Err(AllocError) [INFO] [stdout] 70 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | if let Ok(block) = self.1.allocate(new_layout) { [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/fallbacked.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | } 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] 61 ~ match self.1.allocate(new_layout) { Ok(block) => { [INFO] [stdout] 62 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), old_layout.size()); [INFO] [stdout] 63 | self.0.deallocate(ptr, old_layout); [INFO] [stdout] 64 | Ok(block) [INFO] [stdout] 65 ~ } _ => { [INFO] [stdout] 66 | Err(AllocError) [INFO] [stdout] 67 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:83:16 [INFO] [stdout] | [INFO] [stdout] 83 | if let Ok(block) = self.0.grow_zeroed(ptr, old_layout, new_layout) { [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/fallbacked.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | } else if self.0.allows_fallback(new_layout) { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 83 ~ match self.0.grow_zeroed(ptr, old_layout, new_layout) { Ok(block) => { [INFO] [stdout] 84 | Ok(block) [INFO] [stdout] 85 ~ } _ => if self.0.allows_fallback(new_layout) { [INFO] [stdout] 86 | if let Ok(block) = self.1.allocate_zeroed(new_layout) { [INFO] [stdout] ... [INFO] [stdout] 94 | Err(AllocError) [INFO] [stdout] 95 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | if let Ok(block) = self.1.allocate_zeroed(new_layout) { [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/fallbacked.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | } 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] 86 ~ match self.1.allocate_zeroed(new_layout) { Ok(block) => { [INFO] [stdout] 87 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), old_layout.size()); [INFO] [stdout] 88 | self.0.deallocate(ptr, old_layout); [INFO] [stdout] 89 | Ok(block) [INFO] [stdout] 90 ~ } _ => { [INFO] [stdout] 91 | Err(AllocError) [INFO] [stdout] 92 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | if let Ok(block) = self.0.shrink(ptr, old_layout, new_layout) { [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/fallbacked.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | } else if self.0.allows_fallback(new_layout) { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 108 ~ match self.0.shrink(ptr, old_layout, new_layout) { Ok(block) => { [INFO] [stdout] 109 | Ok(block) [INFO] [stdout] 110 ~ } _ => if self.0.allows_fallback(new_layout) { [INFO] [stdout] 111 | if let Ok(block) = self.1.allocate(new_layout) { [INFO] [stdout] ... [INFO] [stdout] 119 | Err(AllocError) [INFO] [stdout] 120 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/fallbacked.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | if let Ok(block) = self.1.allocate(new_layout) { [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/fallbacked.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 115 | } 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] 111 ~ match self.1.allocate(new_layout) { Ok(block) => { [INFO] [stdout] 112 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), new_layout.size()); [INFO] [stdout] 113 | self.0.deallocate(ptr, old_layout); [INFO] [stdout] 114 | Ok(block) [INFO] [stdout] 115 ~ } _ => { [INFO] [stdout] 116 | Err(AllocError) [INFO] [stdout] 117 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/limited_up_to.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 37 | if let Ok(block) = self.base.allocate(layout) { [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/limited_up_to.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | } 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] 37 ~ match self.base.allocate(layout) { Ok(block) => { [INFO] [stdout] 38 | let len = min(block.len(), self.layout.size()); [INFO] [stdout] 39 | Ok(unsafe { NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), len) }) [INFO] [stdout] 40 ~ } _ => { [INFO] [stdout] 41 | Err(AllocError) [INFO] [stdout] 42 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.49s [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/limited_up_to.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | if let Ok(block) = self.base.allocate_zeroed(layout) { [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/limited_up_to.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | } 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] 50 ~ match self.base.allocate_zeroed(layout) { Ok(block) => { [INFO] [stdout] 51 | let len = min(block.len(), self.layout.size()); [INFO] [stdout] 52 | Ok(unsafe { NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), len) }) [INFO] [stdout] 53 ~ } _ => { [INFO] [stdout] 54 | Err(AllocError) [INFO] [stdout] 55 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/limited_up_to.rs:72:16 [INFO] [stdout] | [INFO] [stdout] 72 | if let Ok(block) = self.base.grow(ptr, old_layout, new_layout) { [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/limited_up_to.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | } 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] 72 ~ match self.base.grow(ptr, old_layout, new_layout) { Ok(block) => { [INFO] [stdout] 73 | let len = min(block.len(), self.layout.size()); [INFO] [stdout] 74 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), len)) [INFO] [stdout] 75 ~ } _ => { [INFO] [stdout] 76 | Err(AllocError) [INFO] [stdout] 77 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/limited_up_to.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | if let Ok(block) = self.base.grow_zeroed(ptr, old_layout, new_layout) { [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/limited_up_to.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | } 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] 90 ~ match self.base.grow_zeroed(ptr, old_layout, new_layout) { Ok(block) => { [INFO] [stdout] 91 | let len = min(block.len(), self.layout.size()); [INFO] [stdout] 92 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), len)) [INFO] [stdout] 93 ~ } _ => { [INFO] [stdout] 94 | Err(AllocError) [INFO] [stdout] 95 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/limited_up_to.rs:108:16 [INFO] [stdout] | [INFO] [stdout] 108 | if let Ok(block) = self.base.shrink(ptr, old_layout, new_layout) { [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/limited_up_to.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | } 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] 108 ~ match self.base.shrink(ptr, old_layout, new_layout) { Ok(block) => { [INFO] [stdout] 109 | let len = min(block.len(), self.layout.size()); [INFO] [stdout] 110 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), len)) [INFO] [stdout] 111 ~ } _ => { [INFO] [stdout] 112 | Err(AllocError) [INFO] [stdout] 113 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/freelist.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | if let Some(next_ptr) = NonNull::new(*list.head.next.get_mut()) { [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/freelist.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | } 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] 140 ~ match NonNull::new(*list.head.next.get_mut()) { Some(next_ptr) => { [INFO] [stdout] 141 | let next = unsafe { ptr::read(next_ptr.as_ptr() as *const Node) }.next; [INFO] [stdout] ... [INFO] [stdout] 144 | Ok(NonNull::slice_from_raw_parts(next_ptr, self.layout.size())) [INFO] [stdout] 145 ~ } _ => { [INFO] [stdout] 146 | self.base().allocate(self.layout) [INFO] [stdout] 147 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/freelist.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 155 | if let Some(next_ptr) = NonNull::new(*list.head.next.get_mut()) { [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/freelist.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | } 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] 155 ~ match NonNull::new(*list.head.next.get_mut()) { Some(next_ptr) => { [INFO] [stdout] 156 | let next = unsafe { ptr::read(next_ptr.as_ptr() as *const Node) }.next; [INFO] [stdout] ... [INFO] [stdout] 161 | Ok(ptr) [INFO] [stdout] 162 ~ } _ => { [INFO] [stdout] 163 | self.base().allocate_zeroed(self.layout) [INFO] [stdout] 164 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 87 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking composable-allocators v0.3.1 (/tmp/fixit) [INFO] [stdout] error[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/base.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | (*self).has_allocated(ptr, layout) [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/base.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | #![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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/base.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | (*self).has_allocated(ptr, layout) [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/base.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | #![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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | self.0.has_allocated(ptr, layout) || self.1.has_allocated(ptr, layout) [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/fallbacked.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:14:46 [INFO] [stdout] | [INFO] [stdout] 14 | self.0.has_allocated(ptr, layout) || self.1.has_allocated(ptr, layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | self.0.has_allocated(ptr, layout) || self.1.has_allocated(ptr, layout) [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/fallbacked.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:14:46 [INFO] [stdout] | [INFO] [stdout] 14 | self.0.has_allocated(ptr, layout) || self.1.has_allocated(ptr, layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | if self.0.has_allocated(ptr, layout) { [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/fallbacked.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | if self.0.has_allocated(ptr, layout) { [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/fallbacked.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | self.0.deallocate(ptr, layout); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | self.1.deallocate(ptr, layout); [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | if self.0.has_allocated(ptr, old_layout) { [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/fallbacked.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | / unsafe fn grow( [INFO] [stdout] 52 | | &self, [INFO] [stdout] 53 | | ptr: NonNull, [INFO] [stdout] 54 | | old_layout: alloc::Layout, [INFO] [stdout] 55 | | new_layout: alloc::Layout [INFO] [stdout] 56 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:58:32 [INFO] [stdout] | [INFO] [stdout] 58 | if let Ok(block) = self.0.grow(ptr, old_layout, new_layout) { [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 `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), old_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | self.0.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | self.1.grow(ptr, old_layout, new_layout) [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | self.0.deallocate(ptr, layout); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | self.1.deallocate(ptr, layout); [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | if self.0.has_allocated(ptr, old_layout) { [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/fallbacked.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | / unsafe fn grow_zeroed( [INFO] [stdout] 77 | | &self, [INFO] [stdout] 78 | | ptr: NonNull, [INFO] [stdout] 79 | | old_layout: alloc::Layout, [INFO] [stdout] 80 | | new_layout: alloc::Layout [INFO] [stdout] 81 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:83:32 [INFO] [stdout] | [INFO] [stdout] 83 | if let Ok(block) = self.0.grow_zeroed(ptr, old_layout, new_layout) { [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 `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), old_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | self.0.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | self.1.grow_zeroed(ptr, old_layout, new_layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | if self.0.has_allocated(ptr, old_layout) { [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/fallbacked.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | / unsafe fn grow( [INFO] [stdout] 52 | | &self, [INFO] [stdout] 53 | | ptr: NonNull, [INFO] [stdout] 54 | | old_layout: alloc::Layout, [INFO] [stdout] 55 | | new_layout: alloc::Layout [INFO] [stdout] 56 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:58:32 [INFO] [stdout] | [INFO] [stdout] 58 | if let Ok(block) = self.0.grow(ptr, old_layout, new_layout) { [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 `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), old_layout.size()); [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | if self.0.has_allocated(ptr, old_layout) { [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/fallbacked.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | / unsafe fn shrink( [INFO] [stdout] 102 | | &self, [INFO] [stdout] 103 | | ptr: NonNull, [INFO] [stdout] 104 | | old_layout: alloc::Layout, [INFO] [stdout] 105 | | new_layout: alloc::Layout [INFO] [stdout] 106 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | self.0.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | if let Ok(block) = self.0.shrink(ptr, old_layout, new_layout) { [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | self.1.grow(ptr, old_layout, new_layout) [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 `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), new_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | self.0.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | self.1.shrink(ptr, old_layout, new_layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | if self.0.has_allocated(ptr, old_layout) { [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/fallbacked.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | / unsafe fn grow_zeroed( [INFO] [stdout] 77 | | &self, [INFO] [stdout] 78 | | ptr: NonNull, [INFO] [stdout] 79 | | old_layout: alloc::Layout, [INFO] [stdout] 80 | | new_layout: alloc::Layout [INFO] [stdout] 81 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:83:32 [INFO] [stdout] | [INFO] [stdout] 83 | if let Ok(block) = self.0.grow_zeroed(ptr, old_layout, new_layout) { [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 `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:87:21 [INFO] [stdout] | [INFO] [stdout] 87 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), old_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | self.0.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | self.1.grow_zeroed(ptr, old_layout, new_layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | if self.0.has_allocated(ptr, old_layout) { [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/fallbacked.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | / unsafe fn shrink( [INFO] [stdout] 102 | | &self, [INFO] [stdout] 103 | | ptr: NonNull, [INFO] [stdout] 104 | | old_layout: alloc::Layout, [INFO] [stdout] 105 | | new_layout: alloc::Layout [INFO] [stdout] 106 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | if let Ok(block) = self.0.shrink(ptr, old_layout, new_layout) { [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 `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:112:21 [INFO] [stdout] | [INFO] [stdout] 112 | ptr::copy_nonoverlapping(ptr.as_ptr(), block.as_mut_ptr(), new_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | self.0.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/fallbacked.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | self.1.shrink(ptr, old_layout, new_layout) [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | self.base.deallocate(ptr, layout); [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/limited_up_to.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | if let Ok(block) = self.base.grow(ptr, old_layout, new_layout) { [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/limited_up_to.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | / unsafe fn grow( [INFO] [stdout] 66 | | &self, [INFO] [stdout] 67 | | ptr: NonNull, [INFO] [stdout] 68 | | old_layout: alloc::Layout, [INFO] [stdout] 69 | | new_layout: alloc::Layout [INFO] [stdout] 70 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:74:50 [INFO] [stdout] | [INFO] [stdout] 74 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), 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 `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:90:32 [INFO] [stdout] | [INFO] [stdout] 90 | if let Ok(block) = self.base.grow_zeroed(ptr, old_layout, new_layout) { [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/limited_up_to.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | / unsafe fn grow_zeroed( [INFO] [stdout] 84 | | &self, [INFO] [stdout] 85 | | ptr: NonNull, [INFO] [stdout] 86 | | old_layout: alloc::Layout, [INFO] [stdout] 87 | | new_layout: alloc::Layout [INFO] [stdout] 88 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | self.base.deallocate(ptr, layout); [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/limited_up_to.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:92:50 [INFO] [stdout] | [INFO] [stdout] 92 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), 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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | if let Ok(block) = self.base.grow(ptr, old_layout, new_layout) { [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/limited_up_to.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | / unsafe fn grow( [INFO] [stdout] 66 | | &self, [INFO] [stdout] 67 | | ptr: NonNull, [INFO] [stdout] 68 | | old_layout: alloc::Layout, [INFO] [stdout] 69 | | new_layout: alloc::Layout [INFO] [stdout] 70 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | if let Ok(block) = self.base.shrink(ptr, old_layout, new_layout) { [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/limited_up_to.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | / unsafe fn shrink( [INFO] [stdout] 102 | | &self, [INFO] [stdout] 103 | | ptr: NonNull, [INFO] [stdout] 104 | | old_layout: alloc::Layout, [INFO] [stdout] 105 | | new_layout: alloc::Layout [INFO] [stdout] 106 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:74:50 [INFO] [stdout] | [INFO] [stdout] 74 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), 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 `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:110:50 [INFO] [stdout] | [INFO] [stdout] 110 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), 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 `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:90:32 [INFO] [stdout] | [INFO] [stdout] 90 | if let Ok(block) = self.base.grow_zeroed(ptr, old_layout, new_layout) { [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/limited_up_to.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | / unsafe fn grow_zeroed( [INFO] [stdout] 84 | | &self, [INFO] [stdout] 85 | | ptr: NonNull, [INFO] [stdout] 86 | | old_layout: alloc::Layout, [INFO] [stdout] 87 | | new_layout: alloc::Layout [INFO] [stdout] 88 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | alloc::Global.deallocate(ptr, layout) [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/global.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:92:50 [INFO] [stdout] | [INFO] [stdout] 92 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), 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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | alloc::Global.grow(ptr, old_layout, new_layout) [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/global.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / unsafe fn grow( [INFO] [stdout] 25 | | &self, [INFO] [stdout] 26 | | ptr: NonNull, [INFO] [stdout] 27 | | old_layout: alloc::Layout, [INFO] [stdout] 28 | | new_layout: alloc::Layout [INFO] [stdout] 29 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | alloc::Global.grow_zeroed(ptr, old_layout, new_layout) [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/global.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | / unsafe fn grow_zeroed( [INFO] [stdout] 34 | | &self, [INFO] [stdout] 35 | | ptr: NonNull, [INFO] [stdout] 36 | | old_layout: alloc::Layout, [INFO] [stdout] 37 | | new_layout: alloc::Layout [INFO] [stdout] 38 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:108:32 [INFO] [stdout] | [INFO] [stdout] 108 | if let Ok(block) = self.base.shrink(ptr, old_layout, new_layout) { [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/limited_up_to.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | / unsafe fn shrink( [INFO] [stdout] 102 | | &self, [INFO] [stdout] 103 | | ptr: NonNull, [INFO] [stdout] 104 | | old_layout: alloc::Layout, [INFO] [stdout] 105 | | new_layout: alloc::Layout [INFO] [stdout] 106 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | alloc::Global.shrink(ptr, old_layout, new_layout) [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/global.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / unsafe fn shrink( [INFO] [stdout] 43 | | &self, [INFO] [stdout] 44 | | ptr: NonNull, [INFO] [stdout] 45 | | old_layout: alloc::Layout, [INFO] [stdout] 46 | | new_layout: alloc::Layout [INFO] [stdout] 47 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/limited_up_to.rs:110:50 [INFO] [stdout] | [INFO] [stdout] 110 | Ok(NonNull::slice_from_raw_parts(NonNull::new_unchecked(block.as_mut_ptr()), 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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | alloc::Global.deallocate(ptr, layout) [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/global.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | self.0.deallocate(NonNull::new_unchecked(ptr), layout) [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/as_global.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe fn dealloc(&self, ptr: *mut u8, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | self.0.deallocate(NonNull::new_unchecked(ptr), layout) [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | alloc::Global.grow(ptr, old_layout, new_layout) [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/global.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / unsafe fn grow( [INFO] [stdout] 25 | | &self, [INFO] [stdout] 26 | | ptr: NonNull, [INFO] [stdout] 27 | | old_layout: alloc::Layout, [INFO] [stdout] 28 | | new_layout: alloc::Layout [INFO] [stdout] 29 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | let ptr = NonNull::new_unchecked(ptr); [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/as_global.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | / unsafe fn realloc( [INFO] [stdout] 27 | | &self, [INFO] [stdout] 28 | | ptr: *mut u8, [INFO] [stdout] 29 | | layout: alloc::Layout, [INFO] [stdout] 30 | | new_size: usize [INFO] [stdout] 31 | | ) -> *mut u8 { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Layout::from_size_align_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | let new_layout = alloc::Layout::from_size_align_unchecked(new_size, layout.align()); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | self.0.grow(ptr, layout, new_layout) [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 `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | alloc::Global.grow_zeroed(ptr, old_layout, new_layout) [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/global.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | / unsafe fn grow_zeroed( [INFO] [stdout] 34 | | &self, [INFO] [stdout] 35 | | ptr: NonNull, [INFO] [stdout] 36 | | old_layout: alloc::Layout, [INFO] [stdout] 37 | | new_layout: alloc::Layout [INFO] [stdout] 38 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | self.0.shrink(ptr, layout, new_layout) [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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/global.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | alloc::Global.shrink(ptr, old_layout, new_layout) [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/global.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / unsafe fn shrink( [INFO] [stdout] 43 | | &self, [INFO] [stdout] 44 | | ptr: NonNull, [INFO] [stdout] 45 | | old_layout: alloc::Layout, [INFO] [stdout] 46 | | new_layout: alloc::Layout [INFO] [stdout] 47 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | self.0.has_allocated(ptr, layout) [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/logging.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | self.0.deallocate(ptr, layout) [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/logging.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | self.0.grow(ptr, old_layout, new_layout) [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/logging.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | / unsafe fn grow( [INFO] [stdout] 37 | | &self, [INFO] [stdout] 38 | | ptr: NonNull, [INFO] [stdout] 39 | | old_layout: alloc::Layout, [INFO] [stdout] 40 | | new_layout: alloc::Layout [INFO] [stdout] 41 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | self.0.deallocate(NonNull::new_unchecked(ptr), layout) [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/as_global.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe fn dealloc(&self, ptr: *mut u8, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | self.0.grow_zeroed(ptr, old_layout, new_layout) [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/logging.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | / unsafe fn grow_zeroed( [INFO] [stdout] 47 | | &self, [INFO] [stdout] 48 | | ptr: NonNull, [INFO] [stdout] 49 | | old_layout: alloc::Layout, [INFO] [stdout] 50 | | new_layout: alloc::Layout [INFO] [stdout] 51 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | self.0.deallocate(NonNull::new_unchecked(ptr), layout) [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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | self.0.shrink(ptr, old_layout, new_layout) [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/logging.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | / unsafe fn shrink( [INFO] [stdout] 57 | | &self, [INFO] [stdout] 58 | | ptr: NonNull, [INFO] [stdout] 59 | | old_layout: alloc::Layout, [INFO] [stdout] 60 | | new_layout: alloc::Layout [INFO] [stdout] 61 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::NonNull::::new_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | let ptr = NonNull::new_unchecked(ptr); [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/as_global.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | / unsafe fn realloc( [INFO] [stdout] 27 | | &self, [INFO] [stdout] 28 | | ptr: *mut u8, [INFO] [stdout] 29 | | layout: alloc::Layout, [INFO] [stdout] 30 | | new_size: usize [INFO] [stdout] 31 | | ) -> *mut u8 { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Layout::from_size_align_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | let new_layout = alloc::Layout::from_size_align_unchecked(new_size, layout.align()); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | self.0.grow(ptr, layout, new_layout) [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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/as_global.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | self.0.shrink(ptr, layout, new_layout) [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 `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | self.0.has_allocated(ptr, layout) [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/logging.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | free(ptr.as_ptr() as _); [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/posix.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `libc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | let ptr = NonNull::new(realloc(ptr.as_ptr() as _, new_layout.size()) as *mut u8).ok_or(AllocError)?; [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/posix.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / unsafe fn grow( [INFO] [stdout] 54 | | &self, [INFO] [stdout] 55 | | ptr: NonNull, [INFO] [stdout] 56 | | old_layout: alloc::Layout, [INFO] [stdout] 57 | | new_layout: alloc::Layout [INFO] [stdout] 58 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | self.0.deallocate(ptr, layout) [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/logging.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | ptr::copy_nonoverlapping(ptr.as_ptr(), new.as_mut_ptr(), old_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | self.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | self.0.grow(ptr, old_layout, new_layout) [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/logging.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | / unsafe fn grow( [INFO] [stdout] 37 | | &self, [INFO] [stdout] 38 | | ptr: NonNull, [INFO] [stdout] 39 | | old_layout: alloc::Layout, [INFO] [stdout] 40 | | new_layout: alloc::Layout [INFO] [stdout] 41 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 77 | let ptr = self.grow(ptr, old_layout, new_layout)?; [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/posix.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / unsafe fn grow_zeroed( [INFO] [stdout] 72 | | &self, [INFO] [stdout] 73 | | ptr: NonNull, [INFO] [stdout] 74 | | old_layout: alloc::Layout, [INFO] [stdout] 75 | | new_layout: alloc::Layout [INFO] [stdout] 76 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::mut_ptr::::write_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | ptr.as_mut_ptr().map_addr(|x| x + old_layout.size()).write_bytes(0, ptr.len() - old_layout.size()); [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 `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | self.0.grow_zeroed(ptr, old_layout, new_layout) [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/logging.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | / unsafe fn grow_zeroed( [INFO] [stdout] 47 | | &self, [INFO] [stdout] 48 | | ptr: NonNull, [INFO] [stdout] 49 | | old_layout: alloc::Layout, [INFO] [stdout] 50 | | new_layout: alloc::Layout [INFO] [stdout] 51 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `libc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:89:36 [INFO] [stdout] | [INFO] [stdout] 89 | let ptr = NonNull::new(realloc(ptr.as_ptr() as _, new_layout.size()) as *mut u8).ok_or(AllocError)?; [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/posix.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | / unsafe fn shrink( [INFO] [stdout] 83 | | &self, [INFO] [stdout] 84 | | ptr: NonNull, [INFO] [stdout] 85 | | old_layout: alloc::Layout, [INFO] [stdout] 86 | | new_layout: alloc::Layout [INFO] [stdout] 87 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | ptr::copy_nonoverlapping(ptr.as_ptr(), new.as_mut_ptr(), new_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | self.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/logging.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | self.0.shrink(ptr, old_layout, new_layout) [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/logging.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | / unsafe fn shrink( [INFO] [stdout] 57 | | &self, [INFO] [stdout] 58 | | ptr: NonNull, [INFO] [stdout] 59 | | old_layout: alloc::Layout, [INFO] [stdout] 60 | | new_layout: alloc::Layout [INFO] [stdout] 61 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | IMPL.deallocate(ptr, layout) [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/system.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | IMPL.grow(ptr, old_layout, new_layout) [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/system.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / unsafe fn grow( [INFO] [stdout] 31 | | &self, [INFO] [stdout] 32 | | ptr: NonNull, [INFO] [stdout] 33 | | old_layout: alloc::Layout, [INFO] [stdout] 34 | | new_layout: alloc::Layout [INFO] [stdout] 35 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | IMPL.grow_zeroed(ptr, old_layout, new_layout) [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/system.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | / unsafe fn grow_zeroed( [INFO] [stdout] 40 | | &self, [INFO] [stdout] 41 | | ptr: NonNull, [INFO] [stdout] 42 | | old_layout: alloc::Layout, [INFO] [stdout] 43 | | new_layout: alloc::Layout [INFO] [stdout] 44 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | IMPL.shrink(ptr, old_layout, new_layout) [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/system.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | / unsafe fn shrink( [INFO] [stdout] 49 | | &self, [INFO] [stdout] 50 | | ptr: NonNull, [INFO] [stdout] 51 | | old_layout: alloc::Layout, [INFO] [stdout] 52 | | new_layout: alloc::Layout [INFO] [stdout] 53 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/non_working.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | unreachable_unchecked() [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/non_working.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe fn deallocate(&self, _ptr: NonNull, _layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `libc::free` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | free(ptr.as_ptr() as _); [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/posix.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `libc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | let ptr = NonNull::new(realloc(ptr.as_ptr() as _, new_layout.size()) as *mut u8).ok_or(AllocError)?; [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/posix.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / unsafe fn grow( [INFO] [stdout] 54 | | &self, [INFO] [stdout] 55 | | ptr: NonNull, [INFO] [stdout] 56 | | old_layout: alloc::Layout, [INFO] [stdout] 57 | | new_layout: alloc::Layout [INFO] [stdout] 58 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | ptr::copy_nonoverlapping(ptr.as_ptr(), new.as_mut_ptr(), old_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | self.deallocate(ptr, old_layout); [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 `core::ptr::mut_ptr::::offset_from` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | let start_offset = ptr.as_ptr().offset_from(self.buf_ptr.load(Ordering::Relaxed)) as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stacked.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | / unsafe fn grow_raw( [INFO] [stdout] 68 | | &self, [INFO] [stdout] 69 | | ptr: NonNull, [INFO] [stdout] 70 | | old_layout: alloc::Layout, [INFO] [stdout] 71 | | new_layout: alloc::Layout, [INFO] [stdout] 72 | | zeroed: bool, [INFO] [stdout] 73 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::mut_ptr::::write_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | ptr.as_ptr().add(old_layout.size()).write_bytes(0, new_layout.size() - old_layout.size()); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 77 | let ptr = self.grow(ptr, old_layout, new_layout)?; [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/posix.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | / unsafe fn grow_zeroed( [INFO] [stdout] 72 | | &self, [INFO] [stdout] 73 | | ptr: NonNull, [INFO] [stdout] 74 | | old_layout: alloc::Layout, [INFO] [stdout] 75 | | new_layout: alloc::Layout [INFO] [stdout] 76 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | ptr.as_ptr().add(old_layout.size()).write_bytes(0, new_layout.size() - old_layout.size()); [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 `core::ptr::mut_ptr::::write_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | ptr.as_mut_ptr().map_addr(|x| x + old_layout.size()).write_bytes(0, ptr.len() - old_layout.size()); [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 `libc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:89:36 [INFO] [stdout] | [INFO] [stdout] 89 | let ptr = NonNull::new(realloc(ptr.as_ptr() as _, new_layout.size()) as *mut u8).ok_or(AllocError)?; [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/posix.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | / unsafe fn shrink( [INFO] [stdout] 83 | | &self, [INFO] [stdout] 84 | | ptr: NonNull, [INFO] [stdout] 85 | | old_layout: alloc::Layout, [INFO] [stdout] 86 | | new_layout: alloc::Layout [INFO] [stdout] 87 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:110:38 [INFO] [stdout] | [INFO] [stdout] 110 | offset < self.buf_len && self.buf_ptr.load(Ordering::Relaxed).add(offset) == ptr.as_ptr() [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/stacked.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | unsafe fn has_allocated(&self, ptr: NonNull, _layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | ptr::copy_nonoverlapping(ptr.as_ptr(), new.as_mut_ptr(), new_layout.size()); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/posix.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | self.deallocate(ptr, old_layout); [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 `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | IMPL.deallocate(ptr, layout) [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/system.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | IMPL.grow(ptr, old_layout, new_layout) [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/system.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / unsafe fn grow( [INFO] [stdout] 31 | | &self, [INFO] [stdout] 32 | | ptr: NonNull, [INFO] [stdout] 33 | | old_layout: alloc::Layout, [INFO] [stdout] 34 | | new_layout: alloc::Layout [INFO] [stdout] 35 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::mut_ptr::::offset_from` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:144:28 [INFO] [stdout] | [INFO] [stdout] 144 | let start_offset = ptr.as_ptr().offset_from(self.buf_ptr.load(Ordering::Relaxed)) as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stacked.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | IMPL.grow_zeroed(ptr, old_layout, new_layout) [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/system.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | / unsafe fn grow_zeroed( [INFO] [stdout] 40 | | &self, [INFO] [stdout] 41 | | ptr: NonNull, [INFO] [stdout] 42 | | old_layout: alloc::Layout, [INFO] [stdout] 43 | | new_layout: alloc::Layout [INFO] [stdout] 44 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `stacked::Stacked::grow_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | self.grow_raw(ptr, old_layout, new_layout, false) [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/stacked.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | / unsafe fn grow( [INFO] [stdout] 151 | | &self, [INFO] [stdout] 152 | | ptr: NonNull, [INFO] [stdout] 153 | | old_layout: alloc::Layout, [INFO] [stdout] 154 | | new_layout: alloc::Layout [INFO] [stdout] 155 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `stacked::Stacked::grow_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | self.grow_raw(ptr, old_layout, new_layout, true) [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/stacked.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | / unsafe fn grow_zeroed( [INFO] [stdout] 160 | | &self, [INFO] [stdout] 161 | | ptr: NonNull, [INFO] [stdout] 162 | | old_layout: alloc::Layout, [INFO] [stdout] 163 | | new_layout: alloc::Layout [INFO] [stdout] 164 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/system.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | IMPL.shrink(ptr, old_layout, new_layout) [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/system.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | / unsafe fn shrink( [INFO] [stdout] 49 | | &self, [INFO] [stdout] 50 | | ptr: NonNull, [INFO] [stdout] 51 | | old_layout: alloc::Layout, [INFO] [stdout] 52 | | new_layout: alloc::Layout [INFO] [stdout] 53 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::mut_ptr::::offset_from` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | let start_offset = ptr.as_ptr().offset_from(self.buf_ptr.load(Ordering::Relaxed)) as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stacked.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | / unsafe fn shrink( [INFO] [stdout] 169 | | &self, [INFO] [stdout] 170 | | ptr: NonNull, [INFO] [stdout] 171 | | old_layout: alloc::Layout, [INFO] [stdout] 172 | | new_layout: alloc::Layout [INFO] [stdout] 173 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/non_working.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | unreachable_unchecked() [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/non_working.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe fn deallocate(&self, _ptr: NonNull, _layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | self.base().has_allocated(ptr, layout) [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/freelist.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::mut_ptr::::offset_from` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | let start_offset = ptr.as_ptr().offset_from(self.buf_ptr.load(Ordering::Relaxed)) as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stacked.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | / unsafe fn grow_raw( [INFO] [stdout] 68 | | &self, [INFO] [stdout] 69 | | ptr: NonNull, [INFO] [stdout] 70 | | old_layout: alloc::Layout, [INFO] [stdout] 71 | | new_layout: alloc::Layout, [INFO] [stdout] 72 | | zeroed: bool, [INFO] [stdout] 73 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::mut_ptr::::write_bytes` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | ptr.as_ptr().add(old_layout.size()).write_bytes(0, new_layout.size() - old_layout.size()); [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 `core::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | ptr.as_ptr().add(old_layout.size()).write_bytes(0, new_layout.size() - old_layout.size()); [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 `freelist::LimitParam::limit_reached` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | if self.limit.limit_reached(list.len) || !self.manages(layout) { [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/freelist.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | return self.base().deallocate(ptr, layout); [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 `core::ptr::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | ptr::write(ptr.as_ptr() as *mut Node, Node { next: AtomicPtr::new(*list.head.next.get_mut()) }); [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 `core::ptr::mut_ptr::::add` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:110:38 [INFO] [stdout] | [INFO] [stdout] 110 | offset < self.buf_len && self.buf_ptr.load(Ordering::Relaxed).add(offset) == ptr.as_ptr() [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/stacked.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | unsafe fn has_allocated(&self, ptr: NonNull, _layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | self.base().grow(ptr, old_layout, new_layout) [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/freelist.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | / unsafe fn grow( [INFO] [stdout] 178 | | &self, [INFO] [stdout] 179 | | ptr: NonNull, [INFO] [stdout] 180 | | old_layout: alloc::Layout, [INFO] [stdout] 181 | | new_layout: alloc::Layout [INFO] [stdout] 182 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | self.base().grow_zeroed(ptr, old_layout, new_layout) [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/freelist.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 187 | / unsafe fn grow_zeroed( [INFO] [stdout] 188 | | &self, [INFO] [stdout] 189 | | ptr: NonNull, [INFO] [stdout] 190 | | old_layout: alloc::Layout, [INFO] [stdout] 191 | | new_layout: alloc::Layout [INFO] [stdout] 192 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | self.base().shrink(ptr, old_layout, new_layout) [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/freelist.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | / unsafe fn shrink( [INFO] [stdout] 198 | | &self, [INFO] [stdout] 199 | | ptr: NonNull, [INFO] [stdout] 200 | | old_layout: alloc::Layout, [INFO] [stdout] 201 | | new_layout: alloc::Layout [INFO] [stdout] 202 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::mut_ptr::::offset_from` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:144:28 [INFO] [stdout] | [INFO] [stdout] 144 | let start_offset = ptr.as_ptr().offset_from(self.buf_ptr.load(Ordering::Relaxed)) as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stacked.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `stacked::Stacked::grow_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | self.grow_raw(ptr, old_layout, new_layout, false) [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/stacked.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | / unsafe fn grow( [INFO] [stdout] 151 | | &self, [INFO] [stdout] 152 | | ptr: NonNull, [INFO] [stdout] 153 | | old_layout: alloc::Layout, [INFO] [stdout] 154 | | new_layout: alloc::Layout [INFO] [stdout] 155 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `stacked::Stacked::grow_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | self.grow_raw(ptr, old_layout, new_layout, true) [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/stacked.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | / unsafe fn grow_zeroed( [INFO] [stdout] 160 | | &self, [INFO] [stdout] 161 | | ptr: NonNull, [INFO] [stdout] 162 | | old_layout: alloc::Layout, [INFO] [stdout] 163 | | new_layout: alloc::Layout [INFO] [stdout] 164 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::ptr::mut_ptr::::offset_from` is unsafe and requires unsafe block [INFO] [stdout] --> src/stacked.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | let start_offset = ptr.as_ptr().offset_from(self.buf_ptr.load(Ordering::Relaxed)) as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/stacked.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | / unsafe fn shrink( [INFO] [stdout] 169 | | &self, [INFO] [stdout] 170 | | ptr: NonNull, [INFO] [stdout] 171 | | old_layout: alloc::Layout, [INFO] [stdout] 172 | | new_layout: alloc::Layout [INFO] [stdout] 173 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `base::Fallbackable::has_allocated` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | self.base().has_allocated(ptr, layout) [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/freelist.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | unsafe fn has_allocated(&self, ptr: NonNull, layout: alloc::Layout) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `freelist::LimitParam::limit_reached` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | if self.limit.limit_reached(list.len) || !self.manages(layout) { [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/freelist.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | unsafe fn deallocate(&self, ptr: NonNull, layout: alloc::Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::deallocate` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | return self.base().deallocate(ptr, layout); [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 `core::ptr::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | ptr::write(ptr.as_ptr() as *mut Node, Node { next: AtomicPtr::new(*list.head.next.get_mut()) }); [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 `core::alloc::Allocator::grow` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | self.base().grow(ptr, old_layout, new_layout) [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/freelist.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | / unsafe fn grow( [INFO] [stdout] 178 | | &self, [INFO] [stdout] 179 | | ptr: NonNull, [INFO] [stdout] 180 | | old_layout: alloc::Layout, [INFO] [stdout] 181 | | new_layout: alloc::Layout [INFO] [stdout] 182 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::grow_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | self.base().grow_zeroed(ptr, old_layout, new_layout) [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/freelist.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 187 | / unsafe fn grow_zeroed( [INFO] [stdout] 188 | | &self, [INFO] [stdout] 189 | | ptr: NonNull, [INFO] [stdout] 190 | | old_layout: alloc::Layout, [INFO] [stdout] 191 | | new_layout: alloc::Layout [INFO] [stdout] 192 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `core::alloc::Allocator::shrink` is unsafe and requires unsafe block [INFO] [stdout] --> src/freelist.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | self.base().shrink(ptr, old_layout, new_layout) [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/freelist.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | / unsafe fn shrink( [INFO] [stdout] 198 | | &self, [INFO] [stdout] 199 | | ptr: NonNull, [INFO] [stdout] 200 | | old_layout: alloc::Layout, [INFO] [stdout] 201 | | new_layout: alloc::Layout [INFO] [stdout] 202 | | ) -> Result, AllocError> { [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 72 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 `composable-allocators` (lib test) due to 73 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 72 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 `composable-allocators` (lib) due to 73 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" "0011b48eb69214f881e22f86ca652a6fa0e15bad5515ad290fcaf1dc87a3fd70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0011b48eb69214f881e22f86ca652a6fa0e15bad5515ad290fcaf1dc87a3fd70", kill_on_drop: false }` [INFO] [stdout] 0011b48eb69214f881e22f86ca652a6fa0e15bad5515ad290fcaf1dc87a3fd70