diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-11-07 01:01:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-07 01:01:59 +0900 |
| commit | 4136ed26a12419f8fe279534ecbbbf4fe743336d (patch) | |
| tree | f4d2ed7fb9384a638a151d878973cdd68e67747a | |
| parent | dc06a36074f04c6a77b5834f2950011d49607898 (diff) | |
| parent | 14158f551474d4114b9a2a583b0bf6c2502ad166 (diff) | |
| download | rust-4136ed26a12419f8fe279534ecbbbf4fe743336d.tar.gz rust-4136ed26a12419f8fe279534ecbbbf4fe743336d.zip | |
Rollup merge of #74979 - maekawatoshiki:fix, r=Mark-Simulacrum
`#![deny(unsafe_op_in_unsafe_fn)]` in sys/hermit Partial fix of #73904. This encloses ``unsafe`` operations in ``unsafe fn`` in ``sys/hermit``. Some unsafe blocks are not well documented because some system-based functions lack documents.
| -rw-r--r-- | library/std/src/sys/hermit/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/sys/hermit/mod.rs b/library/std/src/sys/hermit/mod.rs index af05310a8d3..f185635b7a0 100644 --- a/library/std/src/sys/hermit/mod.rs +++ b/library/std/src/sys/hermit/mod.rs @@ -13,6 +13,8 @@ //! compiling for wasm. That way it's a compile time error for something that's //! guaranteed to be a runtime error! +#![allow(unsafe_op_in_unsafe_fn)] + use crate::intrinsics; use crate::os::raw::c_char; |
