From 5ef85dd57e46e59e8035f522a672eeffba989d05 Mon Sep 17 00:00:00 2001 From: Mark Simulacrum Date: Mon, 19 Dec 2016 08:09:03 -0700 Subject: [PATCH] Change param_env to empty_param_env --- src/librustc_trans/context.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/librustc_trans/context.rs b/src/librustc_trans/context.rs index d9fc21dd79f6..9b6d911bf5e6 100644 --- a/src/librustc_trans/context.rs +++ b/src/librustc_trans/context.rs @@ -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 @@ impl<'b, 'tcx> SharedCrateContext<'b, '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 @@ impl<'b, 'tcx> SharedCrateContext<'b, '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 {