diff options
| -rw-r--r-- | library/core/src/str/mod.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index fef1ebef4c1..d2f5b408fb9 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -2357,7 +2357,6 @@ impl str { #[allow(unused_attributes)] #[allow_internal_unstable(const_fn_union)] pub const fn as_bytes(&self) -> &[u8] { - // SAFETY: const sound because we transmute two types with the same layout unsafe { StrOrSlice { str: self }.slice } } |
