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