mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Rustup to rustc 1.47.0-nightly (663d2f5cd
2020-08-22)
This commit is contained in:
parent
ec37225873
commit
18348b1aec
@ -98,7 +98,7 @@ index 1a6be3a..42dbd59 100644
|
||||
+*/
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore)] // Miri does not compute a maximal `mid` for `align_offset`
|
||||
fn align_offset_zst() {
|
||||
diff --git a/library/core/tests/slice.rs b/library/core/tests/slice.rs
|
||||
index 6609bc3..241b497 100644
|
||||
--- a/library/core/tests/slice.rs
|
||||
|
@ -30,6 +30,19 @@ index 4bc44e9..8e3c7a4 100644
|
||||
|
||||
#[test]
|
||||
fn empty_array_is_always_default() {
|
||||
@@ -304,6 +304,7 @@ fn array_map() {
|
||||
assert_eq!(b, [1, 2, 3]);
|
||||
}
|
||||
|
||||
+/*
|
||||
// See note on above test for why `should_panic` is used.
|
||||
#[test]
|
||||
#[should_panic(expected = "test succeeded")]
|
||||
@@ -332,3 +333,4 @@ fn array_map_drop_safety() {
|
||||
assert_eq!(DROPPED.load(Ordering::SeqCst), num_to_create);
|
||||
panic!("test succeeded")
|
||||
}
|
||||
+*/
|
||||
diff --git a/library/core/tests/num/mod.rs b/library/core/tests/num/mod.rs
|
||||
index a17c094..5bb11d2 100644
|
||||
--- a/library/core/tests/num/mod.rs
|
||||
|
@ -1 +1 @@
|
||||
nightly-2020-08-09
|
||||
nightly-2020-08-23
|
||||
|
@ -760,6 +760,7 @@ fn trans_stmt<'tcx>(
|
||||
_ => fx.tcx.sess.span_fatal(stmt.source_info.span, "Inline assembly is not supported"),
|
||||
}
|
||||
}
|
||||
StatementKind::Coverage { .. } => fx.tcx.sess.fatal("-Zcoverage is unimplemented"),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -364,7 +364,7 @@ fn define_all_allocs(tcx: TyCtxt<'_>, module: &mut Module<impl Backend>, cx: &mu
|
||||
data_ctx.set_segment_section("", &*section_name);
|
||||
}
|
||||
|
||||
let bytes = alloc.inspect_with_undef_and_ptr_outside_interpreter(0..alloc.len()).to_vec();
|
||||
let bytes = alloc.inspect_with_uninit_and_ptr_outside_interpreter(0..alloc.len()).to_vec();
|
||||
data_ctx.define(bytes.into_boxed_slice());
|
||||
|
||||
for &(offset, (_tag, reloc)) in alloc.relocations().iter() {
|
||||
@ -372,7 +372,7 @@ fn define_all_allocs(tcx: TyCtxt<'_>, module: &mut Module<impl Backend>, cx: &mu
|
||||
let endianness = tcx.data_layout.endian;
|
||||
let offset = offset.bytes() as usize;
|
||||
let ptr_size = tcx.data_layout.pointer_size;
|
||||
let bytes = &alloc.inspect_with_undef_and_ptr_outside_interpreter(offset..offset + ptr_size.bytes() as usize);
|
||||
let bytes = &alloc.inspect_with_uninit_and_ptr_outside_interpreter(offset..offset + ptr_size.bytes() as usize);
|
||||
read_target_uint(endianness, bytes).unwrap()
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user