@@ -1137,7 +1137,7 @@ impl InternedOpaqueTyId {
11371137
11381138#[ salsa:: tracked]
11391139impl < ' db > ImplTraits < ' db > {
1140- #[ salsa:: tracked( returns( ref) , unsafe ( non_update_return_type ) ) ]
1140+ #[ salsa:: tracked( returns( ref) , unsafe ( non_update_types ) ) ]
11411141 pub ( crate ) fn return_type_impl_traits (
11421142 db : & ' db dyn HirDatabase ,
11431143 def : hir_def:: FunctionId ,
@@ -1166,7 +1166,7 @@ impl<'db> ImplTraits<'db> {
11661166 }
11671167 }
11681168
1169- #[ salsa:: tracked( returns( ref) , unsafe ( non_update_return_type ) ) ]
1169+ #[ salsa:: tracked( returns( ref) , unsafe ( non_update_types ) ) ]
11701170 pub ( crate ) fn type_alias_impl_traits (
11711171 db : & ' db dyn HirDatabase ,
11721172 def : hir_def:: TypeAliasId ,
@@ -1373,6 +1373,7 @@ pub(crate) fn type_for_type_alias_with_diagnostics_query<'db>(
13731373
13741374pub ( crate ) fn type_for_type_alias_with_diagnostics_cycle_result < ' db > (
13751375 db : & ' db dyn HirDatabase ,
1376+ _: salsa:: Id ,
13761377 _adt : TypeAliasId ,
13771378) -> ( EarlyBinder < ' db , Ty < ' db > > , Diagnostics ) {
13781379 ( EarlyBinder :: bind ( Ty :: new_error ( DbInterner :: new_no_crate ( db) , ErrorGuaranteed ) ) , None )
@@ -1406,6 +1407,7 @@ pub(crate) fn impl_self_ty_with_diagnostics_query<'db>(
14061407
14071408pub ( crate ) fn impl_self_ty_with_diagnostics_cycle_result (
14081409 db : & dyn HirDatabase ,
1410+ _: salsa:: Id ,
14091411 _impl_id : ImplId ,
14101412) -> ( EarlyBinder < ' _ , Ty < ' _ > > , Diagnostics ) {
14111413 ( EarlyBinder :: bind ( Ty :: new_error ( DbInterner :: new_no_crate ( db) , ErrorGuaranteed ) ) , None )
@@ -1443,6 +1445,7 @@ pub(crate) fn const_param_ty_with_diagnostics_query<'db>(
14431445
14441446pub ( crate ) fn const_param_ty_with_diagnostics_cycle_result < ' db > (
14451447 db : & ' db dyn HirDatabase ,
1448+ _: salsa:: Id ,
14461449 _: crate :: db:: HirDatabaseData ,
14471450 _def : ConstParamId ,
14481451) -> ( Ty < ' db > , Diagnostics ) {
@@ -1496,7 +1499,7 @@ pub(crate) fn field_types_with_diagnostics_query<'db>(
14961499/// following bounds are disallowed: `T: Foo<U::Item>, U: Foo<T::Item>`, but
14971500/// these are fine: `T: Foo<U::Item>, U: Foo<()>`.
14981501#[ tracing:: instrument( skip( db) , ret) ]
1499- #[ salsa:: tracked( returns( ref) , unsafe ( non_update_return_type ) , cycle_result = generic_predicates_for_param_cycle_result) ]
1502+ #[ salsa:: tracked( returns( ref) , unsafe ( non_update_types ) , cycle_result = generic_predicates_for_param_cycle_result) ]
15001503pub ( crate ) fn generic_predicates_for_param < ' db > (
15011504 db : & ' db dyn HirDatabase ,
15021505 def : GenericDefId ,
@@ -1609,6 +1612,7 @@ pub(crate) fn generic_predicates_for_param<'db>(
16091612
16101613pub ( crate ) fn generic_predicates_for_param_cycle_result < ' db > (
16111614 _db : & ' db dyn HirDatabase ,
1615+ _: salsa:: Id ,
16121616 _def : GenericDefId ,
16131617 _param_id : TypeOrConstParamId ,
16141618 _assoc_name : Option < Name > ,
@@ -1624,7 +1628,7 @@ pub(crate) fn type_alias_bounds<'db>(
16241628 type_alias_bounds_with_diagnostics ( db, type_alias) . 0 . as_ref ( ) . map_bound ( |it| & * * it)
16251629}
16261630
1627- #[ salsa:: tracked( returns( ref) , unsafe ( non_update_return_type ) ) ]
1631+ #[ salsa:: tracked( returns( ref) , unsafe ( non_update_types ) ) ]
16281632pub fn type_alias_bounds_with_diagnostics < ' db > (
16291633 db : & ' db dyn HirDatabase ,
16301634 type_alias : TypeAliasId ,
@@ -1682,7 +1686,7 @@ impl<'db> GenericPredicates<'db> {
16821686 /// Resolve the where clause(s) of an item with generics.
16831687 ///
16841688 /// Diagnostics are computed only for this item's predicates, not for parents.
1685- #[ salsa:: tracked( returns( ref) , unsafe ( non_update_return_type ) ) ]
1689+ #[ salsa:: tracked( returns( ref) , unsafe ( non_update_types ) ) ]
16861690 pub fn query_with_diagnostics (
16871691 db : & ' db dyn HirDatabase ,
16881692 def : GenericDefId ,
@@ -2090,6 +2094,7 @@ pub(crate) fn generic_defaults_with_diagnostics_query(
20902094
20912095pub ( crate ) fn generic_defaults_with_diagnostics_cycle_result (
20922096 _db : & dyn HirDatabase ,
2097+ _: salsa:: Id ,
20932098 _def : GenericDefId ,
20942099) -> ( GenericDefaults < ' _ > , Diagnostics ) {
20952100 ( GenericDefaults ( None ) , None )
0 commit comments