Skip to content

Commit 9115b31

Browse files
committed
Fix formatting issues
1 parent fb3e871 commit 9115b31

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/librustc_trans/trans/base.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,8 @@ fn build_cfg(tcx: &ty::ctxt, id: ast::NodeId) -> (ast::NodeId, Option<cfg::CFG>)
13811381
_ => tcx.sess.bug("unexpected expr variant in has_nested_returns")
13821382
}
13831383
}
1384-
Some(ast_map::NodeVariant(..)) | Some(ast_map::NodeStructCtor(..)) => return (ast::DUMMY_NODE_ID, None),
1384+
Some(ast_map::NodeVariant(..)) |
1385+
Some(ast_map::NodeStructCtor(..)) => return (ast::DUMMY_NODE_ID, None),
13851386

13861387
// glue, shims, etc
13871388
None if id == ast::DUMMY_NODE_ID => return (ast::DUMMY_NODE_ID, None),

src/librustc_trans/trans/controlflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub fn trans_block<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
112112

113113
if dest != expr::Ignore {
114114
let block_ty = node_id_type(bcx, b.id);
115-
115+
116116
if b.expr.is_none() || type_is_zero_size(bcx.ccx(), block_ty) {
117117
dest = expr::Ignore;
118118
} else if b.expr.is_some() {

src/librustc_trans/trans/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ fn trans_rvalue_stmt_unadjusted<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
944944
// it won't actually be used anyway.
945945
if let &Some(ref x) = ex {
946946
bcx = trans_into(bcx, &**x, Ignore);
947-
}
947+
}
948948
bcx
949949
}
950950
}

0 commit comments

Comments
 (0)