Skip to content

Commit f431b51

Browse files
authored
Rollup merge of rust-lang#127836 - workingjubilee:forbid-unsafe-ops-in-xous-uefi, r=tgross35
std: Forbid unwrapped unsafe ops in xous and uefi modules
2 parents 0a024bd + a752e3b commit f431b51

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

std/src/os/uefi/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
#![unstable(feature = "uefi_std", issue = "100499")]
44
#![doc(cfg(target_os = "uefi"))]
5+
#![forbid(unsafe_op_in_unsafe_fn)]
56

67
pub mod env;
78
#[path = "../windows/ffi.rs"]

std/src/os/xous/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![stable(feature = "rust1", since = "1.0.0")]
22
#![doc(cfg(target_os = "xous"))]
3+
#![forbid(unsafe_op_in_unsafe_fn)]
34

45
pub mod ffi;
56

std/src/sys/pal/uefi/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//!
1212
//! [`OsStr`]: crate::ffi::OsStr
1313
//! [`OsString`]: crate::ffi::OsString
14+
#![forbid(unsafe_op_in_unsafe_fn)]
1415

1516
pub mod alloc;
1617
pub mod args;

std/src/sys/pal/xous/mod.rs

+1-1
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
pub mod alloc;
44
#[path = "../unsupported/args.rs"]

0 commit comments

Comments
 (0)