1
Fork 0

Rustup to rustc 1.41.0-nightly (a605441e0 2019-12-15)

This commit is contained in:
bjorn3 2019-12-16 11:33:57 +01:00
parent 88277f983a
commit e1613a69d4
4 changed files with 31 additions and 30 deletions

View file

@ -16,9 +16,9 @@ index ad5a207..04712b8 100644
#[unstable(feature = "renamed_spin_loop", issue = "55002")]
pub fn spin_loop() {
+ /*
#[cfg(
all(
any(target_arch = "x86", target_arch = "x86_64"),
#[cfg(all(any(target_arch = "x86", target_arch = "x86_64"), target_feature = "sse2"))]
{
#[cfg(target_arch = "x86")]
@@ -71,4 +72,5 @@ pub fn spin_loop() {
unsafe { crate::arch::arm::__yield() };
}

View file

@ -98,7 +98,7 @@ index 1a6be3a..42dbd59 100644
+*/
#[test]
#[cfg(not(miri))] // Miri does not compute a maximal `mid` for `align_offset`
#[cfg_attr(miri, ignore)] // Miri does not compute a maximal `mid` for `align_offset`
diff --git a/src/libcore/tests/slice.rs b/src/libcore/tests/slice.rs
index 6609bc3..241b497 100644
--- a/src/libcore/tests/slice.rs

View file

@ -647,7 +647,7 @@ pub fn trans_place<'tcx>(
};
cplace = cplace.place_index(fx, index);
}
PlaceElem::Subslice { from, to } => {
PlaceElem::Subslice { from, to, from_end } => {
// These indices are generated by slice patterns.
// slice[from:-to] in Python terms.
@ -665,6 +665,7 @@ pub fn trans_place<'tcx>(
);
}
ty::Slice(elem_ty) => {
assert!(from_end, "slice subslices should be `from_end`");
let elem_layout = fx.layout_of(elem_ty);
let (ptr, len) = cplace.to_addr_maybe_unsized(fx);
let len = len.unwrap();

View file

@ -1,4 +1,4 @@
#![feature(rustc_private, decl_macro, type_alias_impl_trait, associated_type_bounds)]
#![feature(rustc_private, decl_macro, type_alias_impl_trait, associated_type_bounds, never_type)]
#![allow(intra_doc_link_resolution_failure)]
extern crate flate2;