Bump stage0 compiler to 1.56
This commit is contained in:
@@ -231,7 +231,6 @@ impl str {
|
||||
#[rustc_const_stable(feature = "str_as_bytes", since = "1.39.0")]
|
||||
#[inline(always)]
|
||||
#[allow(unused_attributes)]
|
||||
#[cfg_attr(bootstrap, rustc_allow_const_fn_unstable(const_fn_transmute))]
|
||||
pub const fn as_bytes(&self) -> &[u8] {
|
||||
// SAFETY: const sound because we transmute two types with the same layout
|
||||
unsafe { mem::transmute(self) }
|
||||
|
||||
Reference in New Issue
Block a user