Skip to content

Commit 91aa52b

Browse files
CoAlloc: Uncommenting assert of BorrowType::TRAVERSAL_PERMIT. TODO Undo once compilable, FIXME
1 parent 044ef55 commit 91aa52b

File tree

1 file changed

+4
-2
lines changed
  • library/alloc/src/collections/btree

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ impl<BorrowType: marker::BorrowType, K, V, Type> NodeRef<BorrowType, K, V, Type>
319319
self,
320320
) -> Result<Handle<NodeRef<BorrowType, K, V, marker::Internal>, marker::Edge>, Self> {
321321
const {
322-
assert!(BorrowType::TRAVERSAL_PERMIT);
322+
//@FIXME uncomment once compilable
323+
//assert!(BorrowType::TRAVERSAL_PERMIT);
323324
}
324325

325326
// We need to use raw pointers to nodes because, if BorrowType is marker::ValMut,
@@ -1063,7 +1064,8 @@ impl<BorrowType: marker::BorrowType, K, V>
10631064
/// both, upon success, do nothing.
10641065
pub fn descend(self) -> NodeRef<BorrowType, K, V, marker::LeafOrInternal> {
10651066
const {
1066-
assert!(BorrowType::TRAVERSAL_PERMIT);
1067+
// @FIXME uncomment once compilable
1068+
//assert!(BorrowType::TRAVERSAL_PERMIT);
10671069
}
10681070

10691071
// We need to use raw pointers to nodes because, if BorrowType is

0 commit comments

Comments
 (0)