Skip to content

Commit aa30184

Browse files
Uncommenting assert of BorrowType::TRAVERSAL_PERMIT. FIXME: Undo once compilable.
1 parent 0a4d9a5 commit aa30184

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

+4-2
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,
@@ -1007,7 +1008,8 @@ impl<BorrowType: marker::BorrowType, K, V>
10071008
/// both, upon success, do nothing.
10081009
pub fn descend(self) -> NodeRef<BorrowType, K, V, marker::LeafOrInternal> {
10091010
const {
1010-
assert!(BorrowType::TRAVERSAL_PERMIT);
1011+
// @FIXME uncomment once compilable
1012+
//assert!(BorrowType::TRAVERSAL_PERMIT);
10111013
}
10121014

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

0 commit comments

Comments
 (0)