Skip to content

Commit db64923

Browse files
authored
Rollup merge of rust-lang#98363 - RalfJung:btree-test-ref-alloc, r=thomcc
remove use of &Alloc in btree tests I missed these in rust-lang#98233. r? ``@thomcc``
2 parents 0cac62d + 1ca8b69 commit db64923

File tree

1 file changed

+6
-6
lines changed
  • library/alloc/src/collections/btree/node

1 file changed

+6
-6
lines changed

library/alloc/src/collections/btree/node/tests.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ fn test_splitpoint() {
6868

6969
#[test]
7070
fn test_partial_eq() {
71-
let mut root1 = NodeRef::new_leaf(&Global);
71+
let mut root1 = NodeRef::new_leaf(Global);
7272
root1.borrow_mut().push(1, ());
73-
let mut root1 = NodeRef::new_internal(root1.forget_type(), &Global).forget_type();
74-
let root2 = Root::new(&Global);
73+
let mut root1 = NodeRef::new_internal(root1.forget_type(), Global).forget_type();
74+
let root2 = Root::new(Global);
7575
root1.reborrow().assert_back_pointers();
7676
root2.reborrow().assert_back_pointers();
7777

@@ -87,9 +87,9 @@ fn test_partial_eq() {
8787
assert!(top_edge_1 == top_edge_1);
8888
assert!(top_edge_1 != top_edge_2);
8989

90-
root1.pop_internal_level(&Global);
91-
unsafe { root1.into_dying().deallocate_and_ascend(&Global) };
92-
unsafe { root2.into_dying().deallocate_and_ascend(&Global) };
90+
root1.pop_internal_level(Global);
91+
unsafe { root1.into_dying().deallocate_and_ascend(Global) };
92+
unsafe { root2.into_dying().deallocate_and_ascend(Global) };
9393
}
9494

9595
#[test]

0 commit comments

Comments
 (0)