mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 15:50:05 +03:00
Rollup merge of #128539 - biabbas:deny_unsafe, r=workingjubilee
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```
This commit is contained in:
@@ -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,3 +1,4 @@
|
||||
#![forbid(unsafe_op_in_unsafe_fn)]
|
||||
use libc::{self, c_char, c_int, RTP_ID};
|
||||
|
||||
use crate::io::{self, ErrorKind};
|
||||
|
||||
Reference in New Issue
Block a user