Extend ast_map to know about method declarations in traits.

This commit is contained in:
Michael Sullivan
2012-08-02 15:52:25 -07:00
parent 97452c0ca1
commit 2fe299d1a5
7 changed files with 48 additions and 11 deletions

View File

@@ -185,6 +185,8 @@ fn resolve_vtables_in_fn_ctxt(fcx: fn_ctxt, vts: typeck::vtable_res)
@vec::map(*vts, |d| resolve_vtable_in_fn_ctxt(fcx, d))
}
// Apply the typaram substitutions in the fn_ctxt to a vtable. This should
// eliminate any vtable_params.
fn resolve_vtable_in_fn_ctxt(fcx: fn_ctxt, vt: typeck::vtable_origin)
-> typeck::vtable_origin {
alt vt {