@@ -49,15 +49,15 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
4949 & self ,
5050 def : DefWithBodyId ,
5151 subst : Substitution ,
52- env : Arc < TraitEnvironment > ,
52+ env : Arc < TraitEnvironment < ' _ > > ,
5353 ) -> Result < Arc < MirBody > , MirLowerError > ;
5454
5555 #[ salsa:: invoke( crate :: mir:: monomorphized_mir_body_for_closure_query) ]
5656 fn monomorphized_mir_body_for_closure (
5757 & self ,
5858 def : InternedClosureId ,
5959 subst : Substitution ,
60- env : Arc < TraitEnvironment > ,
60+ env : Arc < TraitEnvironment < ' _ > > ,
6161 ) -> Result < Arc < MirBody > , MirLowerError > ;
6262
6363 #[ salsa:: invoke( crate :: mir:: borrowck_query) ]
@@ -70,7 +70,7 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
7070 & self ,
7171 def : GeneralConstId ,
7272 subst : Substitution ,
73- trait_env : Option < Arc < TraitEnvironment > > ,
73+ trait_env : Option < Arc < TraitEnvironment < ' _ > > > ,
7474 ) -> Result < Const , ConstEvalError > ;
7575
7676 #[ salsa:: invoke( crate :: consteval:: const_eval_static_query) ]
@@ -84,7 +84,7 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
8484 #[ salsa:: invoke( crate :: method_resolution:: lookup_impl_method_query) ]
8585 fn lookup_impl_method (
8686 & self ,
87- env : Arc < TraitEnvironment > ,
87+ env : Arc < TraitEnvironment < ' _ > > ,
8888 func : FunctionId ,
8989 fn_subst : Substitution ,
9090 ) -> ( FunctionId , Substitution ) ;
@@ -97,15 +97,15 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
9797 & ' db self ,
9898 def : AdtId ,
9999 args : crate :: next_solver:: GenericArgs < ' db > ,
100- trait_env : Arc < TraitEnvironment > ,
100+ trait_env : Arc < TraitEnvironment < ' db > > ,
101101 ) -> Result < Arc < Layout > , LayoutError > ;
102102
103103 #[ salsa:: invoke( crate :: layout:: layout_of_ty_query) ]
104104 #[ salsa:: cycle( cycle_result = crate :: layout:: layout_of_ty_cycle_result) ]
105105 fn layout_of_ty < ' db > (
106106 & ' db self ,
107107 ty : crate :: next_solver:: Ty < ' db > ,
108- env : Arc < TraitEnvironment > ,
108+ env : Arc < TraitEnvironment < ' db > > ,
109109 ) -> Result < Arc < Layout > , LayoutError > ;
110110
111111 #[ salsa:: invoke( crate :: layout:: target_data_layout_query) ]
@@ -182,12 +182,13 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
182182 #[ salsa:: invoke( crate :: lower:: generic_predicates_query) ]
183183 fn generic_predicates ( & self , def : GenericDefId ) -> GenericPredicates ;
184184
185- #[ salsa:: invoke( crate :: lower :: trait_environment_for_body_query) ]
185+ #[ salsa:: invoke( crate :: lower_nextsolver :: trait_environment_for_body_query) ]
186186 #[ salsa:: transparent]
187- fn trait_environment_for_body ( & self , def : DefWithBodyId ) -> Arc < TraitEnvironment > ;
187+ fn trait_environment_for_body < ' db > ( & ' db self , def : DefWithBodyId )
188+ -> Arc < TraitEnvironment < ' db > > ;
188189
189- #[ salsa:: invoke( crate :: lower :: trait_environment_query) ]
190- fn trait_environment ( & self , def : GenericDefId ) -> Arc < TraitEnvironment > ;
190+ #[ salsa:: invoke( crate :: lower_nextsolver :: trait_environment_query) ]
191+ fn trait_environment < ' db > ( & ' db self , def : GenericDefId ) -> Arc < TraitEnvironment < ' db > > ;
191192
192193 #[ salsa:: invoke( crate :: lower:: generic_defaults_with_diagnostics_query) ]
193194 #[ salsa:: cycle( cycle_result = crate :: lower:: generic_defaults_with_diagnostics_cycle_result) ]
@@ -258,7 +259,7 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
258259 fn normalize_projection (
259260 & self ,
260261 projection : crate :: ProjectionTy ,
261- env : Arc < TraitEnvironment > ,
262+ env : Arc < TraitEnvironment < ' _ > > ,
262263 ) -> Ty ;
263264
264265 #[ salsa:: invoke( crate :: traits:: trait_solve_query) ]
@@ -272,7 +273,7 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
272273
273274 #[ salsa:: invoke( crate :: drop:: has_drop_glue) ]
274275 #[ salsa:: cycle( cycle_result = crate :: drop:: has_drop_glue_cycle_result) ]
275- fn has_drop_glue ( & self , ty : Ty , env : Arc < TraitEnvironment > ) -> DropGlue ;
276+ fn has_drop_glue ( & self , ty : Ty , env : Arc < TraitEnvironment < ' _ > > ) -> DropGlue ;
276277
277278 // next trait solver
278279
0 commit comments