diff options
| author | Elton Law <eltonlaw296@gmail.com> | 2020-06-30 23:09:06 -0400 |
|---|---|---|
| committer | Elton Law <eltonlaw296@gmail.com> | 2020-06-30 23:09:06 -0400 |
| commit | b438811029edfb3f39451c91d7e107e0338cf043 (patch) | |
| tree | 93470c50d1c71ed1ed754f48016682848fd93292 /src/libstd | |
| parent | 7616cd9ee9c2eb0cec7b76d608af7c8fad7704d4 (diff) | |
| download | rust-b438811029edfb3f39451c91d7e107e0338cf043.tar.gz rust-b438811029edfb3f39451c91d7e107e0338cf043.zip | |
enable unsafe_op_in_unsafe_fn lint
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fs.rs | 1 | ||||
| -rw-r--r-- | src/libstd/lib.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index bdcbd46c0d8..4d031cb7a52 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -8,6 +8,7 @@ //! extension traits of `std::os::$platform`. #![stable(feature = "rust1", since = "1.0.0")] +#![deny(unsafe_op_in_unsafe_fn)] use crate::ffi::OsString; use crate::fmt; diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index ef699ede2a1..1833d35bdde 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -319,6 +319,7 @@ #![feature(track_caller)] #![feature(try_reserve)] #![feature(unboxed_closures)] +#![feature(unsafe_block_in_unsafe_fn)] #![feature(untagged_unions)] #![feature(unwind_attributes)] #![feature(vec_into_raw_parts)] |
