@@ -22,7 +22,6 @@ use crate::{
2222use chalk_ir:: Mutability ;
2323use hir_def:: signatures:: StructFlags ;
2424use hir_def:: { AdtId , GenericDefId , GenericParamId , VariantId } ;
25- use salsa:: CycleRecoveryAction ;
2625use std:: fmt;
2726use std:: ops:: Not ;
2827use stdx:: never;
@@ -55,14 +54,14 @@ pub(crate) fn variances_of(db: &dyn HirDatabase, def: GenericDefId) -> Option<Ar
5554 variances. is_empty ( ) . not ( ) . then ( || Arc :: from_iter ( variances) )
5655}
5756
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+ // }
6665
6766pub ( crate ) fn variances_of_cycle_initial (
6867 db : & dyn HirDatabase ,
@@ -966,7 +965,7 @@ struct S3<T>(S<T, T>);
966965struct FixedPoint<T, U, V>(&'static FixedPoint<(), T, U>, V);
967966"# ,
968967 expect ! [ [ r#"
969- FixedPoint[T: covariant , U: covariant , V: covariant ]
968+ FixedPoint[T: bivariant , U: bivariant , V: bivariant ]
970969 "# ] ] ,
971970 ) ;
972971 }
0 commit comments