@@ -1604,6 +1604,14 @@ pub(crate) fn impl_self_ty_with_diagnostics_query(
16041604 )
16051605}
16061606
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+
16071615pub ( crate ) fn const_param_ty_query ( db : & dyn HirDatabase , def : ConstParamId ) -> Ty {
16081616 db. const_param_ty_with_diagnostics ( def) . 0
16091617}
@@ -1633,12 +1641,12 @@ pub(crate) fn const_param_ty_with_diagnostics_query(
16331641 ( ty, create_diagnostics ( ctx. diagnostics ) )
16341642}
16351643
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 )
16421650}
16431651
16441652pub ( crate ) fn impl_trait_query ( db : & dyn HirDatabase , impl_id : ImplId ) -> Option < Binders < TraitRef > > {
0 commit comments