Skip to content

Commit 94a4892

Browse files
committed
resolving conflicts
1 parent 18679cd commit 94a4892

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/librustc/ty/layout.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -1720,10 +1720,9 @@ impl<'a, 'tcx, C> TyLayoutMethods<'tcx, C> for Ty<'tcx>
17201720
let tcx = cx.tcx();
17211721
let discr_layout = |discr: &Scalar| -> C::TyLayout {
17221722
let layout = LayoutDetails::scalar(cx, discr.clone());
1723-
MaybeResult::from_ok(TyLayout {
1724-
details: tcx.intern_layout(layout),
1725-
ty: discr.value.to_ty(tcx)
1726-
})
1723+
MaybeResult::from(Ok(
1724+
TyLayout {details: tcx.intern_layout(layout),ty: discr.value.to_ty(tcx)}
1725+
))
17271726
};
17281727

17291728
cx.layout_of(match this.ty.sty {

0 commit comments

Comments
 (0)