diff options
| author | Tim Diekmann <tim.diekmann@3dvision.de> | 2020-01-23 01:49:29 +0100 |
|---|---|---|
| committer | Tim Diekmann <tim.diekmann@3dvision.de> | 2020-01-27 21:39:51 +0100 |
| commit | 7ca25db8162128808714f536fa993aefcf6a2239 (patch) | |
| tree | b0e326ad284fb34d208b59080a38e349a50687b0 /src/liballoc/tests | |
| parent | c2d141df59703393c0c683abc259f9a8c3be041a (diff) | |
| download | rust-7ca25db8162128808714f536fa993aefcf6a2239.tar.gz rust-7ca25db8162128808714f536fa993aefcf6a2239.zip | |
Rename `Alloc` to `AllocRef`
Diffstat (limited to 'src/liballoc/tests')
| -rw-r--r-- | src/liballoc/tests/heap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/tests/heap.rs b/src/liballoc/tests/heap.rs index 43cd7187823..7fcfcf9b294 100644 --- a/src/liballoc/tests/heap.rs +++ b/src/liballoc/tests/heap.rs @@ -1,4 +1,4 @@ -use std::alloc::{Alloc, Global, Layout, System}; +use std::alloc::{AllocRef, Global, Layout, System}; /// Issue #45955 and #62251. #[test] @@ -11,7 +11,7 @@ fn std_heap_overaligned_request() { check_overalign_requests(Global) } -fn check_overalign_requests<T: Alloc>(mut allocator: T) { +fn check_overalign_requests<T: AllocRef>(mut allocator: T) { for &align in &[4, 8, 16, 32] { // less than and bigger than `MIN_ALIGN` for &size in &[align / 2, align - 1] { |
