@@ -222,7 +222,7 @@ impl<O> Node<O> {
222222/// v
223223/// Success
224224/// | ^
225- /// | | mark_as_waiting ()
225+ /// | | update_waiting_and_success_states ()
226226/// | v
227227/// | Waiting
228228/// |
@@ -480,7 +480,7 @@ impl<O: ForestObligation> ObligationForest<O> {
480480 } ;
481481 }
482482
483- self . mark_as_waiting ( ) ;
483+ self . update_waiting_and_success_states ( ) ;
484484 self . process_cycles ( processor) ;
485485 let completed = self . compress ( do_completed) ;
486486
@@ -494,8 +494,8 @@ impl<O: ForestObligation> ObligationForest<O> {
494494 }
495495
496496 /// Mark all `Success` nodes as `Done` and report all cycles between them.
497- /// This should be called after `mark_as_waiting ` updates the status of all
498- /// `Waiting` and `Success` nodes.
497+ /// This should be called after `update_waiting_and_success_states ` updates
498+ /// the status of all `Waiting` and `Success` nodes.
499499 fn process_cycles < P > ( & self , processor : & mut P )
500500 where P : ObligationProcessor < Obligation =O >
501501 {
@@ -577,34 +577,34 @@ impl<O: ForestObligation> ObligationForest<O> {
577577
578578 // This always-inlined function is for the hot call site.
579579 #[ inline( always) ]
580- fn inlined_mark_neighbors_as_waiting_from ( & self , node : & Node < O > ) {
580+ fn inlined_mark_dependents_as_waiting ( & self , node : & Node < O > ) {
581581 for & index in node. dependents . iter ( ) {
582582 let node = & self . nodes [ index] ;
583583 match node. state . get ( ) {
584584 NodeState :: Waiting | NodeState :: Error => { }
585585 NodeState :: Success => {
586586 node. state . set ( NodeState :: Waiting ) ;
587587 // This call site is cold.
588- self . uninlined_mark_neighbors_as_waiting_from ( node) ;
588+ self . uninlined_mark_dependents_as_waiting ( node) ;
589589 }
590590 NodeState :: Pending | NodeState :: Done => {
591591 // This call site is cold.
592- self . uninlined_mark_neighbors_as_waiting_from ( node) ;
592+ self . uninlined_mark_dependents_as_waiting ( node) ;
593593 }
594594 }
595595 }
596596 }
597597
598598 // This never-inlined function is for the cold call site.
599599 #[ inline( never) ]
600- fn uninlined_mark_neighbors_as_waiting_from ( & self , node : & Node < O > ) {
601- self . inlined_mark_neighbors_as_waiting_from ( node)
600+ fn uninlined_mark_dependents_as_waiting ( & self , node : & Node < O > ) {
601+ self . inlined_mark_dependents_as_waiting ( node)
602602 }
603603
604604 /// Updates the states of all `Waiting` and `Success` nodes. Upon
605605 /// completion, all such nodes that depend on a pending node will be marked
606606 /// as `Waiting`, and all others will be marked as `Success`.
607- fn mark_as_waiting ( & self ) {
607+ fn update_waiting_and_success_states ( & self ) {
608608 // Optimistically mark all `Waiting` nodes as `Success`.
609609 for node in & self . nodes {
610610 if node. state . get ( ) == NodeState :: Waiting {
@@ -617,7 +617,7 @@ impl<O: ForestObligation> ObligationForest<O> {
617617 for node in & self . nodes {
618618 if node. state . get ( ) == NodeState :: Pending {
619619 // This call site is hot.
620- self . inlined_mark_neighbors_as_waiting_from ( node) ;
620+ self . inlined_mark_dependents_as_waiting ( node) ;
621621 }
622622 }
623623 }
0 commit comments