File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
src/librustc/middle/trans Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -972,23 +972,9 @@ pub fn ignore_lhs(_bcx: &Block, local: &ast::Local) -> bool {
972972
973973pub fn init_local < ' a > ( bcx : & ' a Block < ' a > , local : & ast:: Local )
974974 -> & ' a Block < ' a > {
975-
976- debug ! ( "init_local(bcx={}, local.id={:?})" ,
977- bcx. to_str( ) , local. id) ;
975+ debug ! ( "init_local(bcx={}, local.id={:?})" , bcx. to_str( ) , local. id) ;
978976 let _indenter = indenter ( ) ;
979-
980977 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-
992978 _match:: store_local ( bcx, local)
993979}
994980
You can’t perform that action at this time.
0 commit comments