diff options
| author | bors <bors@rust-lang.org> | 2019-07-25 06:14:48 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-07-25 06:14:48 +0000 | 
| commit | eedf6ce4ef54bb03818ab21d714f1b9f13a6b31c (patch) | |
| tree | 0f66ebdcec138c74fb4892fb62859494d531532a | |
| parent | 185b9acb66438894596f3c40d2ae4c6f7deeb8ab (diff) | |
| parent | f2900b0b411f655dba96d278cf21d2face3811f6 (diff) | |
| download | rust-eedf6ce4ef54bb03818ab21d714f1b9f13a6b31c.tar.gz rust-eedf6ce4ef54bb03818ab21d714f1b9f13a6b31c.zip | |
Auto merge of #62944 - RalfJung:miri, r=oli-obk
bump Miri Fixes https://github.com/rust-lang/rust/issues/62919. r? @oli-obk
| -rw-r--r-- | src/libcore/intrinsics.rs | 2 | ||||
| m--------- | src/tools/miri | 16 | 
2 files changed, 9 insertions, 9 deletions
| diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index aff36aba01f..56e45c3695f 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -1333,7 +1333,6 @@ pub(crate) fn is_aligned_and_not_null<T>(ptr: *const T) -> bool { /// Checks whether the regions of memory starting at `src` and `dst` of size /// `count * size_of::<T>()` overlap. -#[cfg(not(miri))] // Cannot compare with `>` across allocations in Miri fn overlaps<T>(src: *const T, dst: *const T, count: usize) -> bool { let src_usize = src as usize; let dst_usize = dst as usize; @@ -1438,7 +1437,6 @@ pub unsafe fn copy_nonoverlapping<T>(src: *const T, dst: *mut T, count: usize) { debug_assert!(is_aligned_and_not_null(src), "attempt to copy from unaligned or null pointer"); debug_assert!(is_aligned_and_not_null(dst), "attempt to copy to unaligned or null pointer"); - #[cfg(not(miri))] debug_assert!(!overlaps(src, dst, count), "attempt to copy to overlapping memory"); copy_nonoverlapping(src, dst, count) } diff --git a/src/tools/miri b/src/tools/miri -Subproject b269bb07078446c9c153e0f2acaf83bf8f19b93 +Subproject 7ef40979157b4117faa52bbe79ec144ebd45b0e | 
