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 @@ -969,23 +969,9 @@ pub fn ignore_lhs(_bcx: &Block, local: &ast::Local) -> bool {
969
969
970
970
pub fn init_local < ' a > ( bcx : & ' a Block < ' a > , local : & ast:: Local )
971
971
-> & ' a Block < ' a > {
972
-
973
- debug ! ( "init_local(bcx={}, local.id={:?})" ,
974
- bcx. to_str( ) , local. id) ;
972
+ debug ! ( "init_local(bcx={}, local.id={:?})" , bcx. to_str( ) , local. id) ;
975
973
let _indenter = indenter ( ) ;
976
-
977
974
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
975
_match:: store_local ( bcx, local)
990
976
}
991
977
You can’t perform that action at this time.
0 commit comments