Skip to content

Commit 14158f5

Browse files
Remove #![allow(unsafe_op_in_unsafe_fn)] except for mod.rs
1 parent d94258e commit 14158f5

File tree

9 files changed

+0
-15
lines changed

9 files changed

+0
-15
lines changed

library/std/src/sys/hermit/alloc.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(unsafe_op_in_unsafe_fn)]
2-
31
use crate::alloc::{GlobalAlloc, Layout, System};
42
use crate::ptr;
53
use crate::sys::hermit::abi;

library/std/src/sys/hermit/args.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(unsafe_op_in_unsafe_fn)]
2-
31
use crate::ffi::OsString;
42
use crate::marker::PhantomData;
53
use crate::vec;

library/std/src/sys/hermit/condvar.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(unsafe_op_in_unsafe_fn)]
2-
31
use crate::ffi::c_void;
42
use crate::ptr;
53
use crate::sync::atomic::{AtomicUsize, Ordering::SeqCst};

library/std/src/sys/hermit/fd.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![unstable(reason = "not public", issue = "none", feature = "fd")]
2-
#![allow(unsafe_op_in_unsafe_fn)]
32

43
use crate::io::{self, ErrorKind, Read};
54
use crate::mem;

library/std/src/sys/hermit/mutex.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(unsafe_op_in_unsafe_fn)]
2-
31
use crate::ffi::c_void;
42
use crate::ptr;
53
use crate::sys::hermit::abi;

library/std/src/sys/hermit/os.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(unsafe_op_in_unsafe_fn)]
2-
31
use crate::collections::HashMap;
42
use crate::error::Error as StdError;
53
use crate::ffi::{CStr, OsStr, OsString};

library/std/src/sys/hermit/rwlock.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(unsafe_op_in_unsafe_fn)]
2-
31
use crate::cell::UnsafeCell;
42
use crate::sys::condvar::Condvar;
53
use crate::sys::mutex::Mutex;

library/std/src/sys/hermit/thread.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![allow(dead_code)]
2-
#![allow(unsafe_op_in_unsafe_fn)]
32

43
use crate::ffi::CStr;
54
use crate::io;

library/std/src/sys/hermit/thread_local_dtor.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![cfg(target_thread_local)]
22
#![unstable(feature = "thread_local_internals", issue = "none")]
3-
#![allow(unsafe_op_in_unsafe_fn)]
43

54
// Simplify dtor registration by using a list of destructors.
65
// The this solution works like the implementation of macOS and

0 commit comments

Comments
 (0)