about summary refs log tree commit diff
path: root/src/liballoc/tests
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-04-03 21:15:06 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-04-12 22:52:47 +0200
commite521b8b472dfe058f6d0f62f2e1ab5f291c220ee (patch)
treeb7bd74b0b572fc7143fd783a6e912b4d1ebbf1cc /src/liballoc/tests
parent88ebd2d752831860d8824849cf6f5ae656a2c3eb (diff)
downloadrust-e521b8b472dfe058f6d0f62f2e1ab5f291c220ee.tar.gz
rust-e521b8b472dfe058f6d0f62f2e1ab5f291c220ee.zip
Actually deprecate the Heap type
Diffstat (limited to 'src/liballoc/tests')
-rw-r--r--src/liballoc/tests/heap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/tests/heap.rs b/src/liballoc/tests/heap.rs
index d3ce12056bb..328131e2fef 100644
--- a/src/liballoc/tests/heap.rs
+++ b/src/liballoc/tests/heap.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 use alloc_system::System;
-use std::heap::{Heap, Alloc, Layout};
+use std::alloc::{Global, Alloc, Layout};
 
 /// https://github.com/rust-lang/rust/issues/45955
 ///
@@ -22,7 +22,7 @@ fn alloc_system_overaligned_request() {
 
 #[test]
 fn std_heap_overaligned_request() {
-    check_overalign_requests(Heap)
+    check_overalign_requests(Global)
 }
 
 fn check_overalign_requests<T: Alloc>(mut allocator: T) {