Bump stage0 compiler to 1.56

This commit is contained in:
Mark Rousskov
2021-09-08 13:13:47 -04:00
parent 97032a6dfa
commit b4e7649d6d
29 changed files with 344 additions and 430 deletions

View File

@@ -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) }