File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ impl<T> [T] {
63
63
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
64
64
#[ inline]
65
65
// SAFETY: const sound because we transmute out the length field as a usize (which it must be)
66
+ #[ allow( unused_attributes) ]
66
67
#[ allow_internal_unstable( const_fn_union) ]
67
68
pub const fn len ( & self ) -> usize {
68
69
unsafe {
Original file line number Diff line number Diff line change @@ -2167,6 +2167,7 @@ impl str {
2167
2167
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2168
2168
#[ inline( always) ]
2169
2169
// SAFETY: const sound because we transmute two types with the same layout
2170
+ #[ allow( unused_attributes) ]
2170
2171
#[ allow_internal_unstable( const_fn_union) ]
2171
2172
pub const fn as_bytes ( & self ) -> & [ u8 ] {
2172
2173
#[ repr( C ) ]
You can’t perform that action at this time.
0 commit comments