Rollup merge of #128432 - g0djan:godjan/wasi_prohibit_implicit_unsafe, r=tgross35
WASI: forbid `unsafe_op_in_unsafe_fn` for `std::{os, sys}` Part of https://github.com/rust-lang/rust/issues/127747 for WASI try-job: test-various
This commit is contained in:
commit
a8d5c6d151
14 changed files with 24 additions and 18 deletions
|
@ -2,7 +2,6 @@
|
|||
//!
|
||||
//! [`std::fs`]: crate::fs
|
||||
|
||||
#![deny(unsafe_op_in_unsafe_fn)]
|
||||
#![unstable(feature = "wasi_ext", issue = "71213")]
|
||||
|
||||
// Used for `File::read` on intra-doc links
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#![cfg_attr(not(target_env = "p2"), stable(feature = "rust1", since = "1.0.0"))]
|
||||
#![cfg_attr(target_env = "p2", unstable(feature = "wasip2", issue = "none"))]
|
||||
#![deny(unsafe_op_in_unsafe_fn)]
|
||||
#![forbid(unsafe_op_in_unsafe_fn)]
|
||||
#![doc(cfg(target_os = "wasi"))]
|
||||
|
||||
pub mod ffi;
|
||||
|
|
|
@ -2,4 +2,5 @@
|
|||
//!
|
||||
//! This module is currently empty, but will be filled over time as wasi-libc support for WASI Preview 2 is stabilized.
|
||||
|
||||
#![forbid(unsafe_op_in_unsafe_fn)]
|
||||
#![stable(feature = "raw_ext", since = "1.1.0")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue