diff options
| author | bors <bors@rust-lang.org> | 2019-05-05 18:25:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-05-05 18:25:13 +0000 |
| commit | d628c2e642c6f8f85f24dd5d7f49de89b95bf682 (patch) | |
| tree | def3c31e34937115a64751b9120d9d18b3a8446c /src/librustc_codegen_llvm/builder.rs | |
| parent | c6b16987645dd8980f40efe7c72d4f3fd4b399d3 (diff) | |
| parent | 968eb7ff5a5db0d842527cba15be6dba741103a2 (diff) | |
Auto merge of #60237 - saleemjaffer:issue-56166-miri-fntype-arg-passing, r=eddyb
Move pointee_info_at from rustc_codegen_llvm to rustc_target. Makes progress towards #56166. This is a continuation of https://github.com/rust-lang/rust/pull/57150. @oli-obk Should I close the older PR?
Diffstat (limited to 'src/librustc_codegen_llvm/builder.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/builder.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc_codegen_llvm/builder.rs b/src/librustc_codegen_llvm/builder.rs index 123fda1e215..bc2bb97a19e 100644 --- a/src/librustc_codegen_llvm/builder.rs +++ b/src/librustc_codegen_llvm/builder.rs @@ -66,6 +66,12 @@ impl ty::layout::HasTyCtxt<'tcx> for Builder<'_, '_, 'tcx> { } } +impl ty::layout::HasParamEnv<'tcx> for Builder<'_, '_, 'tcx> { + fn param_env(&self) -> ty::ParamEnv<'tcx> { + self.cx.param_env() + } +} + impl ty::layout::LayoutOf for Builder<'_, '_, 'tcx> { type Ty = Ty<'tcx>; type TyLayout = TyLayout<'tcx>; |
