Skip to content

Commit 7756dec

Browse files
author
B I Mohammed Abbas
committed
Deny unused unsafe in vxworks specific stdlib files
1 parent 425ae69 commit 7756dec

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

library/std/src/os/vxworks/fs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![stable(feature = "metadata_ext", since = "1.1.0")]
2+
#![deny(unsafe_op_in_unsafe_fn)]
23

34
use crate::fs::Metadata;
45
use crate::sys_common::AsInner;

library/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+
#![deny(unsafe_op_in_unsafe_fn)]
45

56
pub mod fs;
67
pub mod raw;

library/std/src/os/vxworks/raw.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! VxWorks-specific raw type definitions
22
#![stable(feature = "metadata_ext", since = "1.1.0")]
3+
#![deny(unsafe_op_in_unsafe_fn)]
34

45
use crate::os::raw::c_ulong;
56

library/std/src/sys/pal/unix/process/process_vxworks.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![deny(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)