librustc: Remove bogus ValueMode. rs=tree-on-fire

This commit is contained in:
Patrick Walton 2012-12-04 15:09:40 -08:00
parent d1ebdbeb6c
commit f02e9db212
2 changed files with 2 additions and 7 deletions

View File

@ -782,7 +782,6 @@ fn check_pat(tcx: ty::ctxt, pat: @ast::pat) {
span, span,
fmt!("binding `%s` should use ref or copy mode", fmt!("binding `%s` should use ref or copy mode",
tcx.sess.str_of(path_to_ident(path)))); tcx.sess.str_of(path_to_ident(path))));
tcx.bad_bindings.insert(id, ());
} }
} }
} }

View File

@ -429,10 +429,7 @@ type ctxt =
destructor_for_type: HashMap<ast::def_id, ast::def_id>, destructor_for_type: HashMap<ast::def_id, ast::def_id>,
// A method will be in this list if and only if it is a destructor. // A method will be in this list if and only if it is a destructor.
destructors: HashMap<ast::def_id, ()>, destructors: HashMap<ast::def_id, ()>
// Records the value mode (read, copy, or move) for every value.
value_modes: HashMap<ast::node_id, ValueMode>,
}; };
enum tbox_flag { enum tbox_flag {
@ -971,8 +968,7 @@ fn mk_ctxt(s: session::Session,
automatically_derived_methods: HashMap(), automatically_derived_methods: HashMap(),
automatically_derived_methods_for_impl: HashMap(), automatically_derived_methods_for_impl: HashMap(),
destructor_for_type: HashMap(), destructor_for_type: HashMap(),
destructors: HashMap(), destructors: HashMap()}
value_modes: HashMap()}
} }