Skip to content

Commit d94258e

Browse files
Add #![allow(unsafe_op_in_unsafe_fn)] in sys/hermit
1 parent 3a46cca commit d94258e

File tree

10 files changed

+17
-0
lines changed

10 files changed

+17
-0
lines changed

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

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

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

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

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

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

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

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

34
use crate::io::{self, ErrorKind, Read};
45
use crate::mem;

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

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
//! compiling for wasm. That way it's a compile time error for something that's
1414
//! guaranteed to be a runtime error!
1515
16+
#![allow(unsafe_op_in_unsafe_fn)]
17+
1618
use crate::intrinsics;
1719
use crate::os::raw::c_char;
1820

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

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

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

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

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

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

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

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

34
use crate::ffi::CStr;
45
use crate::io;

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

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

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

0 commit comments

Comments
 (0)