@@ -49,15 +49,15 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
49
49
& self ,
50
50
def : DefWithBodyId ,
51
51
subst : Substitution ,
52
- env : Arc < TraitEnvironment > ,
52
+ env : Arc < TraitEnvironment < ' _ > > ,
53
53
) -> Result < Arc < MirBody > , MirLowerError > ;
54
54
55
55
#[ salsa:: invoke( crate :: mir:: monomorphized_mir_body_for_closure_query) ]
56
56
fn monomorphized_mir_body_for_closure (
57
57
& self ,
58
58
def : InternedClosureId ,
59
59
subst : Substitution ,
60
- env : Arc < TraitEnvironment > ,
60
+ env : Arc < TraitEnvironment < ' _ > > ,
61
61
) -> Result < Arc < MirBody > , MirLowerError > ;
62
62
63
63
#[ salsa:: invoke( crate :: mir:: borrowck_query) ]
@@ -70,7 +70,7 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
70
70
& self ,
71
71
def : GeneralConstId ,
72
72
subst : Substitution ,
73
- trait_env : Option < Arc < TraitEnvironment > > ,
73
+ trait_env : Option < Arc < TraitEnvironment < ' _ > > > ,
74
74
) -> Result < Const , ConstEvalError > ;
75
75
76
76
#[ salsa:: invoke( crate :: consteval:: const_eval_static_query) ]
@@ -84,7 +84,7 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
84
84
#[ salsa:: invoke( crate :: method_resolution:: lookup_impl_method_query) ]
85
85
fn lookup_impl_method (
86
86
& self ,
87
- env : Arc < TraitEnvironment > ,
87
+ env : Arc < TraitEnvironment < ' _ > > ,
88
88
func : FunctionId ,
89
89
fn_subst : Substitution ,
90
90
) -> ( FunctionId , Substitution ) ;
@@ -97,15 +97,15 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
97
97
& ' db self ,
98
98
def : AdtId ,
99
99
args : crate :: next_solver:: GenericArgs < ' db > ,
100
- trait_env : Arc < TraitEnvironment > ,
100
+ trait_env : Arc < TraitEnvironment < ' db > > ,
101
101
) -> Result < Arc < Layout > , LayoutError > ;
102
102
103
103
#[ salsa:: invoke( crate :: layout:: layout_of_ty_query) ]
104
104
#[ salsa:: cycle( cycle_result = crate :: layout:: layout_of_ty_cycle_result) ]
105
105
fn layout_of_ty < ' db > (
106
106
& ' db self ,
107
107
ty : crate :: next_solver:: Ty < ' db > ,
108
- env : Arc < TraitEnvironment > ,
108
+ env : Arc < TraitEnvironment < ' db > > ,
109
109
) -> Result < Arc < Layout > , LayoutError > ;
110
110
111
111
#[ salsa:: invoke( crate :: layout:: target_data_layout_query) ]
@@ -182,12 +182,13 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
182
182
#[ salsa:: invoke( crate :: lower:: generic_predicates_query) ]
183
183
fn generic_predicates ( & self , def : GenericDefId ) -> GenericPredicates ;
184
184
185
- #[ salsa:: invoke( crate :: lower :: trait_environment_for_body_query) ]
185
+ #[ salsa:: invoke( crate :: lower_nextsolver :: trait_environment_for_body_query) ]
186
186
#[ 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 > > ;
188
189
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 > > ;
191
192
192
193
#[ salsa:: invoke( crate :: lower:: generic_defaults_with_diagnostics_query) ]
193
194
#[ salsa:: cycle( cycle_result = crate :: lower:: generic_defaults_with_diagnostics_cycle_result) ]
@@ -258,7 +259,7 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
258
259
fn normalize_projection (
259
260
& self ,
260
261
projection : crate :: ProjectionTy ,
261
- env : Arc < TraitEnvironment > ,
262
+ env : Arc < TraitEnvironment < ' _ > > ,
262
263
) -> Ty ;
263
264
264
265
#[ salsa:: invoke( crate :: traits:: trait_solve_query) ]
@@ -272,7 +273,7 @@ pub trait HirDatabase: DefDatabase + std::fmt::Debug {
272
273
273
274
#[ salsa:: invoke( crate :: drop:: has_drop_glue) ]
274
275
#[ 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 ;
276
277
277
278
// next trait solver
278
279
0 commit comments