@@ -536,7 +536,6 @@ struct BacktrackFrame<'a> {
536
536
parent : Summary ,
537
537
dep : Dependency ,
538
538
features : Rc < Vec < String > > ,
539
- conflicting_activations : HashSet < PackageId > ,
540
539
}
541
540
542
541
#[ derive( Clone ) ]
@@ -591,7 +590,6 @@ fn activate_deps_loop<'a>(mut cx: Context<'a>,
591
590
// use (those with more candidates).
592
591
let mut backtrack_stack = Vec :: new ( ) ;
593
592
let mut remaining_deps = BinaryHeap :: new ( ) ;
594
- let mut conflicting_activations;
595
593
for & ( ref summary, ref method) in summaries {
596
594
debug ! ( "initial activation: {}" , summary. package_id( ) ) ;
597
595
let candidate = Candidate { summary : summary. clone ( ) , replace : None } ;
@@ -664,7 +662,6 @@ fn activate_deps_loop<'a>(mut cx: Context<'a>,
664
662
remaining : RcVecIter :: new ( Rc :: clone ( & candidates) ) ,
665
663
conflicting_prev_active : HashSet :: new ( ) ,
666
664
} ;
667
- conflicting_activations = HashSet :: new ( ) ;
668
665
( candidates. next ( prev_active) ,
669
666
candidates. clone ( ) . next ( prev_active) . is_ok ( ) ,
670
667
candidates)
@@ -695,13 +692,11 @@ fn activate_deps_loop<'a>(mut cx: Context<'a>,
695
692
parent : Summary :: clone ( & parent) ,
696
693
dep : Dependency :: clone ( & dep) ,
697
694
features : Rc :: clone ( & features) ,
698
- conflicting_activations : conflicting_activations. clone ( ) ,
699
695
} ) ;
700
696
}
701
697
candidate
702
698
}
703
699
Err ( mut conflicting) => {
704
- conflicting_activations. extend ( conflicting. drain ( ) ) ;
705
700
// This dependency has no valid candidate. Backtrack until we
706
701
// find a dependency that does have a candidate to try, and try
707
702
// to activate that one. This resets the `remaining_deps` to
@@ -715,10 +710,10 @@ fn activate_deps_loop<'a>(mut cx: Context<'a>,
715
710
& mut cur,
716
711
& mut dep,
717
712
& mut features,
718
- & mut conflicting_activations ) {
713
+ & mut conflicting ) {
719
714
None => return Err ( activation_error ( & cx, registry, & parent,
720
715
& dep,
721
- conflicting_activations ,
716
+ conflicting ,
722
717
& candidates, config) ) ,
723
718
Some ( candidate) => candidate,
724
719
}
@@ -787,15 +782,13 @@ fn find_candidate<'a>(
787
782
* parent = frame. parent . clone ( ) ;
788
783
* dep = frame. dep . clone ( ) ;
789
784
* features = Rc :: clone ( & frame. features ) ;
790
- * conflicting_activations = frame. conflicting_activations . clone ( ) ;
791
785
backtrack_stack. push ( frame) ;
792
786
} else {
793
787
* cx = frame. context_backup ;
794
788
* remaining_deps = frame. deps_backup ;
795
789
* parent = frame. parent ;
796
790
* dep = frame. dep ;
797
791
* features = frame. features ;
798
- * conflicting_activations = frame. conflicting_activations
799
792
}
800
793
return Some ( candidate) ;
801
794
}
0 commit comments