Rustup to rustc 1.34.0-nightly (00aae71f5 2019-02-25)

This commit is contained in:
bjorn3 2019-02-26 11:34:38 +01:00
parent 55623b2f54
commit c8b51653f3
2 changed files with 3 additions and 3 deletions

View File

@ -320,7 +320,7 @@ index 5b7d5f4..0cfb96c 100644
#[cfg(target_pointer_width = "16")] #[cfg(target_pointer_width = "16")]
#[lang = "usize"] #[lang = "usize"]
impl usize { impl usize {
@@ -4501,7 +4476,7 @@ macro_rules! from_str_radix_int_impl { @@ -4376,7 +4376,7 @@ macro_rules! from_str_radix_int_impl {
} }
)*} )*}
} }
@ -328,7 +328,7 @@ index 5b7d5f4..0cfb96c 100644
+from_str_radix_int_impl! { isize i8 i16 i32 i64 usize u8 u16 u32 u64 } +from_str_radix_int_impl! { isize i8 i16 i32 i64 usize u8 u16 u32 u64 }
/// The error type returned when a checked integral type conversion fails. /// The error type returned when a checked integral type conversion fails.
#[unstable(feature = "try_from", issue = "33417")] #[stable(feature = "try_from", since = "1.34.0")]
@@ -4617,30 +4592,25 @@ macro_rules! rev { @@ -4617,30 +4592,25 @@ macro_rules! rev {
try_from_upper_bounded!(u16, u8); try_from_upper_bounded!(u16, u8);
try_from_upper_bounded!(u32, u16, u8); try_from_upper_bounded!(u32, u16, u8);

View File

@ -224,7 +224,7 @@ fn define_all_allocs<'a, 'tcx: 'a, B: Backend + 'a>(
let const_ = tcx.const_eval(ParamEnv::reveal_all().and(cid)).unwrap(); let const_ = tcx.const_eval(ParamEnv::reveal_all().and(cid)).unwrap();
let alloc = match const_.val { let alloc = match const_.val {
ConstValue::ByRef(_alloc_id, alloc, n) if n.bytes() == 0 => alloc, ConstValue::ByRef(ptr, alloc) if ptr.offset.bytes() == 0 => alloc,
_ => bug!("static const eval returned {:#?}", const_), _ => bug!("static const eval returned {:#?}", const_),
}; };