Skip to content

Commit af414dc

Browse files
committed
Deny unsafe_op_in_unsafe_fn for unsupported/common.rs through sys/wasm too.
1 parent b26aa5d commit af414dc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ pub mod thread_local_key;
5353
pub mod time;
5454

5555
#[path = "../unsupported/common.rs"]
56+
#[deny(unsafe_op_in_unsafe_fn)]
5657
#[allow(unused)]
5758
mod common;
5859
pub use common::*;

library/std/src/sys/wasm/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@ cfg_if::cfg_if! {
6666
}
6767

6868
#[path = "../unsupported/common.rs"]
69+
#[deny(unsafe_op_in_unsafe_fn)]
6970
mod common;
7071
pub use common::*;

0 commit comments

Comments
 (0)