Skip to content

Commit 67789c4

Browse files
committed
pacify tidy
1 parent 56591f6 commit 67789c4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/librustc_trans/mir/block.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ impl<'a, 'tcx> MirContext<'a, 'tcx> {
147147
mir::TerminatorKind::Switch { ref discr, ref adt_def, ref targets } => {
148148
let discr_lvalue = self.trans_lvalue(&bcx, discr);
149149
let ty = discr_lvalue.ty.to_ty(bcx.tcx());
150-
let discr = adt::trans_get_discr(&bcx, ty, discr_lvalue.llval, discr_lvalue.alignment,
151-
None, true);
150+
let discr = adt::trans_get_discr(
151+
&bcx, ty, discr_lvalue.llval, discr_lvalue.alignment,
152+
None, true);
152153

153154
let mut bb_hist = FxHashMap();
154155
for target in targets {
@@ -216,7 +217,8 @@ impl<'a, 'tcx> MirContext<'a, 'tcx> {
216217
llscratch
217218
}
218219
Ref(llval, align) => {
219-
assert_eq!(align, Alignment::AbiAligned, "return pointer is unaligned!");
220+
assert_eq!(align, Alignment::AbiAligned,
221+
"return pointer is unaligned!");
220222
llval
221223
}
222224
};

src/librustc_trans/mir/rvalue.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ impl<'a, 'tcx> MirContext<'a, 'tcx> {
113113
let op = self.trans_operand(&bcx, operand);
114114
// Do not generate stores and GEPis for zero-sized fields.
115115
if !common::type_is_zero_size(bcx.ccx, op.ty) {
116-
let mut val = LvalueRef::new_sized(dest.llval, dest.ty, dest.alignment);
116+
let mut val = LvalueRef::new_sized(
117+
dest.llval, dest.ty, dest.alignment);
117118
let field_index = active_field_index.unwrap_or(i);
118119
val.ty = LvalueTy::Downcast {
119120
adt_def: adt_def,

0 commit comments

Comments
 (0)