Fix formatting issues
This commit is contained in:
parent
fb3e871734
commit
9115b319c3
3 changed files with 4 additions and 3 deletions
|
|
@ -1381,7 +1381,8 @@ fn build_cfg(tcx: &ty::ctxt, id: ast::NodeId) -> (ast::NodeId, Option<cfg::CFG>)
|
|||
_ => tcx.sess.bug("unexpected expr variant in has_nested_returns")
|
||||
}
|
||||
}
|
||||
Some(ast_map::NodeVariant(..)) | Some(ast_map::NodeStructCtor(..)) => return (ast::DUMMY_NODE_ID, None),
|
||||
Some(ast_map::NodeVariant(..)) |
|
||||
Some(ast_map::NodeStructCtor(..)) => return (ast::DUMMY_NODE_ID, None),
|
||||
|
||||
// glue, shims, etc
|
||||
None if id == ast::DUMMY_NODE_ID => return (ast::DUMMY_NODE_ID, None),
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ pub fn trans_block<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
|
|||
|
||||
if dest != expr::Ignore {
|
||||
let block_ty = node_id_type(bcx, b.id);
|
||||
|
||||
|
||||
if b.expr.is_none() || type_is_zero_size(bcx.ccx(), block_ty) {
|
||||
dest = expr::Ignore;
|
||||
} else if b.expr.is_some() {
|
||||
|
|
|
|||
|
|
@ -944,7 +944,7 @@ fn trans_rvalue_stmt_unadjusted<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
|
|||
// it won't actually be used anyway.
|
||||
if let &Some(ref x) = ex {
|
||||
bcx = trans_into(bcx, &**x, Ignore);
|
||||
}
|
||||
}
|
||||
bcx
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue