]> git.lizzy.rs Git - rust.git/commitdiff
Change param_env to empty_param_env
authorMark Simulacrum <mark.simulacrum@gmail.com>
Mon, 19 Dec 2016 15:09:03 +0000 (08:09 -0700)
committerMark Simulacrum <mark.simulacrum@gmail.com>
Wed, 21 Dec 2016 03:03:35 +0000 (20:03 -0700)
src/librustc_trans/context.rs

index d9fc21dd79f65ffc14968b69b45660dcbd6ff9dc..9b6d911bf5e642fc428368e003b9bdf23ddec0e2 100644 (file)
@@ -68,7 +68,7 @@ pub struct SharedCrateContext<'a, 'tcx: 'a> {
     exported_symbols: NodeSet,
     link_meta: LinkMeta,
     tcx: TyCtxt<'a, 'tcx, 'tcx>,
-    param_env: ty::ParameterEnvironment<'tcx>,
+    empty_param_env: ty::ParameterEnvironment<'tcx>,
     stats: Stats,
     check_overflow: bool,
 
@@ -456,7 +456,7 @@ pub fn new(tcx: TyCtxt<'b, 'tcx, 'tcx>,
             export_map: export_map,
             exported_symbols: exported_symbols,
             link_meta: link_meta,
-            param_env: tcx.empty_parameter_environment(),
+            empty_param_env: tcx.empty_parameter_environment(),
             tcx: tcx,
             stats: Stats {
                 n_glues_created: Cell::new(0),
@@ -478,11 +478,11 @@ pub fn new(tcx: TyCtxt<'b, 'tcx, 'tcx>,
     }
 
     pub fn type_needs_drop(&self, ty: Ty<'tcx>) -> bool {
-        self.tcx.type_needs_drop_given_env(ty, &self.param_env)
+        self.tcx.type_needs_drop_given_env(ty, &self.empty_param_env)
     }
 
     pub fn type_is_sized(&self, ty: Ty<'tcx>) -> bool {
-        ty.is_sized(self.tcx, &self.param_env, DUMMY_SP)
+        ty.is_sized(self.tcx, &self.empty_param_env, DUMMY_SP)
     }
 
     pub fn metadata_llmod(&self) -> ModuleRef {