From 750912537d09e62dc0465e493f3bacc63ef63a4f Mon Sep 17 00:00:00 2001 From: rodrimati1992 Date: Wed, 5 Aug 2020 14:01:44 -0300 Subject: [PATCH] Added issue number, removed trailing whitespace --- library/core/src/str/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index d8698d6c41e..1aa242eedec 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -22,7 +22,7 @@ use crate::slice::{self, SliceIndex, Split as SliceSplit}; pub mod pattern; -#[unstable(feature = "str_internals", issue = "none")] +#[unstable(feature = "str_internals", issue = "75196")] #[allow(missing_docs)] pub mod lossy; @@ -2361,7 +2361,7 @@ 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 } }