1
Fork 0

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.
This commit is contained in:
Yuki Okushi 2020-11-07 01:01:59 +09:00 committed by GitHub
commit 4136ed26a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;