mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
remove use of &Alloc in btree tests
This commit is contained in:
parent
dc80ca78b6
commit
1ca8b69e1c
@ -68,10 +68,10 @@ fn test_splitpoint() {
|
||||
|
||||
#[test]
|
||||
fn test_partial_eq() {
|
||||
let mut root1 = NodeRef::new_leaf(&Global);
|
||||
let mut root1 = NodeRef::new_leaf(Global);
|
||||
root1.borrow_mut().push(1, ());
|
||||
let mut root1 = NodeRef::new_internal(root1.forget_type(), &Global).forget_type();
|
||||
let root2 = Root::new(&Global);
|
||||
let mut root1 = NodeRef::new_internal(root1.forget_type(), Global).forget_type();
|
||||
let root2 = Root::new(Global);
|
||||
root1.reborrow().assert_back_pointers();
|
||||
root2.reborrow().assert_back_pointers();
|
||||
|
||||
@ -87,9 +87,9 @@ fn test_partial_eq() {
|
||||
assert!(top_edge_1 == top_edge_1);
|
||||
assert!(top_edge_1 != top_edge_2);
|
||||
|
||||
root1.pop_internal_level(&Global);
|
||||
unsafe { root1.into_dying().deallocate_and_ascend(&Global) };
|
||||
unsafe { root2.into_dying().deallocate_and_ascend(&Global) };
|
||||
root1.pop_internal_level(Global);
|
||||
unsafe { root1.into_dying().deallocate_and_ascend(Global) };
|
||||
unsafe { root2.into_dying().deallocate_and_ascend(Global) };
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
Reference in New Issue
Block a user