forbid(unsafe_op_in_unsafe_fn) in sys/os_str · model-checking/verify-rust-std@b4d1392 (original) (raw)

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
1 +#![forbid(unsafe_op_in_unsafe_fn)]
2 +
1 3 cfg_if::cfg_if! {
2 4 if #[cfg(any(
3 5 target_os = "windows",
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
1 1 //! The underlying OsString/OsStr implementation on Windows is a
2 2 //! wrapper around the "WTF-8" encoding; see the `wtf8` module for more.
3 -#![deny(unsafe_op_in_unsafe_fn)]
4 -
5 3 use crate::borrow::Cow;
6 4 use crate::collections::TryReserveError;
7 5 use crate::fmt;