We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a5c5b6 + 1a852a6 commit 0b32d42Copy full SHA for 0b32d42
src/librustc/middle/trans/base.rs
@@ -972,23 +972,9 @@ pub fn ignore_lhs(_bcx: &Block, local: &ast::Local) -> bool {
972
973
pub fn init_local<'a>(bcx: &'a Block<'a>, local: &ast::Local)
974
-> &'a Block<'a> {
975
-
976
- debug!("init_local(bcx={}, local.id={:?})",
977
- bcx.to_str(), local.id);
+ debug!("init_local(bcx={}, local.id={:?})", bcx.to_str(), local.id);
978
let _indenter = indenter();
979
980
let _icx = push_ctxt("init_local");
981
982
- if ignore_lhs(bcx, local) {
983
- // Handle let _ = e; just like e;
984
- match local.init {
985
- Some(ref init) => {
986
- return controlflow::trans_stmt_semi(bcx, &**init)
987
- }
988
- None => { return bcx; }
989
990
991
992
_match::store_local(bcx, local)
993
}
994
0 commit comments