@@ -208,7 +208,7 @@ fn activate_deps_loop(
208
208
while let Some ( ( just_here_for_the_error_messages, frame) ) =
209
209
remaining_deps. pop_most_constrained ( )
210
210
{
211
- let ( mut parent, ( mut cur , ( mut dep, candidates, mut features) ) ) = frame;
211
+ let ( mut parent, ( mut dep, candidates, mut features) ) = frame;
212
212
213
213
// If we spend a lot of time here (we shouldn't in most cases) then give
214
214
// a bit of a visual indicator as to what we're doing.
@@ -217,7 +217,7 @@ fn activate_deps_loop(
217
217
trace ! (
218
218
"{}[{}]>{} {} candidates" ,
219
219
parent. name( ) ,
220
- cur ,
220
+ cx . age ( ) ,
221
221
dep. package_name( ) ,
222
222
candidates. len( )
223
223
) ;
@@ -263,7 +263,7 @@ fn activate_deps_loop(
263
263
trace ! (
264
264
"{}[{}]>{} -- no candidates" ,
265
265
parent. name( ) ,
266
- cur ,
266
+ cx . age ( ) ,
267
267
dep. package_name( )
268
268
) ;
269
269
@@ -308,7 +308,6 @@ fn activate_deps_loop(
308
308
Some ( ( candidate, has_another, frame) ) => {
309
309
// Reset all of our local variables used with the
310
310
// contents of `frame` to complete our backtrack.
311
- cur = frame. cur ;
312
311
cx = frame. context ;
313
312
remaining_deps = frame. remaining_deps ;
314
313
remaining_candidates = frame. remaining_candidates ;
@@ -353,7 +352,6 @@ fn activate_deps_loop(
353
352
// if we can.
354
353
let backtrack = if has_another {
355
354
Some ( BacktrackFrame {
356
- cur,
357
355
context : Context :: clone ( & cx) ,
358
356
remaining_deps : remaining_deps. clone ( ) ,
359
357
remaining_candidates : remaining_candidates. clone ( ) ,
@@ -376,7 +374,7 @@ fn activate_deps_loop(
376
374
trace ! (
377
375
"{}[{}]>{} trying {}" ,
378
376
parent. name( ) ,
379
- cur ,
377
+ cx . age ( ) ,
380
378
dep. package_name( ) ,
381
379
candidate. version( )
382
380
) ;
@@ -409,7 +407,7 @@ fn activate_deps_loop(
409
407
if let Some ( conflicting) = frame
410
408
. remaining_siblings
411
409
. clone ( )
412
- . filter_map ( |( _ , ( ref new_dep, _, _) ) | {
410
+ . filter_map ( |( ref new_dep, _, _) | {
413
411
past_conflicting_activations. conflicting ( & cx, new_dep)
414
412
} )
415
413
. next ( )
@@ -526,7 +524,7 @@ fn activate_deps_loop(
526
524
trace ! (
527
525
"{}[{}]>{} skipping {} " ,
528
526
parent. name( ) ,
529
- cur ,
527
+ cx . age ( ) ,
530
528
dep. package_name( ) ,
531
529
pid. version( )
532
530
) ;
@@ -700,7 +698,6 @@ fn activate(
700
698
701
699
#[ derive( Clone ) ]
702
700
struct BacktrackFrame {
703
- cur : usize ,
704
701
context : Context ,
705
702
remaining_deps : RemainingDeps ,
706
703
remaining_candidates : RemainingCandidates ,
@@ -759,7 +756,7 @@ impl RemainingCandidates {
759
756
dep : & Dependency ,
760
757
parent : PackageId ,
761
758
) -> Option < ( Summary , bool ) > {
762
- ' main: for ( _ , b ) in self . remaining . by_ref ( ) {
759
+ ' main: for b in self . remaining . by_ref ( ) {
763
760
let b_id = b. package_id ( ) ;
764
761
// The `links` key in the manifest dictates that there's only one
765
762
// package in a dependency graph, globally, with that particular
0 commit comments