diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2024-07-17 05:52:38 +0000 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2024-07-17 05:52:38 +0000 |
| commit | a33abbba9836944b467b7f65f090192d292d6080 (patch) | |
| tree | bf3c191f573e38505e7b59049d5268d0ee767e3c | |
| parent | 10b845cbc8c3ff699e66d10e7b5da00aef495ddd (diff) | |
| download | rust-a33abbba9836944b467b7f65f090192d292d6080.tar.gz rust-a33abbba9836944b467b7f65f090192d292d6080.zip | |
forbid(unsafe_op_in_unsafe_fn) in sys/os_str
| -rw-r--r-- | library/std/src/sys/os_str/mod.rs | 2 | ||||
| -rw-r--r-- | library/std/src/sys/os_str/wtf8.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/os_str/mod.rs b/library/std/src/sys/os_str/mod.rs index b509729475b..345e661586d 100644 --- a/library/std/src/sys/os_str/mod.rs +++ b/library/std/src/sys/os_str/mod.rs @@ -1,3 +1,5 @@ +#![forbid(unsafe_op_in_unsafe_fn)] + cfg_if::cfg_if! { if #[cfg(any( target_os = "windows", diff --git a/library/std/src/sys/os_str/wtf8.rs b/library/std/src/sys/os_str/wtf8.rs index cc00fcaf13d..806bf033dbc 100644 --- a/library/std/src/sys/os_str/wtf8.rs +++ b/library/std/src/sys/os_str/wtf8.rs @@ -1,7 +1,5 @@ //! The underlying OsString/OsStr implementation on Windows is a //! wrapper around the "WTF-8" encoding; see the `wtf8` module for more. -#![deny(unsafe_op_in_unsafe_fn)] - use crate::borrow::Cow; use crate::collections::TryReserveError; use crate::fmt; |
