Skip to content

Commit

Permalink
Rollup merge of rust-lang#74979 - maekawatoshiki:fix, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
`#![deny(unsafe_op_in_unsafe_fn)]` in sys/hermit

Partial fix of rust-lang#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.
  • Loading branch information
JohnTitor authored Nov 6, 2020
2 parents 8532e74 + 14158f5 commit 69fe16a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/std/src/sys/hermit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 69fe16a

Please sign in to comment.