@@ -22,7 +22,6 @@ use crate::{
22
22
use chalk_ir:: Mutability ;
23
23
use hir_def:: signatures:: StructFlags ;
24
24
use hir_def:: { AdtId , GenericDefId , GenericParamId , VariantId } ;
25
- use salsa:: CycleRecoveryAction ;
26
25
use std:: fmt;
27
26
use std:: ops:: Not ;
28
27
use stdx:: never;
@@ -55,14 +54,14 @@ pub(crate) fn variances_of(db: &dyn HirDatabase, def: GenericDefId) -> Option<Ar
55
54
variances. is_empty ( ) . not ( ) . then ( || Arc :: from_iter ( variances) )
56
55
}
57
56
58
- pub ( crate ) fn variances_of_cycle_fn (
59
- _db : & dyn HirDatabase ,
60
- _result : & Option < Arc < [ Variance ] > > ,
61
- _count : u32 ,
62
- _def : GenericDefId ,
63
- ) -> CycleRecoveryAction < Option < Arc < [ Variance ] > > > {
64
- CycleRecoveryAction :: Iterate
65
- }
57
+ // pub(crate) fn variances_of_cycle_fn(
58
+ // _db: &dyn HirDatabase,
59
+ // _result: &Option<Arc<[Variance]>>,
60
+ // _count: u32,
61
+ // _def: GenericDefId,
62
+ // ) -> salsa:: CycleRecoveryAction<Option<Arc<[Variance]>>> {
63
+ // salsa:: CycleRecoveryAction::Iterate
64
+ // }
66
65
67
66
pub ( crate ) fn variances_of_cycle_initial (
68
67
db : & dyn HirDatabase ,
@@ -966,7 +965,7 @@ struct S3<T>(S<T, T>);
966
965
struct FixedPoint<T, U, V>(&'static FixedPoint<(), T, U>, V);
967
966
"# ,
968
967
expect ! [ [ r#"
969
- FixedPoint[T: covariant , U: covariant , V: covariant ]
968
+ FixedPoint[T: bivariant , U: bivariant , V: bivariant ]
970
969
"# ] ] ,
971
970
) ;
972
971
}
0 commit comments