Skip to content

Commit 176b379

Browse files
committed
addressed comments 2
1 parent 53bc375 commit 176b379

File tree

19 files changed

+13
-20
lines changed

19 files changed

+13
-20
lines changed

library/std/src/os/wasi/ffi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! WASI-specific extensions to primitives in the [`std::ffi`] module
22
//!
33
//! [`std::ffi`]: crate::ffi
4-
#![deny(unsafe_op_in_unsafe_fn)]
54
#![stable(feature = "rust1", since = "1.0.0")]
65

76
#[path = "../unix/ffi/os_str.rs"]

library/std/src/os/wasi/fs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//!
33
//! [`std::fs`]: crate::fs
44
5-
#![deny(unsafe_op_in_unsafe_fn)]
65
#![unstable(feature = "wasi_ext", issue = "71213")]
76

87
// Used for `File::read` on intra-doc links

library/std/src/os/wasi/io/fd.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//! Owned and borrowed file descriptors.
2-
#![deny(unsafe_op_in_unsafe_fn)]
32
#![unstable(feature = "wasi_ext", issue = "71213")]
43

54
// Tests for this module

library/std/src/os/wasi/io/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//! WASI-specific extensions to general I/O primitives.
2-
#![deny(unsafe_op_in_unsafe_fn)]
32
#![stable(feature = "io_safety_wasi", since = "1.65.0")]
43

54
#[stable(feature = "io_safety_wasi", since = "1.65.0")]

library/std/src/os/wasi/io/raw.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//! WASI-specific extensions to general I/O primitives.
2-
#![deny(unsafe_op_in_unsafe_fn)]
32
#![unstable(feature = "wasi_ext", issue = "71213")]
43

54
// NOTE: despite the fact that this module is unstable,

library/std/src/os/wasi/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![deny(unsafe_op_in_unsafe_fn)]
21
//! Platform-specific extensions to `std` for the WebAssembly System Interface (WASI).
32
//!
43
//! Provides access to platform-level information on WASI, and exposes
@@ -31,7 +30,7 @@
3130
3231
#![cfg_attr(not(target_env = "p2"), stable(feature = "rust1", since = "1.0.0"))]
3332
#![cfg_attr(target_env = "p2", unstable(feature = "wasip2", issue = "none"))]
34-
#![deny(unsafe_op_in_unsafe_fn)]
33+
#![forbid(unsafe_op_in_unsafe_fn)]
3534
#![doc(cfg(target_os = "wasi"))]
3635

3736
pub mod ffi;

library/std/src/os/wasi/net/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//! WASI-specific networking functionality
2-
#![deny(unsafe_op_in_unsafe_fn)]
32
#![unstable(feature = "wasi_ext", issue = "71213")]
43

54
use crate::sys_common::AsInner;

library/std/src/os/wasip2/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Platform-specific extensions to `std` for Preview 2 of the WebAssembly System Interface (WASI).
22
//!
33
//! This module is currently empty, but will be filled over time as wasi-libc support for WASI Preview 2 is stabilized.
4-
#![deny(unsafe_op_in_unsafe_fn)]
4+
#![forbid(unsafe_op_in_unsafe_fn)]
55
#![stable(feature = "raw_ext", since = "1.1.0")]

library/std/src/sys/pal/wasi/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(unsafe_op_in_unsafe_fn)]
1+
#![forbid(unsafe_op_in_unsafe_fn)]
22

33
use crate::ffi::{CStr, OsStr, OsString};
44
use crate::os::wasi::ffi::OsStrExt;

library/std/src/sys/pal/wasi/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(unsafe_op_in_unsafe_fn)]
1+
#![forbid(unsafe_op_in_unsafe_fn)]
22
pub mod os {
33
pub const FAMILY: &str = "";
44
pub const OS: &str = "";

0 commit comments

Comments
 (0)