Skip to content

Commit

Permalink
Unrolled build for rust-lang#128539
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#128539 - biabbas:deny_unsafe, r=workingjubilee

Forbid unused unsafe in vxworks-specific std modules

Tracking issue rust-lang#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
rust-timer authored Aug 7, 2024
2 parents 0ddead3 + c2c46e3 commit 8bb7e3f
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 8bb7e3f

Please sign in to comment.