File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -782,7 +782,6 @@ fn check_pat(tcx: ty::ctxt, pat: @ast::pat) {
782
782
span,
783
783
fmt!( "binding `%s` should use ref or copy mode",
784
784
tcx. sess. str_of( path_to_ident( path) ) ) ) ;
785
- tcx. bad_bindings. insert( id, ( ) ) ;
786
785
}
787
786
}
788
787
}
Original file line number Diff line number Diff line change @@ -429,10 +429,7 @@ type ctxt =
429
429
destructor_for_type : HashMap < ast:: def_id , ast:: def_id > ,
430
430
431
431
// A method will be in this list if and only if it is a destructor.
432
- destructors : HashMap < ast:: def_id , ( ) > ,
433
-
434
- // Records the value mode (read, copy, or move) for every value.
435
- value_modes : HashMap < ast:: node_id , ValueMode > ,
432
+ destructors : HashMap < ast:: def_id , ( ) >
436
433
} ;
437
434
438
435
enum tbox_flag {
@@ -971,8 +968,7 @@ fn mk_ctxt(s: session::Session,
971
968
automatically_derived_methods: HashMap ( ) ,
972
969
automatically_derived_methods_for_impl: HashMap ( ) ,
973
970
destructor_for_type: HashMap ( ) ,
974
- destructors: HashMap ( ) ,
975
- value_modes: HashMap ( ) }
971
+ destructors: HashMap ( ) }
976
972
}
977
973
978
974
You can’t perform that action at this time.
0 commit comments