Skip to content

Commit dc6c4de

Browse files
committed
ty::layout: split LayoutOf into required and (blanket) provided halves.
1 parent 6a9c9b0 commit dc6c4de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use rustc_index::vec::IndexVec;
2-
use rustc_middle::ty::layout::LayoutError;
2+
use rustc_middle::ty::layout::{LayoutError, LayoutOfHelpers};
33
use rustc_middle::ty::SymbolName;
44
use rustc_target::abi::call::FnAbi;
55
use rustc_target::abi::{Integer, Primitive};
@@ -257,7 +257,7 @@ pub(crate) struct FunctionCx<'m, 'clif, 'tcx: 'm> {
257257
pub(crate) inline_asm_index: u32,
258258
}
259259

260-
impl<'tcx> LayoutOf<'tcx> for FunctionCx<'_, '_, 'tcx> {
260+
impl<'tcx> LayoutOfHelpers<'tcx> for FunctionCx<'_, '_, 'tcx> {
261261
type LayoutOfResult = TyAndLayout<'tcx>;
262262

263263
#[inline]
@@ -365,7 +365,7 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> {
365365

366366
pub(crate) struct RevealAllLayoutCx<'tcx>(pub(crate) TyCtxt<'tcx>);
367367

368-
impl<'tcx> LayoutOf<'tcx> for RevealAllLayoutCx<'tcx> {
368+
impl<'tcx> LayoutOfHelpers<'tcx> for RevealAllLayoutCx<'tcx> {
369369
type LayoutOfResult = TyAndLayout<'tcx>;
370370

371371
#[inline]

0 commit comments

Comments
 (0)