From 6b56dced4c4fa1ac9d6d7629c816ad9b06c466d0 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sat, 9 Nov 2019 11:30:51 +0100 Subject: Fix tidy. --- src/librustc_codegen_ssa/mir/place.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/librustc_codegen_ssa') diff --git a/src/librustc_codegen_ssa/mir/place.rs b/src/librustc_codegen_ssa/mir/place.rs index d515f114c77..d4e33ee8b6f 100644 --- a/src/librustc_codegen_ssa/mir/place.rs +++ b/src/librustc_codegen_ssa/mir/place.rs @@ -480,7 +480,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { let layout = cx.layout_of(self.monomorphize(&ty)); match bx.tcx().const_eval(param_env.and(cid)) { Ok(val) => match val.val { - ty::ConstKind::Value(mir::interpret::ConstValue::ByRef { alloc, offset }) => { + ty::ConstKind::Value(mir::interpret::ConstValue::ByRef { + alloc, offset + }) => { bx.cx().from_const_alloc(layout, alloc, offset) } _ => bug!("promoteds should have an allocation: {:?}", val), -- cgit 1.4.1-3-g733a5