[INFO] fetching crate lv-std 0.0.2... [INFO] testing lv-std-0.0.2 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate lv-std 0.0.2 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate lv-std 0.0.2 [INFO] finished tweaking crates.io crate lv-std 0.0.2 [INFO] tweaked toml for crates.io crate lv-std 0.0.2 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate lv-std 0.0.2 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate lv-std 0.0.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7bfe24f707b3b42cf8d83f913974f15da2a15d3ec106e3fd1f0d6a84474857b [INFO] running `Command { std: "docker" "start" "-a" "a7bfe24f707b3b42cf8d83f913974f15da2a15d3ec106e3fd1f0d6a84474857b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7bfe24f707b3b42cf8d83f913974f15da2a15d3ec106e3fd1f0d6a84474857b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7bfe24f707b3b42cf8d83f913974f15da2a15d3ec106e3fd1f0d6a84474857b", kill_on_drop: false }` [INFO] [stdout] a7bfe24f707b3b42cf8d83f913974f15da2a15d3ec106e3fd1f0d6a84474857b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bde74adc36a5ccc3eaa44a083c80afdf6a1b8052cdd0c2bdc425606e7cd25018 [INFO] running `Command { std: "docker" "start" "-a" "bde74adc36a5ccc3eaa44a083c80afdf6a1b8052cdd0c2bdc425606e7cd25018", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling generic-array v1.2.0 [INFO] [stderr] Compiling lv-std v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `GenericArray` [INFO] [stdout] --> src/unsafe_std/c/opaque_handle.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use generic_array::{GenericArray, ArrayLength}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/unsafe_std/c/opaque_handle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `typenum::assert_type_eq` [INFO] [stdout] --> src/unsafe_std/ptrs/ptr_utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use typenum::assert_type_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::intrinsics::transmute` [INFO] [stdout] --> src/unsafe_std/ptrs/into_raw_ptr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::transmute_copy` [INFO] [stdout] --> src/unsafe_std/ptrs/into_raw_ptr.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::mem::transmute_copy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead [INFO] [stdout] --> src/unsafe_std/ptrs/into_raw_ptr.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/c/opaque_handle.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | transmute(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/c/opaque_handle.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe fn to_ptr(&self) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::cast` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/c/handle_buffer.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | RawPtr::::from(self.buffer.as_ptr()).cast() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/c/handle_buffer.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | unsafe fn to_ptr(&self) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | transmute(raw) [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub const unsafe fn from_raw(raw: *mut T) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | ptr: alloc_zeroed(Layout::new::()) as *mut T, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub unsafe fn alloc() -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | ptr: alloc_zeroed(Layout::array::(amount).unwrap()) as *mut T, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub unsafe fn calloc(amount: usize) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | ptr: alloc(Layout::array::(size).unwrap()) as *mut T, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub unsafe fn malloc(size: usize) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | dealloc(self.ptr as *mut u8, Layout::new::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub unsafe fn free(self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | &*self.ptr.offset(index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub const unsafe fn index<'a>(self, index: isize) -> &'a T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::offset` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:79:11 [INFO] [stdout] | [INFO] [stdout] 79 | &*self.ptr.offset(index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | &mut *self.ptr.offset(index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub const unsafe fn index_mut<'a>(self, index: isize) -> &'a mut T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::offset` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | &mut *self.ptr.offset(index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | copy_nonoverlapping(self.ptr, other.ptr, size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub const unsafe fn copy_to(self, other: &mut Self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | copy_nonoverlapping(self.ptr, other.to_ptr().cast().ptr, size) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | / pub unsafe fn mem_copy_to(self, other: D, size: usize) [INFO] [stdout] 94 | | where ::Pointee: 'static [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::cast` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:96:39 [INFO] [stdout] | [INFO] [stdout] 96 | copy_nonoverlapping(self.ptr, other.to_ptr().cast().ptr, size) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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 `unsafe_std::ptrs::into_raw_ptr::IntoRawPtr::to_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:96:39 [INFO] [stdout] | [INFO] [stdout] 96 | copy_nonoverlapping(self.ptr, other.to_ptr().cast().ptr, size) [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | *self.ptr = value; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub unsafe fn assign(mut self, value: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | pub unsafe fn assign(mut self, value: T) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::assign` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | self.assign(transmute_copy(&value)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn assign_cast(mut self, value: D) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::mem::transmute_copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | self.assign(transmute_copy(&value)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:106:43 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn assign_cast(mut self, value: D) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | *self.ptr = value; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe fn assign_check(mut self, value: T) -> ptr_utils::PtrState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:112:32 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe fn assign_check(mut self, value: T) -> ptr_utils::PtrState { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::as_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | self.ptr.as_ref() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub const unsafe fn as_ref<'a>(self) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::as_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | self.ptr.as_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub const unsafe fn as_mut<'a>(mut self) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:138:36 [INFO] [stdout] | [INFO] [stdout] 138 | pub const unsafe fn as_mut<'a>(mut self) -> Option<&'a mut T> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | transmute(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | pub const unsafe fn cast(self) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | transmute(self.ptr as *const U) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | pub const unsafe fn cast_ref<'a, U>(self) -> &'a U { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | transmute(self.ptr as *mut U) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | pub const unsafe fn cast_mut<'a, U>(mut self) -> &'a mut U { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:178:41 [INFO] [stdout] | [INFO] [stdout] 178 | pub const unsafe fn cast_mut<'a, U>(mut self) -> &'a mut U { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | transmute(self.ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 183 | pub const unsafe fn cast_raw(self) -> *mut U { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | transmute(self.ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | pub const unsafe fn cast_const_raw(mut self) -> *const U { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:188:43 [INFO] [stdout] | [INFO] [stdout] 188 | pub const unsafe fn cast_const_raw(mut self) -> *const U { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | RawPtr::::from_raw(self.ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub const unsafe fn to_owned(&self) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `NULL` is never used [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 20 | impl RawPtr { [INFO] [stdout] | ---------------------------------- associated constant in this implementation [INFO] [stdout] 21 | [INFO] [stdout] 22 | const NULL: RawPtr = RawPtr::null(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.29s [INFO] running `Command { std: "docker" "inspect" "bde74adc36a5ccc3eaa44a083c80afdf6a1b8052cdd0c2bdc425606e7cd25018", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bde74adc36a5ccc3eaa44a083c80afdf6a1b8052cdd0c2bdc425606e7cd25018", kill_on_drop: false }` [INFO] [stdout] bde74adc36a5ccc3eaa44a083c80afdf6a1b8052cdd0c2bdc425606e7cd25018 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5a0a787be2bb0b9c178bea55a812d880d5edb70fef22c6ee25b1612e6322eaa [INFO] running `Command { std: "docker" "start" "-a" "a5a0a787be2bb0b9c178bea55a812d880d5edb70fef22c6ee25b1612e6322eaa", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `GenericArray` [INFO] [stdout] --> src/unsafe_std/c/opaque_handle.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use generic_array::{GenericArray, ArrayLength}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/unsafe_std/c/opaque_handle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `typenum::assert_type_eq` [INFO] [stdout] --> src/unsafe_std/ptrs/ptr_utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use typenum::assert_type_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::intrinsics::transmute` [INFO] [stdout] --> src/unsafe_std/ptrs/into_raw_ptr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::transmute_copy` [INFO] [stdout] --> src/unsafe_std/ptrs/into_raw_ptr.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::mem::transmute_copy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead [INFO] [stdout] --> src/unsafe_std/ptrs/into_raw_ptr.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/c/opaque_handle.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | transmute(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/c/opaque_handle.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe fn to_ptr(&self) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::cast` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/c/handle_buffer.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | RawPtr::::from(self.buffer.as_ptr()).cast() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/c/handle_buffer.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | unsafe fn to_ptr(&self) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | transmute(raw) [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub const unsafe fn from_raw(raw: *mut T) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | ptr: alloc_zeroed(Layout::new::()) as *mut T, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub unsafe fn alloc() -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | ptr: alloc_zeroed(Layout::array::(amount).unwrap()) as *mut T, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub unsafe fn calloc(amount: usize) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | ptr: alloc(Layout::array::(size).unwrap()) as *mut T, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub unsafe fn malloc(size: usize) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | dealloc(self.ptr as *mut u8, Layout::new::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub unsafe fn free(self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | &*self.ptr.offset(index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub const unsafe fn index<'a>(self, index: isize) -> &'a T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::offset` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:79:11 [INFO] [stdout] | [INFO] [stdout] 79 | &*self.ptr.offset(index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | &mut *self.ptr.offset(index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub const unsafe fn index_mut<'a>(self, index: isize) -> &'a mut T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::offset` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | &mut *self.ptr.offset(index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | copy_nonoverlapping(self.ptr, other.ptr, size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub const unsafe fn copy_to(self, other: &mut Self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | copy_nonoverlapping(self.ptr, other.to_ptr().cast().ptr, size) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | / pub unsafe fn mem_copy_to(self, other: D, size: usize) [INFO] [stdout] 94 | | where ::Pointee: 'static [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::cast` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:96:39 [INFO] [stdout] | [INFO] [stdout] 96 | copy_nonoverlapping(self.ptr, other.to_ptr().cast().ptr, size) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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 `unsafe_std::ptrs::into_raw_ptr::IntoRawPtr::to_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:96:39 [INFO] [stdout] | [INFO] [stdout] 96 | copy_nonoverlapping(self.ptr, other.to_ptr().cast().ptr, size) [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | *self.ptr = value; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub unsafe fn assign(mut self, value: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | pub unsafe fn assign(mut self, value: T) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::assign` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | self.assign(transmute_copy(&value)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn assign_cast(mut self, value: D) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::mem::transmute_copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | self.assign(transmute_copy(&value)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:106:43 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn assign_cast(mut self, value: D) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | *self.ptr = value; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe fn assign_check(mut self, value: T) -> ptr_utils::PtrState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:112:32 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe fn assign_check(mut self, value: T) -> ptr_utils::PtrState { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::as_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | self.ptr.as_ref() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub const unsafe fn as_ref<'a>(self) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::as_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | self.ptr.as_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub const unsafe fn as_mut<'a>(mut self) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:138:36 [INFO] [stdout] | [INFO] [stdout] 138 | pub const unsafe fn as_mut<'a>(mut self) -> Option<&'a mut T> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | transmute(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | pub const unsafe fn cast(self) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | transmute(self.ptr as *const U) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | pub const unsafe fn cast_ref<'a, U>(self) -> &'a U { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | transmute(self.ptr as *mut U) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | pub const unsafe fn cast_mut<'a, U>(mut self) -> &'a mut U { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:178:41 [INFO] [stdout] | [INFO] [stdout] 178 | pub const unsafe fn cast_mut<'a, U>(mut self) -> &'a mut U { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling lv-std v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | transmute(self.ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 183 | pub const unsafe fn cast_raw(self) -> *mut U { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | transmute(self.ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | pub const unsafe fn cast_const_raw(mut self) -> *const U { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:188:43 [INFO] [stdout] | [INFO] [stdout] 188 | pub const unsafe fn cast_const_raw(mut self) -> *const U { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | RawPtr::::from_raw(self.ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub const unsafe fn to_owned(&self) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `NULL` is never used [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 20 | impl RawPtr { [INFO] [stdout] | ---------------------------------- associated constant in this implementation [INFO] [stdout] 21 | [INFO] [stdout] 22 | const NULL: RawPtr = RawPtr::null(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericArray` [INFO] [stdout] --> src/unsafe_std/c/opaque_handle.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use generic_array::{GenericArray, ArrayLength}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/unsafe_std/c/opaque_handle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `typenum::assert_type_eq` [INFO] [stdout] --> src/unsafe_std/ptrs/ptr_utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use typenum::assert_type_eq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::intrinsics::transmute` [INFO] [stdout] --> src/unsafe_std/ptrs/into_raw_ptr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::transmute_copy` [INFO] [stdout] --> src/unsafe_std/ptrs/into_raw_ptr.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::mem::transmute_copy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead [INFO] [stdout] --> src/unsafe_std/ptrs/into_raw_ptr.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/c/opaque_handle.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | transmute(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/c/opaque_handle.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe fn to_ptr(&self) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::cast` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/c/handle_buffer.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | RawPtr::::from(self.buffer.as_ptr()).cast() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/c/handle_buffer.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | unsafe fn to_ptr(&self) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | transmute(raw) [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub const unsafe fn from_raw(raw: *mut T) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | ptr: alloc_zeroed(Layout::new::()) as *mut T, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub unsafe fn alloc() -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 59 | ptr: alloc_zeroed(Layout::array::(amount).unwrap()) as *mut T, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub unsafe fn calloc(amount: usize) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | ptr: alloc(Layout::array::(size).unwrap()) as *mut T, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | pub unsafe fn malloc(size: usize) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | dealloc(self.ptr as *mut u8, Layout::new::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub unsafe fn free(self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | &*self.ptr.offset(index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub const unsafe fn index<'a>(self, index: isize) -> &'a T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::offset` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:79:11 [INFO] [stdout] | [INFO] [stdout] 79 | &*self.ptr.offset(index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:84:14 [INFO] [stdout] | [INFO] [stdout] 84 | &mut *self.ptr.offset(index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub const unsafe fn index_mut<'a>(self, index: isize) -> &'a mut T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::offset` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | &mut *self.ptr.offset(index) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | copy_nonoverlapping(self.ptr, other.ptr, size_of::()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | pub const unsafe fn copy_to(self, other: &mut Self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | copy_nonoverlapping(self.ptr, other.to_ptr().cast().ptr, size) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | / pub unsafe fn mem_copy_to(self, other: D, size: usize) [INFO] [stdout] 94 | | where ::Pointee: 'static [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::cast` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:96:39 [INFO] [stdout] | [INFO] [stdout] 96 | copy_nonoverlapping(self.ptr, other.to_ptr().cast().ptr, size) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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 `unsafe_std::ptrs::into_raw_ptr::IntoRawPtr::to_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:96:39 [INFO] [stdout] | [INFO] [stdout] 96 | copy_nonoverlapping(self.ptr, other.to_ptr().cast().ptr, size) [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | *self.ptr = value; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | pub unsafe fn assign(mut self, value: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | pub unsafe fn assign(mut self, value: T) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::assign` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | self.assign(transmute_copy(&value)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn assign_cast(mut self, value: D) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::mem::transmute_copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | self.assign(transmute_copy(&value)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:106:43 [INFO] [stdout] | [INFO] [stdout] 106 | pub unsafe fn assign_cast(mut self, value: D) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | *self.ptr = value; [INFO] [stdout] | ^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe fn assign_check(mut self, value: T) -> ptr_utils::PtrState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:112:32 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe fn assign_check(mut self, value: T) -> ptr_utils::PtrState { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::as_ref` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | self.ptr.as_ref() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub const unsafe fn as_ref<'a>(self) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::as_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | self.ptr.as_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub const unsafe fn as_mut<'a>(mut self) -> Option<&'a mut T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:138:36 [INFO] [stdout] | [INFO] [stdout] 138 | pub const unsafe fn as_mut<'a>(mut self) -> Option<&'a mut T> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | transmute(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | pub const unsafe fn cast(self) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | transmute(self.ptr as *const U) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 173 | pub const unsafe fn cast_ref<'a, U>(self) -> &'a U { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | transmute(self.ptr as *mut U) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 178 | pub const unsafe fn cast_mut<'a, U>(mut self) -> &'a mut U { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:178:41 [INFO] [stdout] | [INFO] [stdout] 178 | pub const unsafe fn cast_mut<'a, U>(mut self) -> &'a mut U { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | transmute(self.ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 183 | pub const unsafe fn cast_raw(self) -> *mut U { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | transmute(self.ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | pub const unsafe fn cast_const_raw(mut self) -> *const U { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:188:43 [INFO] [stdout] | [INFO] [stdout] 188 | pub const unsafe fn cast_const_raw(mut self) -> *const U { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | RawPtr::::from_raw(self.ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [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/unsafe_std/ptrs/raw_ptr.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub const unsafe fn to_owned(&self) -> RawPtr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:258:13 [INFO] [stdout] | [INFO] [stdout] 258 | unsafe { assert_eq!(*p_x, 32); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wide_null` [INFO] [stdout] --> src/unsafe_std/ptrs/raw_ptr.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 261 | let wide_null: *mut dyn Debug = thin_null as *mut dyn Debug; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wide_null` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "a5a0a787be2bb0b9c178bea55a812d880d5edb70fef22c6ee25b1612e6322eaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5a0a787be2bb0b9c178bea55a812d880d5edb70fef22c6ee25b1612e6322eaa", kill_on_drop: false }` [INFO] [stdout] a5a0a787be2bb0b9c178bea55a812d880d5edb70fef22c6ee25b1612e6322eaa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 179fcdd6b34eeb0cb2bda62bc933697292b0624d58b97cfdba5d60042de9ff82 [INFO] running `Command { std: "docker" "start" "-a" "179fcdd6b34eeb0cb2bda62bc933697292b0624d58b97cfdba5d60042de9ff82", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `GenericArray` [INFO] [stderr] --> src/unsafe_std/c/opaque_handle.rs:1:21 [INFO] [stderr] | [INFO] [stderr] 1 | use generic_array::{GenericArray, ArrayLength}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::marker::PhantomData` [INFO] [stderr] --> src/unsafe_std/c/opaque_handle.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::marker::PhantomData; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `typenum::assert_type_eq` [INFO] [stderr] --> src/unsafe_std/ptrs/ptr_utils.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use typenum::assert_type_eq; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::intrinsics::transmute` [INFO] [stderr] --> src/unsafe_std/ptrs/into_raw_ptr.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::intrinsics::transmute; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::mem::transmute_copy` [INFO] [stderr] --> src/unsafe_std/ptrs/into_raw_ptr.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::mem::transmute_copy; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead [INFO] [stderr] --> src/unsafe_std/ptrs/into_raw_ptr.rs:1:22 [INFO] [stderr] | [INFO] [stderr] 1 | use std::intrinsics::transmute; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/c/opaque_handle.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | transmute(self) [INFO] [stderr] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/c/opaque_handle.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | unsafe fn to_ptr(&self) -> RawPtr { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::cast` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/c/handle_buffer.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | RawPtr::::from(self.buffer.as_ptr()).cast() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/c/handle_buffer.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | unsafe fn to_ptr(&self) -> RawPtr { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | transmute(raw) [INFO] [stderr] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:41:5 [INFO] [stderr] | [INFO] [stderr] 41 | pub const unsafe fn from_raw(raw: *mut T) -> RawPtr { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::alloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:50:18 [INFO] [stderr] | [INFO] [stderr] 50 | ptr: alloc_zeroed(Layout::new::()) as *mut T, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 47 | pub unsafe fn alloc() -> RawPtr { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::alloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:59:18 [INFO] [stderr] | [INFO] [stderr] 59 | ptr: alloc_zeroed(Layout::array::(amount).unwrap()) as *mut T, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | pub unsafe fn calloc(amount: usize) -> RawPtr { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::alloc::alloc` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:67:18 [INFO] [stderr] | [INFO] [stderr] 67 | ptr: alloc(Layout::array::(size).unwrap()) as *mut T, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:65:5 [INFO] [stderr] | [INFO] [stderr] 65 | pub unsafe fn malloc(size: usize) -> RawPtr { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:74:9 [INFO] [stderr] | [INFO] [stderr] 74 | dealloc(self.ptr as *mut u8, Layout::new::()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:73:5 [INFO] [stderr] | [INFO] [stderr] 73 | pub unsafe fn free(self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:79:10 [INFO] [stderr] | [INFO] [stderr] 79 | &*self.ptr.offset(index) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | pub const unsafe fn index<'a>(self, index: isize) -> &'a T { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::offset` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:79:11 [INFO] [stderr] | [INFO] [stderr] 79 | &*self.ptr.offset(index) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:84:14 [INFO] [stderr] | [INFO] [stderr] 84 | &mut *self.ptr.offset(index) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:83:5 [INFO] [stderr] | [INFO] [stderr] 83 | pub const unsafe fn index_mut<'a>(self, index: isize) -> &'a mut T { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::offset` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:84:15 [INFO] [stderr] | [INFO] [stderr] 84 | &mut *self.ptr.offset(index) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:89:9 [INFO] [stderr] | [INFO] [stderr] 89 | copy_nonoverlapping(self.ptr, other.ptr, size_of::()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 88 | pub const unsafe fn copy_to(self, other: &mut Self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:96:9 [INFO] [stderr] | [INFO] [stderr] 96 | copy_nonoverlapping(self.ptr, other.to_ptr().cast().ptr, size) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:93:5 [INFO] [stderr] | [INFO] [stderr] 93 | / pub unsafe fn mem_copy_to(self, other: D, size: usize) [INFO] [stderr] 94 | | where ::Pointee: 'static [INFO] [stderr] | |_____________________________________________^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::cast` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:96:39 [INFO] [stderr] | [INFO] [stderr] 96 | copy_nonoverlapping(self.ptr, other.to_ptr().cast().ptr, size) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `unsafe_std::ptrs::into_raw_ptr::IntoRawPtr::to_ptr` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:96:39 [INFO] [stderr] | [INFO] [stderr] 96 | copy_nonoverlapping(self.ptr, other.to_ptr().cast().ptr, size) [INFO] [stderr] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:102:9 [INFO] [stderr] | [INFO] [stderr] 102 | *self.ptr = value; [INFO] [stderr] | ^^^^^^^^^ dereference of raw pointer [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:100:5 [INFO] [stderr] | [INFO] [stderr] 100 | pub unsafe fn assign(mut self, value: T) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:100:26 [INFO] [stderr] | [INFO] [stderr] 100 | pub unsafe fn assign(mut self, value: T) { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::assign` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 108 | self.assign(transmute_copy(&value)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:106:5 [INFO] [stderr] | [INFO] [stderr] 106 | pub unsafe fn assign_cast(mut self, value: D) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::mem::transmute_copy` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:108:21 [INFO] [stderr] | [INFO] [stderr] 108 | self.assign(transmute_copy(&value)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:106:43 [INFO] [stderr] | [INFO] [stderr] 106 | pub unsafe fn assign_cast(mut self, value: D) { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:117:13 [INFO] [stderr] | [INFO] [stderr] 117 | *self.ptr = value; [INFO] [stderr] | ^^^^^^^^^ dereference of raw pointer [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:112:5 [INFO] [stderr] | [INFO] [stderr] 112 | pub unsafe fn assign_check(mut self, value: T) -> ptr_utils::PtrState { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:112:32 [INFO] [stderr] | [INFO] [stderr] 112 | pub unsafe fn assign_check(mut self, value: T) -> ptr_utils::PtrState { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::as_ref` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:134:9 [INFO] [stderr] | [INFO] [stderr] 134 | self.ptr.as_ref() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:133:5 [INFO] [stderr] | [INFO] [stderr] 133 | pub const unsafe fn as_ref<'a>(self) -> Option<&'a T> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::as_mut` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:139:9 [INFO] [stderr] | [INFO] [stderr] 139 | self.ptr.as_mut() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:138:5 [INFO] [stderr] | [INFO] [stderr] 138 | pub const unsafe fn as_mut<'a>(mut self) -> Option<&'a mut T> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:138:36 [INFO] [stderr] | [INFO] [stderr] 138 | pub const unsafe fn as_mut<'a>(mut self) -> Option<&'a mut T> { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:169:9 [INFO] [stderr] | [INFO] [stderr] 169 | transmute(self) [INFO] [stderr] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:168:5 [INFO] [stderr] | [INFO] [stderr] 168 | pub const unsafe fn cast(self) -> RawPtr { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:174:9 [INFO] [stderr] | [INFO] [stderr] 174 | transmute(self.ptr as *const U) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:173:5 [INFO] [stderr] | [INFO] [stderr] 173 | pub const unsafe fn cast_ref<'a, U>(self) -> &'a U { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:179:9 [INFO] [stderr] | [INFO] [stderr] 179 | transmute(self.ptr as *mut U) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:178:5 [INFO] [stderr] | [INFO] [stderr] 178 | pub const unsafe fn cast_mut<'a, U>(mut self) -> &'a mut U { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:178:41 [INFO] [stderr] | [INFO] [stderr] 178 | pub const unsafe fn cast_mut<'a, U>(mut self) -> &'a mut U { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:184:9 [INFO] [stderr] | [INFO] [stderr] 184 | transmute(self.ptr) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:183:5 [INFO] [stderr] | [INFO] [stderr] 183 | pub const unsafe fn cast_raw(self) -> *mut U { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:189:9 [INFO] [stderr] | [INFO] [stderr] 189 | transmute(self.ptr) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:188:5 [INFO] [stderr] | [INFO] [stderr] 188 | pub const unsafe fn cast_const_raw(mut self) -> *const U { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:188:43 [INFO] [stderr] | [INFO] [stderr] 188 | pub const unsafe fn cast_const_raw(mut self) -> *const U { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `unsafe_std::ptrs::raw_ptr::RawPtr::::from_raw` is unsafe and requires unsafe block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:194:9 [INFO] [stderr] | [INFO] [stderr] 194 | RawPtr::::from_raw(self.ptr) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:193:5 [INFO] [stderr] | [INFO] [stderr] 193 | pub const unsafe fn to_owned(&self) -> RawPtr { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated constant `NULL` is never used [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:22:11 [INFO] [stderr] | [INFO] [stderr] 20 | impl RawPtr { [INFO] [stderr] | ---------------------------------- associated constant in this implementation [INFO] [stderr] 21 | [INFO] [stderr] 22 | const NULL: RawPtr = RawPtr::null(); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0133`. [INFO] [stderr] warning: `lv-std` (lib) generated 40 warnings (run `cargo fix --lib -p lv-std` to apply 33 suggestions) [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:258:13 [INFO] [stderr] | [INFO] [stderr] 258 | unsafe { assert_eq!(*p_x, 32); } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `wide_null` [INFO] [stderr] --> src/unsafe_std/ptrs/raw_ptr.rs:261:17 [INFO] [stderr] | [INFO] [stderr] 261 | let wide_null: *mut dyn Debug = thin_null as *mut dyn Debug; [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wide_null` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `lv-std` (lib test) generated 41 warnings (39 duplicates) (run `cargo fix --lib -p lv-std --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/lv_std-04310404404a5d3c) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test unsafe_std::ptrs::raw_ptr::tests::ptr::new_and_null ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- unsafe_std::ptrs::raw_ptr::tests::ptr::new_and_null stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'unsafe_std::ptrs::raw_ptr::tests::ptr::new_and_null' (25) panicked at src/unsafe_std/ptrs/raw_ptr.rs:203:9: [INFO] [stdout] void is not allowed in this context [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5cbc7c2ceb12 - std::backtrace_rs::backtrace::libunwind::trace::h9ea1e07ac77a25d7 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5cbc7c2ceb12 - std::backtrace_rs::backtrace::trace_unsynchronized::h72b75eb83b53d15a [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5cbc7c2ceb12 - std::sys::backtrace::_print_fmt::h255777b7ec902439 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5cbc7c2ceb12 - ::fmt::h8a1ac49fcd7ee8ce [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5cbc7c2de95f - core::fmt::rt::Argument::fmt::h635cbf3c6754cc90 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5cbc7c2de95f - core::fmt::write::hbdcc0ec4f1bab1db [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/fmt/mod.rs:1469:25 [INFO] [stdout] 6: 0x5cbc7c29c4b3 - std::io::default_write_fmt::h2580ece0d4b58e51 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x5cbc7c29c4b3 - std::io::Write::write_fmt::hac9e42858f273b87 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x5cbc7c2a8382 - std::sys::backtrace::BacktraceLock::print::h052febbd86f7bf07 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x5cbc7c2ace5f - std::panicking::default_hook::{{closure}}::h66aeee20dd470abb [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x5cbc7c2accf1 - std::panicking::default_hook::h9d66b9642014ce48 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x5cbc7c26febe - as core::ops::function::Fn>::call::h8c698701e444e564 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/boxed.rs:2099:9 [INFO] [stdout] 12: 0x5cbc7c26febe - test::test_main_with_exit_callback::{{closure}}::ha1c98e7b69c4defb [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x5cbc7c2ad46f - as core::ops::function::Fn>::call::hc4f222a8a57c637a [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/boxed.rs:2099:9 [INFO] [stdout] 14: 0x5cbc7c2ad46f - std::panicking::panic_with_hook::h6d5921a1a1fa5a8e [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x5cbc7c2ad296 - std::panicking::panic_handler::{{closure}}::hafeef6f707d43542 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:700:13 [INFO] [stdout] 16: 0x5cbc7c2a84b9 - std::sys::backtrace::__rust_end_short_backtrace::h08cbc3319a3d0120 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x5cbc7c290dad - __rustc[ce5c411ff86ab1b2]::rust_begin_unwind [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x5cbc7c2e60d0 - core::panicking::panic_fmt::h774fb860369a0f7b [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x5cbc7c24f2cf - as core::ops::deref::Deref>::deref::h32d929fde21cdb86 [INFO] [stdout] at /opt/rustwide/workdir/src/unsafe_std/ptrs/ptr_utils.rs:5:21 [INFO] [stdout] 20: 0x5cbc7c24f2cf - lv_std::unsafe_std::ptrs::raw_ptr::tests::ptr::new_and_null::h13c442211355c721 [INFO] [stdout] at /opt/rustwide/workdir/src/unsafe_std/ptrs/raw_ptr.rs:258:33 [INFO] [stdout] 21: 0x5cbc7c24f3e7 - lv_std::unsafe_std::ptrs::raw_ptr::tests::ptr::new_and_null::{{closure}}::h001a8919e63ece13 [INFO] [stdout] at /opt/rustwide/workdir/src/unsafe_std/ptrs/raw_ptr.rs:254:26 [INFO] [stdout] 22: 0x5cbc7c24e5b6 - core::ops::function::FnOnce::call_once::he8358f97eb19eb3b [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 23: 0x5cbc7c26fd0b - core::ops::function::FnOnce::call_once::h4f6eabe90cccb47d [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x5cbc7c26fd0b - test::__rust_begin_short_backtrace::h94208530f2b4c8c7 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:663:18 [INFO] [stdout] 25: 0x5cbc7c283d1d - test::run_test_in_process::{{closure}}::hbdc6a45a78c46404 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:686:74 [INFO] [stdout] 26: 0x5cbc7c283d1d - as core::ops::function::FnOnce<()>>::call_once::h7f9d8efc7eedd165 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 27: 0x5cbc7c283d1d - std::panicking::catch_unwind::do_call::he5edbaf126c13b99 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 28: 0x5cbc7c283d1d - std::panicking::catch_unwind::h3d6a8652eceeabce [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 29: 0x5cbc7c283d1d - std::panic::catch_unwind::hbef0c501dd7bb498 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panic.rs:359:14 [INFO] [stdout] 30: 0x5cbc7c283d1d - test::run_test_in_process::h400008a46a5006a0 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:686:27 [INFO] [stdout] 31: 0x5cbc7c283d1d - test::run_test::{{closure}}::h9a131655b31d9427 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:607:43 [INFO] [stdout] 32: 0x5cbc7c25d264 - test::run_test::{{closure}}::he4a7177c216308c0 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/test/src/lib.rs:637:41 [INFO] [stdout] 33: 0x5cbc7c25d264 - std::sys::backtrace::__rust_begin_short_backtrace::hd3980e9c55d6c539 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 34: 0x5cbc7c260b9a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h18552df67c7aa9b8 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/thread/mod.rs:562:17 [INFO] [stdout] 35: 0x5cbc7c260b9a - as core::ops::function::FnOnce<()>>::call_once::h3d7b285234641a08 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 36: 0x5cbc7c260b9a - std::panicking::catch_unwind::do_call::h5a2b5cf36528a5b2 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 37: 0x5cbc7c260b9a - std::panicking::catch_unwind::h7e8b531bbda77d20 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 38: 0x5cbc7c260b9a - std::panic::catch_unwind::hf9bbb2040b4f1e6c [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x5cbc7c260b9a - std::thread::Builder::spawn_unchecked_::{{closure}}::h600f92cf68549574 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/thread/mod.rs:560:30 [INFO] [stdout] 40: 0x5cbc7c260b9a - core::ops::function::FnOnce::call_once{{vtable.shim}}::hb6607307df8a1847 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 41: 0x5cbc7c2a38bf - as core::ops::function::FnOnce>::call_once::h6891ad53a5ed6f52 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/alloc/src/boxed.rs:2085:9 [INFO] [stdout] 42: 0x5cbc7c2a38bf - std::sys::thread::unix::Thread::new::thread_start::h7f3e77fa86df70af [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/thread/unix.rs:124:17 [INFO] [stdout] 43: 0x799b622ccaa4 - [INFO] [stdout] 44: 0x799b62359a64 - clone [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] unsafe_std::ptrs::raw_ptr::tests::ptr::new_and_null [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "179fcdd6b34eeb0cb2bda62bc933697292b0624d58b97cfdba5d60042de9ff82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "179fcdd6b34eeb0cb2bda62bc933697292b0624d58b97cfdba5d60042de9ff82", kill_on_drop: false }` [INFO] [stdout] 179fcdd6b34eeb0cb2bda62bc933697292b0624d58b97cfdba5d60042de9ff82