diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2016-12-19 08:09:03 -0700 |
|---|---|---|
| committer | Mark Simulacrum <mark.simulacrum@gmail.com> | 2016-12-20 20:03:35 -0700 |
| commit | 5ef85dd57e46e59e8035f522a672eeffba989d05 (patch) | |
| tree | 883ddac3477635b683f90767b475810c77510220 | |
| parent | 7f871630710e8b9661711cd333cb87e7230fe94f (diff) | |
Change param_env to empty_param_env
| -rw-r--r-- | src/librustc_trans/context.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_trans/context.rs b/src/librustc_trans/context.rs index d9fc21dd79f..9b6d911bf5e 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 { |
