Deny deny-unsafe_op_in_unsafe_fn on the crate level
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user