@@ -546,7 +546,6 @@ struct BacktrackFrame<'a> {
546
546
parent : Summary ,
547
547
dep : Dependency ,
548
548
features : Rc < Vec < String > > ,
549
- conflicting_activations : HashMap < PackageId , ConflictReason > ,
550
549
}
551
550
552
551
#[ derive( Clone ) ]
@@ -610,7 +609,6 @@ fn activate_deps_loop<'a>(mut cx: Context<'a>,
610
609
// use (those with more candidates).
611
610
let mut backtrack_stack = Vec :: new ( ) ;
612
611
let mut remaining_deps = BinaryHeap :: new ( ) ;
613
- let mut conflicting_activations;
614
612
for & ( ref summary, ref method) in summaries {
615
613
debug ! ( "initial activation: {}" , summary. package_id( ) ) ;
616
614
let candidate = Candidate { summary : summary. clone ( ) , replace : None } ;
@@ -683,7 +681,6 @@ fn activate_deps_loop<'a>(mut cx: Context<'a>,
683
681
remaining : RcVecIter :: new ( Rc :: clone ( & candidates) ) ,
684
682
conflicting_prev_active : HashMap :: new ( ) ,
685
683
} ;
686
- conflicting_activations = HashMap :: new ( ) ;
687
684
( candidates. next ( prev_active, & cx. links ) ,
688
685
candidates. clone ( ) . next ( prev_active, & cx. links ) . is_ok ( ) ,
689
686
candidates)
@@ -714,13 +711,11 @@ fn activate_deps_loop<'a>(mut cx: Context<'a>,
714
711
parent : Summary :: clone ( & parent) ,
715
712
dep : Dependency :: clone ( & dep) ,
716
713
features : Rc :: clone ( & features) ,
717
- conflicting_activations : conflicting_activations. clone ( ) ,
718
714
} ) ;
719
715
}
720
716
candidate
721
717
}
722
718
Err ( mut conflicting) => {
723
- conflicting_activations. extend ( conflicting. drain ( ) ) ;
724
719
// This dependency has no valid candidate. Backtrack until we
725
720
// find a dependency that does have a candidate to try, and try
726
721
// to activate that one. This resets the `remaining_deps` to
@@ -734,10 +729,10 @@ fn activate_deps_loop<'a>(mut cx: Context<'a>,
734
729
& mut cur,
735
730
& mut dep,
736
731
& mut features,
737
- & mut conflicting_activations ) {
732
+ & mut conflicting ) {
738
733
None => return Err ( activation_error ( & cx, registry, & parent,
739
734
& dep,
740
- conflicting_activations ,
735
+ conflicting ,
741
736
& candidates, config) ) ,
742
737
Some ( candidate) => candidate,
743
738
}
@@ -806,15 +801,13 @@ fn find_candidate<'a>(
806
801
* parent = frame. parent . clone ( ) ;
807
802
* dep = frame. dep . clone ( ) ;
808
803
* features = Rc :: clone ( & frame. features ) ;
809
- * conflicting_activations = frame. conflicting_activations . clone ( ) ;
810
804
backtrack_stack. push ( frame) ;
811
805
} else {
812
806
* cx = frame. context_backup ;
813
807
* remaining_deps = frame. deps_backup ;
814
808
* parent = frame. parent ;
815
809
* dep = frame. dep ;
816
810
* features = frame. features ;
817
- * conflicting_activations = frame. conflicting_activations
818
811
}
819
812
return Some ( candidate) ;
820
813
}
0 commit comments