Skip to content

Commit 3067a04

Browse files
committed
fix(core): require VertexRef: ~const Destruct in topological_sort
1 parent b78f660 commit 3067a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/r3_core/src/bind/sorter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ where
607607
Graph::VertexIter<'a>: ~const MyIterator + ~const Destruct,
608608
// [ref:const_trait_not_implied] necessitates `: ~const MyIterator`
609609
Graph::SuccessorIter<'a>: ~const MyIterator + ~const Destruct,
610-
VertexRef: Copy,
610+
VertexRef: Copy + ~const Destruct,
611611
VertexRefLessThan: ~const FnMut(&VertexRef, &VertexRef) -> bool,
612612
ReadyVertexQueue: ~const VecLike<Element = VertexRef>,
613613
for<'index> VertexInfoMap: ~const Index<&'index VertexRef, Output = TopologicalSortVertexInfo>

0 commit comments

Comments
 (0)