File tree 1 file changed +2
-2
lines changed
compiler/rustc_data_structures/src/obligation_forest
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -612,7 +612,7 @@ impl<O: ForestObligation> ObligationForest<O> {
612
612
fn compress ( & mut self , mut outcome_cb : impl FnMut ( & O ) ) {
613
613
let orig_nodes_len = self . nodes . len ( ) ;
614
614
let mut node_rewrites: Vec < _ > = std:: mem:: take ( & mut self . reused_node_vec ) ;
615
- debug_assert ! ( node_rewrites. is_empty( ) ) ;
615
+ assert ! ( node_rewrites. is_empty( ) ) ;
616
616
node_rewrites. extend ( 0 ..orig_nodes_len) ;
617
617
let mut dead_nodes = 0 ;
618
618
@@ -623,7 +623,7 @@ impl<O: ForestObligation> ObligationForest<O> {
623
623
// self.nodes[0..index - dead_nodes] are the first remaining nodes
624
624
// self.nodes[index - dead_nodes..index] are all dead
625
625
// self.nodes[index..] are unchanged
626
- for ( index, node_rewrite) in node_rewrites[ ..orig_nodes_len ] . iter_mut ( ) . enumerate ( ) {
626
+ for ( index, node_rewrite) in node_rewrites. iter_mut ( ) . enumerate ( ) {
627
627
let node = & self . nodes [ index] ;
628
628
match node. state . get ( ) {
629
629
NodeState :: Pending | NodeState :: Waiting => {
You can’t perform that action at this time.
0 commit comments