Skip to content

Commit 8c6dbcd

Browse files
committed
Fixes tests
1 parent 121c5be commit 8c6dbcd

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ quickcheck! {
374374
let align = ALIGNS[align % ALIGNS.len()];
375375

376376
let mut w = &wee_alloc::WeeAlloc::INIT;
377-
let layout = alloc::heap::Layout::from_size_align(size, align).unwrap();
377+
let layout = Layout::from_size_align(size, align).unwrap();
378378
let _ = unsafe { w.alloc(layout) };
379379
}
380380
}

test/tests/global.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Adopted from
22
// https://github.com/alexcrichton/dlmalloc-rs/blob/master/tests/global.rs
33

4-
#![feature(global_allocator)]
5-
64
extern crate wee_alloc;
75

86
use std::collections::HashMap;

0 commit comments

Comments
 (0)