diff options
| author | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2021-08-30 20:37:36 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2021-09-02 01:17:14 +0300 |
| commit | dc6c4defdcfe4a518a1dd1b54602d2a9693f161c (patch) | |
| tree | 5c98e2bac23c1ce90a2bca276100fe13dc4a8915 | |
| parent | 6a9c9b0f18d6e1587fb2770ec999ce07c18fb46e (diff) | |
| download | rust-dc6c4defdcfe4a518a1dd1b54602d2a9693f161c.tar.gz rust-dc6c4defdcfe4a518a1dd1b54602d2a9693f161c.zip | |
ty::layout: split `LayoutOf` into required and (blanket) provided halves.
| -rw-r--r-- | src/common.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common.rs b/src/common.rs index 1d7a1f11b6c..6f7ca51d038 100644 --- a/src/common.rs +++ b/src/common.rs @@ -1,5 +1,5 @@ use rustc_index::vec::IndexVec; -use rustc_middle::ty::layout::LayoutError; +use rustc_middle::ty::layout::{LayoutError, LayoutOfHelpers}; use rustc_middle::ty::SymbolName; use rustc_target::abi::call::FnAbi; use rustc_target::abi::{Integer, Primitive}; @@ -257,7 +257,7 @@ pub(crate) struct FunctionCx<'m, 'clif, 'tcx: 'm> { pub(crate) inline_asm_index: u32, } -impl<'tcx> LayoutOf<'tcx> for FunctionCx<'_, '_, 'tcx> { +impl<'tcx> LayoutOfHelpers<'tcx> for FunctionCx<'_, '_, 'tcx> { type LayoutOfResult = TyAndLayout<'tcx>; #[inline] @@ -365,7 +365,7 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> { pub(crate) struct RevealAllLayoutCx<'tcx>(pub(crate) TyCtxt<'tcx>); -impl<'tcx> LayoutOf<'tcx> for RevealAllLayoutCx<'tcx> { +impl<'tcx> LayoutOfHelpers<'tcx> for RevealAllLayoutCx<'tcx> { type LayoutOfResult = TyAndLayout<'tcx>; #[inline] |
