@@ -1604,6 +1604,14 @@ pub(crate) fn impl_self_ty_with_diagnostics_query(
1604
1604
)
1605
1605
}
1606
1606
1607
+ pub ( crate ) fn impl_self_ty_with_diagnostics_cycle_result (
1608
+ db : & dyn HirDatabase ,
1609
+ impl_id : ImplId ,
1610
+ ) -> ( Binders < Ty > , Diagnostics ) {
1611
+ let generics = generics ( db, impl_id. into ( ) ) ;
1612
+ ( make_binders ( db, & generics, TyKind :: Error . intern ( Interner ) ) , None )
1613
+ }
1614
+
1607
1615
pub ( crate ) fn const_param_ty_query ( db : & dyn HirDatabase , def : ConstParamId ) -> Ty {
1608
1616
db. const_param_ty_with_diagnostics ( def) . 0
1609
1617
}
@@ -1633,12 +1641,12 @@ pub(crate) fn const_param_ty_with_diagnostics_query(
1633
1641
( ty, create_diagnostics ( ctx. diagnostics ) )
1634
1642
}
1635
1643
1636
- pub ( crate ) fn impl_self_ty_with_diagnostics_cycle_result (
1637
- db : & dyn HirDatabase ,
1638
- impl_id : ImplId ,
1639
- ) -> ( Binders < Ty > , Diagnostics ) {
1640
- let generics = generics ( db , impl_id . into ( ) ) ;
1641
- ( make_binders ( db , & generics , TyKind :: Error . intern ( Interner ) ) , None )
1644
+ pub ( crate ) fn const_param_ty_with_diagnostics_cycle_result (
1645
+ _ : & dyn HirDatabase ,
1646
+ _ : crate :: db :: HirDatabaseData ,
1647
+ _ : ConstParamId ,
1648
+ ) -> ( Ty , Diagnostics ) {
1649
+ ( TyKind :: Error . intern ( Interner ) , None )
1642
1650
}
1643
1651
1644
1652
pub ( crate ) fn impl_trait_query ( db : & dyn HirDatabase , impl_id : ImplId ) -> Option < Binders < TraitRef > > {
0 commit comments