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 {
972
972
973
973
pub fn init_local < ' a > ( bcx : & ' a Block < ' a > , local : & ast:: Local )
974
974
-> & ' 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) ;
978
976
let _indenter = indenter ( ) ;
979
-
980
977
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
978
_match:: store_local ( bcx, local)
993
979
}
994
980
You can’t perform that action at this time.
0 commit comments