Skip to content

Commit 319dec8

Browse files
committed
rustc_codegen_llvm: move misplaced HasParamEnv impl.
1 parent 344df76 commit 319dec8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compiler/rustc_codegen_llvm/src/context.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,12 @@ impl ty::layout::HasTyCtxt<'tcx> for CodegenCx<'ll, 'tcx> {
835835
}
836836
}
837837

838+
impl<'tcx, 'll> HasParamEnv<'tcx> for CodegenCx<'ll, 'tcx> {
839+
fn param_env(&self) -> ty::ParamEnv<'tcx> {
840+
ty::ParamEnv::reveal_all()
841+
}
842+
}
843+
838844
impl LayoutOfHelpers<'tcx> for CodegenCx<'ll, 'tcx> {
839845
type LayoutOfResult = TyAndLayout<'tcx>;
840846

@@ -847,9 +853,3 @@ impl LayoutOfHelpers<'tcx> for CodegenCx<'ll, 'tcx> {
847853
}
848854
}
849855
}
850-
851-
impl<'tcx, 'll> HasParamEnv<'tcx> for CodegenCx<'ll, 'tcx> {
852-
fn param_env(&self) -> ty::ParamEnv<'tcx> {
853-
ty::ParamEnv::reveal_all()
854-
}
855-
}

0 commit comments

Comments
 (0)