Deny deny-unsafe_op_in_unsafe_fn on the crate level

This commit is contained in:
sourceturner
2026-01-21 00:32:17 +01:00
parent 582e6eba69
commit defd2ce7c3
96 changed files with 1 additions and 265 deletions
-3
View File
@@ -2,9 +2,6 @@
//!
//! See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdlib.h.html>.
// TODO: set this for entire crate when possible
#![deny(unsafe_op_in_unsafe_fn)]
use core::{convert::TryFrom, intrinsics, iter, mem, ptr, slice};
use rand::{
Rng, SeedableRng,
-3
View File
@@ -1,9 +1,6 @@
//! Helper functions for random() and friends, see https://pubs.opengroup.org/onlinepubs/7908799/xsh/initstate.html
// Ported from musl's implementation (src/prng/random.c)
// TODO: set this for entire crate when possible
#![deny(unsafe_op_in_unsafe_fn)]
use crate::{
platform::types::c_uint,
sync::{Mutex, MutexGuard},
-3
View File
@@ -1,6 +1,3 @@
// TODO: set this for entire crate when possible
#![deny(unsafe_op_in_unsafe_fn)]
use crate::platform::types::{c_char, c_int, c_void, size_t};
pub unsafe fn introsort(