Skip to content

Commit d9f0448

Browse files
committed
rustc_target: add lifetime parameter to LayoutOf.
1 parent e0ea466 commit d9f0448

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ pub(crate) struct FunctionCx<'m, 'clif, 'tcx: 'm> {
256256
pub(crate) inline_asm_index: u32,
257257
}
258258

259-
impl<'tcx> LayoutOf for FunctionCx<'_, '_, 'tcx> {
259+
impl<'tcx> LayoutOf<'tcx> for FunctionCx<'_, '_, 'tcx> {
260260
type Ty = Ty<'tcx>;
261261
type TyAndLayout = TyAndLayout<'tcx>;
262262

@@ -364,7 +364,7 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> {
364364

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

367-
impl<'tcx> LayoutOf for RevealAllLayoutCx<'tcx> {
367+
impl<'tcx> LayoutOf<'tcx> for RevealAllLayoutCx<'tcx> {
368368
type Ty = Ty<'tcx>;
369369
type TyAndLayout = TyAndLayout<'tcx>;
370370

0 commit comments

Comments
 (0)