Skip to content

Commit

Permalink
Remove #![allow(unsafe_op_in_unsafe_fn)] except for mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
maekawatoshiki committed Oct 8, 2020
1 parent d94258e commit 14158f5
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 15 deletions.
2 changes: 0 additions & 2 deletions library/std/src/sys/hermit/alloc.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(unsafe_op_in_unsafe_fn)]

use crate::alloc::{GlobalAlloc, Layout, System};
use crate::ptr;
use crate::sys::hermit::abi;
Expand Down
2 changes: 0 additions & 2 deletions library/std/src/sys/hermit/args.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(unsafe_op_in_unsafe_fn)]

use crate::ffi::OsString;
use crate::marker::PhantomData;
use crate::vec;
Expand Down
2 changes: 0 additions & 2 deletions library/std/src/sys/hermit/condvar.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(unsafe_op_in_unsafe_fn)]

use crate::ffi::c_void;
use crate::ptr;
use crate::sync::atomic::{AtomicUsize, Ordering::SeqCst};
Expand Down
1 change: 0 additions & 1 deletion library/std/src/sys/hermit/fd.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![unstable(reason = "not public", issue = "none", feature = "fd")]
#![allow(unsafe_op_in_unsafe_fn)]

use crate::io::{self, ErrorKind, Read};
use crate::mem;
Expand Down
2 changes: 0 additions & 2 deletions library/std/src/sys/hermit/mutex.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(unsafe_op_in_unsafe_fn)]

use crate::ffi::c_void;
use crate::ptr;
use crate::sys::hermit::abi;
Expand Down
2 changes: 0 additions & 2 deletions library/std/src/sys/hermit/os.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(unsafe_op_in_unsafe_fn)]

use crate::collections::HashMap;
use crate::error::Error as StdError;
use crate::ffi::{CStr, OsStr, OsString};
Expand Down
2 changes: 0 additions & 2 deletions library/std/src/sys/hermit/rwlock.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(unsafe_op_in_unsafe_fn)]

use crate::cell::UnsafeCell;
use crate::sys::condvar::Condvar;
use crate::sys::mutex::Mutex;
Expand Down
1 change: 0 additions & 1 deletion library/std/src/sys/hermit/thread.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![allow(dead_code)]
#![allow(unsafe_op_in_unsafe_fn)]

use crate::ffi::CStr;
use crate::io;
Expand Down
1 change: 0 additions & 1 deletion library/std/src/sys/hermit/thread_local_dtor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![cfg(target_thread_local)]
#![unstable(feature = "thread_local_internals", issue = "none")]
#![allow(unsafe_op_in_unsafe_fn)]

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

0 comments on commit 14158f5

Please sign in to comment.