librustc: Eliminate most expressions of the form a.b() that are not method calls. rs=refactoring

This commit is contained in:
Patrick Walton
2012-11-29 17:51:16 -08:00
parent b38d7f6538
commit a0617eae68
43 changed files with 295 additions and 275 deletions

View File

@@ -369,8 +369,8 @@ impl inlined_item: inlined_item_utils {
fn accept<E>(e: E, v: visit::vt<E>) {
match self {
ii_item(i) => v.visit_item(i, e, v),
ii_foreign(i) => v.visit_foreign_item(i, e, v),
ii_item(i) => (v.visit_item)(i, e, v),
ii_foreign(i) => (v.visit_foreign_item)(i, e, v),
ii_method(_, m) => visit::visit_method_helper(m, e, v),
ii_dtor(dtor, _, tps, parent_id) => {
visit::visit_class_dtor_helper(dtor, tps, parent_id, e, v);