From 319dec89e7cee269a4a9b029a2da846bb76ea813 Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Wed, 1 Sep 2021 14:19:49 +0300 Subject: rustc_codegen_llvm: move misplaced `HasParamEnv` impl. --- compiler/rustc_codegen_llvm/src/context.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'compiler/rustc_codegen_llvm/src') diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs index 2d397dc5835..1d6efdf5f25 100644 --- a/compiler/rustc_codegen_llvm/src/context.rs +++ b/compiler/rustc_codegen_llvm/src/context.rs @@ -835,6 +835,12 @@ impl ty::layout::HasTyCtxt<'tcx> for CodegenCx<'ll, 'tcx> { } } +impl<'tcx, 'll> HasParamEnv<'tcx> for CodegenCx<'ll, 'tcx> { + fn param_env(&self) -> ty::ParamEnv<'tcx> { + ty::ParamEnv::reveal_all() + } +} + impl LayoutOfHelpers<'tcx> for CodegenCx<'ll, 'tcx> { type LayoutOfResult = TyAndLayout<'tcx>; @@ -847,9 +853,3 @@ impl LayoutOfHelpers<'tcx> for CodegenCx<'ll, 'tcx> { } } } - -impl<'tcx, 'll> HasParamEnv<'tcx> for CodegenCx<'ll, 'tcx> { - fn param_env(&self) -> ty::ParamEnv<'tcx> { - ty::ParamEnv::reveal_all() - } -} -- cgit 1.4.1-3-g733a5