@@ -62,24 +62,6 @@ fn explicit_bases_cycle_initial<'db>(
62
62
Box :: default ( )
63
63
}
64
64
65
- #[ allow( clippy:: ref_option) ]
66
- #[ allow( clippy:: trivially_copy_pass_by_ref) ]
67
- fn legacy_generic_context_cycle_recover < ' db > (
68
- _db : & ' db dyn Db ,
69
- _value : & Option < GenericContext < ' db > > ,
70
- _count : u32 ,
71
- _self : ClassLiteral < ' db > ,
72
- ) -> salsa:: CycleRecoveryAction < Option < GenericContext < ' db > > > {
73
- salsa:: CycleRecoveryAction :: Iterate
74
- }
75
-
76
- fn legacy_generic_context_cycle_initial < ' db > (
77
- _db : & ' db dyn Db ,
78
- _self : ClassLiteral < ' db > ,
79
- ) -> Option < GenericContext < ' db > > {
80
- None
81
- }
82
-
83
65
fn try_mro_cycle_recover < ' db > (
84
66
_db : & ' db dyn Db ,
85
67
_value : & Result < Mro < ' db > , MroError < ' db > > ,
@@ -500,15 +482,13 @@ impl<'db> ClassLiteral<'db> {
500
482
} )
501
483
}
502
484
503
- #[ salsa:: tracked( cycle_fn=legacy_generic_context_cycle_recover, cycle_initial=legacy_generic_context_cycle_initial) ]
504
485
pub ( crate ) fn legacy_generic_context ( self , db : & ' db dyn Db ) -> Option < GenericContext < ' db > > {
505
486
self . explicit_bases ( db) . iter ( ) . find_map ( |base| match base {
506
487
Type :: KnownInstance ( KnownInstanceType :: Generic ( generic_context) ) => * generic_context,
507
488
_ => None ,
508
489
} )
509
490
}
510
491
511
- #[ salsa:: tracked( cycle_fn=legacy_generic_context_cycle_recover, cycle_initial=legacy_generic_context_cycle_initial) ]
512
492
pub ( crate ) fn inherited_legacy_generic_context (
513
493
self ,
514
494
db : & ' db dyn Db ,
0 commit comments