We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77d0d15 commit a915bbfCopy full SHA for a915bbf
library/core/src/str/mod.rs
@@ -2357,7 +2357,6 @@ impl str {
2357
#[allow(unused_attributes)]
2358
#[allow_internal_unstable(const_fn_union)]
2359
pub const fn as_bytes(&self) -> &[u8] {
2360
-
2361
// SAFETY: const sound because we transmute two types with the same layout
2362
unsafe { StrOrSlice { str: self }.slice }
2363
}
0 commit comments