Skip to content

Commit 432425d

Browse files
authored
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```
2 parents 1bd5338 + 7850a64 commit 432425d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: std/src/os/vxworks/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! VxWorks-specific definitions
22
33
#![stable(feature = "raw_ext", since = "1.1.0")]
4+
#![forbid(unsafe_op_in_unsafe_fn)]
45

56
pub mod fs;
67
pub mod raw;

Diff for: std/src/sys/pal/unix/process/process_vxworks.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![forbid(unsafe_op_in_unsafe_fn)]
12
use libc::{self, c_char, c_int, RTP_ID};
23

34
use crate::io::{self, ErrorKind};

0 commit comments

Comments
 (0)