[INFO] fetching crate lv-std 0.0.2... [INFO] testing lv-std-0.0.2 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate lv-std 0.0.2 into /workspace/builds/worker-6-tc1/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-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate lv-std 0.0.2 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded generic-array v1.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d6be3dbd8a936d6d1e8b3dc64fd6332d4259557419b42547ec82f9ec4c4d2b52 [INFO] running `Command { std: "docker" "start" "-a" "d6be3dbd8a936d6d1e8b3dc64fd6332d4259557419b42547ec82f9ec4c4d2b52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6be3dbd8a936d6d1e8b3dc64fd6332d4259557419b42547ec82f9ec4c4d2b52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6be3dbd8a936d6d1e8b3dc64fd6332d4259557419b42547ec82f9ec4c4d2b52", kill_on_drop: false }` [INFO] [stdout] d6be3dbd8a936d6d1e8b3dc64fd6332d4259557419b42547ec82f9ec4c4d2b52 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1b6e1b0bde8489ddea8bbb9661f69e8ef76e15a6f0edde98bfc17406d8b12be [INFO] running `Command { std: "docker" "start" "-a" "c1b6e1b0bde8489ddea8bbb9661f69e8ef76e15a6f0edde98bfc17406d8b12be", 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)]` 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)]` 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)]` 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)]` 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 2.26s [INFO] running `Command { std: "docker" "inspect" "c1b6e1b0bde8489ddea8bbb9661f69e8ef76e15a6f0edde98bfc17406d8b12be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1b6e1b0bde8489ddea8bbb9661f69e8ef76e15a6f0edde98bfc17406d8b12be", kill_on_drop: false }` [INFO] [stdout] c1b6e1b0bde8489ddea8bbb9661f69e8ef76e15a6f0edde98bfc17406d8b12be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c1cd7edba1edf1bd8c1fb562523c0d0600999de6e368cb4fce7b386216fb2a4 [INFO] running `Command { std: "docker" "start" "-a" "7c1cd7edba1edf1bd8c1fb562523c0d0600999de6e368cb4fce7b386216fb2a4", 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)]` 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)]` 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)]` 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] [stderr] Compiling lv-std v0.0.2 (/opt/rustwide/workdir) [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)]` 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)]` 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)]` 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)]` 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: 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)]` on by default [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)]` 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.34s [INFO] running `Command { std: "docker" "inspect" "7c1cd7edba1edf1bd8c1fb562523c0d0600999de6e368cb4fce7b386216fb2a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c1cd7edba1edf1bd8c1fb562523c0d0600999de6e368cb4fce7b386216fb2a4", kill_on_drop: false }` [INFO] [stdout] 7c1cd7edba1edf1bd8c1fb562523c0d0600999de6e368cb4fce7b386216fb2a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cf2a212e53fcc70f4388ce7f78735187618aa953eb49382ef154b56e4ce994e4 [INFO] running `Command { std: "docker" "start" "-a" "cf2a212e53fcc70f4388ce7f78735187618aa953eb49382ef154b56e4ce994e4", 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)]` 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)]` 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)]` 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)]` 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: 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)]` on by default [INFO] [stderr] [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)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `lv-std` (lib test) generated 41 warnings (39 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [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: 0x64a5134724a2 - std::backtrace_rs::backtrace::libunwind::trace::h0fb8082ca5562a61 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x64a5134724a2 - std::backtrace_rs::backtrace::trace_unsynchronized::hfaa258994374a3cd [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x64a5134724a2 - std::sys::backtrace::_print_fmt::h11496fe34963a885 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x64a5134724a2 - ::fmt::hff1a9408d012ee89 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x64a51349567f - core::fmt::rt::Argument::fmt::hf11195b61445f5d1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x64a51349567f - core::fmt::write::h2f1fc679f228cc52 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x64a51345f143 - std::io::default_write_fmt::h12bd533187bc883d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x64a51345f143 - std::io::Write::write_fmt::h926a1fdfdcb90065 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x64a5134722f2 - std::sys::backtrace::BacktraceLock::print::h28bfdbcac6d3828b [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x64a51345d9ac - std::panicking::default_hook::{{closure}}::h1f968e3a24b0e3b4 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x64a51345d829 - std::panicking::default_hook::h43da101644971931 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x64a513406cde - as core::ops::function::Fn>::call::h4b2012949041da5d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 12: 0x64a513406cde - test::test_main_with_exit_callback::{{closure}}::h53c9154cdc260357 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x64a51345dfb3 - as core::ops::function::Fn>::call::h911f2e3e7e84b764 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 14: 0x64a51345dfb3 - std::panicking::panic_with_hook::hb4e916c3e65eccec [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x64a513471e46 - std::panicking::panic_handler::{{closure}}::hbff715d0475cf1bd [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:700:13 [INFO] [stdout] 16: 0x64a513471dd9 - std::sys::backtrace::__rust_end_short_backtrace::hd6f43484e45a4955 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x64a51345e51d - __rustc[b29d3319de9a3146]::rust_begin_unwind [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x64a51349b990 - core::panicking::panic_fmt::h5f8d281875be5ff1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x64a513400b8f - as core::ops::deref::Deref>::deref::hd668dc1021d3ee28 [INFO] [stdout] at /opt/rustwide/workdir/src/unsafe_std/ptrs/ptr_utils.rs:5:21 [INFO] [stdout] 20: 0x64a513400b8f - lv_std::unsafe_std::ptrs::raw_ptr::tests::ptr::new_and_null::h29b40128e3e7218e [INFO] [stdout] at /opt/rustwide/workdir/src/unsafe_std/ptrs/raw_ptr.rs:258:33 [INFO] [stdout] 21: 0x64a513400ae7 - lv_std::unsafe_std::ptrs::raw_ptr::tests::ptr::new_and_null::{{closure}}::h96f8a64b540f4ce6 [INFO] [stdout] at /opt/rustwide/workdir/src/unsafe_std/ptrs/raw_ptr.rs:254:26 [INFO] [stdout] 22: 0x64a5133ff966 - core::ops::function::FnOnce::call_once::h3809cd5cf79a6a4c [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 23: 0x64a51340c21b - core::ops::function::FnOnce::call_once::haf4e03bb51ef1351 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x64a51340c21b - test::__rust_begin_short_backtrace::h50f5566ee84f2f21 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/test/src/lib.rs:663:18 [INFO] [stdout] 25: 0x64a51340f415 - test::run_test_in_process::{{closure}}::heb3733b71d876eca [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/test/src/lib.rs:686:74 [INFO] [stdout] 26: 0x64a51340f415 - as core::ops::function::FnOnce<()>>::call_once::he2fe41e1b161faa9 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 27: 0x64a51340f415 - std::panicking::catch_unwind::do_call::h00aa383d8fd97a09 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 28: 0x64a51340f415 - std::panicking::catch_unwind::he482e1914bc21641 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 29: 0x64a51340f415 - std::panic::catch_unwind::h86ac9705098f4f22 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 30: 0x64a51340f415 - test::run_test_in_process::h636a992821e3c6aa [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/test/src/lib.rs:686:27 [INFO] [stdout] 31: 0x64a51340f415 - test::run_test::{{closure}}::he454cc9a192df79f [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/test/src/lib.rs:607:43 [INFO] [stdout] 32: 0x64a513434dc4 - test::run_test::{{closure}}::haec47455908dff86 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/test/src/lib.rs:637:41 [INFO] [stdout] 33: 0x64a513434dc4 - std::sys::backtrace::__rust_begin_short_backtrace::h230785972524cdc1 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 34: 0x64a51341b9da - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::haa5a562db4cde838 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 35: 0x64a51341b9da - as core::ops::function::FnOnce<()>>::call_once::h89254f37a55d0a87 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 36: 0x64a51341b9da - std::panicking::catch_unwind::do_call::h499f5a462f019d9d [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:590:40 [INFO] [stdout] 37: 0x64a51341b9da - std::panicking::catch_unwind::h6736fbbb1a264383 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panicking.rs:553:19 [INFO] [stdout] 38: 0x64a51341b9da - std::panic::catch_unwind::h49ea7bdd1cbee572 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x64a51341b9da - std::thread::Builder::spawn_unchecked_::{{closure}}::h653dfa62acf32f5a [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 40: 0x64a51341b9da - core::ops::function::FnOnce::call_once{{vtable.shim}}::h82582a626a045a45 [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 41: 0x64a513448bef - as core::ops::function::FnOnce>::call_once::h4ab26c07513156cc [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:1971:9 [INFO] [stdout] 42: 0x64a513448bef - std::sys::pal::unix::thread::Thread::new::thread_start::h66ff1bba185a50cf [INFO] [stdout] at /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/std/src/sys/pal/unix/thread.rs:107:17 [INFO] [stdout] 43: 0x7ea937eabaa4 - [INFO] [stdout] 44: 0x7ea937f38a34 - 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.02s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "cf2a212e53fcc70f4388ce7f78735187618aa953eb49382ef154b56e4ce994e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf2a212e53fcc70f4388ce7f78735187618aa953eb49382ef154b56e4ce994e4", kill_on_drop: false }` [INFO] [stdout] cf2a212e53fcc70f4388ce7f78735187618aa953eb49382ef154b56e4ce994e4