Rollup merge of #128539 - biabbas:deny_unsafe, r=workingjubilee · patricklam/verify-rust-std@432425d (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 432425d

Rollup merge of rust-lang#128539 - biabbas:deny_unsafe, r=workingjubilee

Forbid unused unsafe in vxworks-specific std modules Tracking issue rust-lang#127747Adding 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```

File tree

2 files changed

lines changed

2 files changed

lines changed

Lines changed: 1 addition & 0 deletions

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
1 1 //! VxWorks-specific definitions
2 2
3 3 #![stable(feature = "raw_ext", since = "1.1.0")]
4 +#![forbid(unsafe_op_in_unsafe_fn)]
4 5
5 6 pub mod fs;
6 7 pub mod raw;

Lines changed: 1 addition & 0 deletions

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1 +#![forbid(unsafe_op_in_unsafe_fn)]
1 2 use libc::{self, c_char, c_int, RTP_ID};
2 3
3 4 use crate::io::{self, ErrorKind};