@@ -161,7 +161,7 @@ pub struct InferCtxt<'a, 'gcx: 'a+'tcx, 'tcx: 'a> {
161161 // For region variables.
162162 region_vars : RegionVarBindings < ' a , ' gcx , ' tcx > ,
163163
164- pub parameter_environment : ty:: ParamEnv < ' gcx > ,
164+ pub param_env : ty:: ParamEnv < ' gcx > ,
165165
166166 /// Caches the results of trait selection. This cache is used
167167 /// for things that have to do with the parameters in scope.
@@ -453,7 +453,7 @@ impl<'a, 'tcx> InferEnv<'a, 'tcx> for hir::BodyId {
453453 let def_id = tcx. hir . body_owner_def_id ( self ) ;
454454 ( Some ( tcx. typeck_tables_of ( def_id) ) ,
455455 None ,
456- Some ( tcx. parameter_environment ( def_id) ) )
456+ Some ( tcx. param_env ( def_id) ) )
457457 }
458458}
459459
@@ -498,7 +498,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'gcx> {
498498 int_unification_table : RefCell :: new ( UnificationTable :: new ( ) ) ,
499499 float_unification_table : RefCell :: new ( UnificationTable :: new ( ) ) ,
500500 region_vars : RegionVarBindings :: new ( self ) ,
501- parameter_environment : param_env. unwrap ( ) ,
501+ param_env : param_env. unwrap ( ) ,
502502 selection_cache : traits:: SelectionCache :: new ( ) ,
503503 evaluation_cache : traits:: EvaluationCache :: new ( ) ,
504504 projection_cache : RefCell :: new ( traits:: ProjectionCache :: new ( ) ) ,
@@ -535,7 +535,7 @@ impl<'a, 'gcx, 'tcx> InferCtxtBuilder<'a, 'gcx, 'tcx> {
535535 int_unification_table : RefCell :: new ( UnificationTable :: new ( ) ) ,
536536 float_unification_table : RefCell :: new ( UnificationTable :: new ( ) ) ,
537537 region_vars : RegionVarBindings :: new ( tcx) ,
538- parameter_environment : param_env,
538+ param_env : param_env,
539539 selection_cache : traits:: SelectionCache :: new ( ) ,
540540 evaluation_cache : traits:: EvaluationCache :: new ( ) ,
541541 reported_trait_errors : RefCell :: new ( FxHashSet ( ) ) ,
@@ -1673,7 +1673,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
16731673 }
16741674
16751675 pub fn param_env ( & self ) -> ty:: ParamEnv < ' gcx > {
1676- self . parameter_environment
1676+ self . param_env
16771677 }
16781678
16791679 pub fn closure_kind ( & self ,
0 commit comments