diff options
| author | Ralf Jung <post@ralfj.de> | 2020-09-16 08:25:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-16 08:25:02 +0200 |
| commit | 9d0a265b6cfb0d6fbf3dbbf612cee1835b40bc35 (patch) | |
| tree | 4a1d9dafc553ea2d3918dfe0e151be3197cd3f83 /library/alloc/tests | |
| parent | 0bcc96dd3d54d459f3ae9a178bac3e7e944a9102 (diff) | |
| parent | 7d67546a6ade5c1ade4b8e66266411f7aa4fae69 (diff) | |
| download | rust-9d0a265b6cfb0d6fbf3dbbf612cee1835b40bc35.tar.gz rust-9d0a265b6cfb0d6fbf3dbbf612cee1835b40bc35.zip | |
Rollup merge of #76662 - RalfJung:lib-test-miri, r=Mark-Simulacrum
Fix liballoc test suite for Miri Mostly, fix the regression introduced by https://github.com/rust-lang/rust/pull/75207 that caused slices (i.e., references) to be created to invalid memory or memory that has aliasing pointers that we want to keep valid. @dylni this changes the type of `check_range` to only require the length, not the full reference to the slice, which indeed is all the information this function requires. Also reduce the size of a test introduced in https://github.com/rust-lang/rust/pull/70793 to make it not take 3 minutes in Miri. This makes https://github.com/RalfJung/miri-test-libstd work again.
Diffstat (limited to 'library/alloc/tests')
| -rw-r--r-- | library/alloc/tests/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/tests/vec.rs b/library/alloc/tests/vec.rs index 563dd7ab645..368ca4c5432 100644 --- a/library/alloc/tests/vec.rs +++ b/library/alloc/tests/vec.rs @@ -919,7 +919,7 @@ fn test_from_iter_partially_drained_in_place_specialization() { #[test] fn test_from_iter_specialization_with_iterator_adapters() { fn assert_in_place_trait<T: InPlaceIterable>(_: &T) {}; - let src: Vec<usize> = vec![0usize; 65535]; + let src: Vec<usize> = vec![0usize; 256]; let srcptr = src.as_ptr(); let iter = src .into_iter() |
