Skip to content

Commit f02e9db

Browse files
committed
librustc: Remove bogus ValueMode. rs=tree-on-fire
1 parent d1ebdbe commit f02e9db

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/librustc/middle/lint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,6 @@ fn check_pat(tcx: ty::ctxt, pat: @ast::pat) {
782782
span,
783783
fmt!("binding `%s` should use ref or copy mode",
784784
tcx.sess.str_of(path_to_ident(path))));
785-
tcx.bad_bindings.insert(id, ());
786785
}
787786
}
788787
}

src/librustc/middle/ty.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,7 @@ type ctxt =
429429
destructor_for_type: HashMap<ast::def_id, ast::def_id>,
430430

431431
// 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, ()>
436433
};
437434

438435
enum tbox_flag {
@@ -971,8 +968,7 @@ fn mk_ctxt(s: session::Session,
971968
automatically_derived_methods: HashMap(),
972969
automatically_derived_methods_for_impl: HashMap(),
973970
destructor_for_type: HashMap(),
974-
destructors: HashMap(),
975-
value_modes: HashMap()}
971+
destructors: HashMap()}
976972
}
977973

978974

0 commit comments

Comments
 (0)