diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2024-07-16 20:10:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-16 20:10:14 -0500 |
| commit | 1a1b44fcae5eddac579b4102d96a0ec24b21c569 (patch) | |
| tree | 5f80943c5782fafe9ea5b607086477f1a26678be /library/std/src/sys | |
| parent | dd80a728ccb4c9337a5166f21adac7c9a699bb13 (diff) | |
| parent | 586ef83f3f589e4d1eab7895982b9e7cee827fce (diff) | |
| download | rust-1a1b44fcae5eddac579b4102d96a0ec24b21c569.tar.gz rust-1a1b44fcae5eddac579b4102d96a0ec24b21c569.zip | |
Rollup merge of #127836 - workingjubilee:forbid-unsafe-ops-in-xous-uefi, r=tgross35
std: Forbid unwrapped unsafe ops in xous and uefi modules
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/pal/uefi/mod.rs | 1 | ||||
| -rw-r--r-- | library/std/src/sys/pal/xous/mod.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/uefi/mod.rs b/library/std/src/sys/pal/uefi/mod.rs index 408031a4616..4d50d9e8c3d 100644 --- a/library/std/src/sys/pal/uefi/mod.rs +++ b/library/std/src/sys/pal/uefi/mod.rs @@ -11,6 +11,7 @@ //! //! [`OsStr`]: crate::ffi::OsStr //! [`OsString`]: crate::ffi::OsString +#![forbid(unsafe_op_in_unsafe_fn)] pub mod alloc; pub mod args; diff --git a/library/std/src/sys/pal/xous/mod.rs b/library/std/src/sys/pal/xous/mod.rs index a28a52e305e..961d45c5e83 100644 --- a/library/std/src/sys/pal/xous/mod.rs +++ b/library/std/src/sys/pal/xous/mod.rs @@ -1,4 +1,4 @@ -#![deny(unsafe_op_in_unsafe_fn)] +#![forbid(unsafe_op_in_unsafe_fn)] pub mod alloc; #[path = "../unsupported/args.rs"] |
