We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f520da + d0a6805 commit f320addCopy full SHA for f320add
src/libcore/slice/mod.rs
@@ -63,6 +63,7 @@ impl<T> [T] {
63
#[stable(feature = "rust1", since = "1.0.0")]
64
#[inline]
65
// SAFETY: const sound because we transmute out the length field as a usize (which it must be)
66
+ #[allow(unused_attributes)]
67
#[allow_internal_unstable(const_fn_union)]
68
pub const fn len(&self) -> usize {
69
unsafe {
src/libcore/str/mod.rs
@@ -2167,6 +2167,7 @@ impl str {
2167
2168
#[inline(always)]
2169
// SAFETY: const sound because we transmute two types with the same layout
2170
2171
2172
pub const fn as_bytes(&self) -> &[u8] {
2173
#[repr(C)]
0 commit comments