Skip to content

Commit

Permalink
Rollup merge of #128539 - biabbas:deny_unsafe, r=workingjubilee
Browse files Browse the repository at this point in the history
Forbid unused unsafe in vxworks-specific std modules

Tracking issue #127747
Adding deny(unsafe_op_in_unsafe_fn) in VxWorks specific files did not cause any error.
Most of VxWorks falls back on Unix libraries. So we'll have to wait for Unix changes.

r? ```@workingjubilee```
  • Loading branch information
matthiaskrgr authored Aug 6, 2024
2 parents 7e1360b + c2c46e3 commit f00a551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/os/vxworks/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
1 change: 1 addition & 0 deletions library/std/src/sys/pal/unix/process/process_vxworks.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![forbid(unsafe_op_in_unsafe_fn)]
use libc::{self, c_char, c_int, RTP_ID};

use crate::io::{self, ErrorKind};
Expand Down

0 comments on commit f00a551

Please sign in to comment.