diff options
| author | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2021-09-01 14:19:49 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2021-09-18 01:42:45 +0300 |
| commit | 319dec89e7cee269a4a9b029a2da846bb76ea813 (patch) | |
| tree | 4c54ec5aed3c661bda27cd85168a954a8c6bd6fe /compiler/rustc_codegen_llvm/src | |
| parent | 344df76fed727b565b905f3f32ee467f8e3aec2d (diff) | |
| download | rust-319dec89e7cee269a4a9b029a2da846bb76ea813.tar.gz rust-319dec89e7cee269a4a9b029a2da846bb76ea813.zip | |
rustc_codegen_llvm: move misplaced `HasParamEnv` impl.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/context.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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() - } -} |
