From 7850a64f5bb3d4e5fdab10986e9058d048bbfaf9 Mon Sep 17 00:00:00 2001 From: B I Mohammed Abbas Date: Sat, 3 Aug 2024 08:00:39 +0530 Subject: [PATCH] Forbid unsafe_op_in_unsafe_fn in vxworks specific os and sys files --- std/src/os/vxworks/mod.rs | 1 + std/src/sys/pal/unix/process/process_vxworks.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/std/src/os/vxworks/mod.rs b/std/src/os/vxworks/mod.rs index 0a7ac641dd3e1..b09aa72f72693 100644 --- a/std/src/os/vxworks/mod.rs +++ b/std/src/os/vxworks/mod.rs @@ -1,6 +1,7 @@ //! VxWorks-specific definitions #![stable(feature = "raw_ext", since = "1.1.0")] +#![forbid(unsafe_op_in_unsafe_fn)] pub mod fs; pub mod raw; diff --git a/std/src/sys/pal/unix/process/process_vxworks.rs b/std/src/sys/pal/unix/process/process_vxworks.rs index 6a9d8fab1d412..0477b3d9a70da 100644 --- a/std/src/sys/pal/unix/process/process_vxworks.rs +++ b/std/src/sys/pal/unix/process/process_vxworks.rs @@ -1,3 +1,4 @@ +#![forbid(unsafe_op_in_unsafe_fn)] use libc::{self, c_char, c_int, RTP_ID}; use crate::io::{self, ErrorKind};