syntax: Parse multiple trait refs in a single implementation

This commit is contained in:
Patrick Walton
2012-07-18 09:31:53 -07:00
parent 1528256fdc
commit 3ac5b4a86f
14 changed files with 126 additions and 63 deletions

View File

@@ -635,8 +635,10 @@ enum item_ {
option<class_dtor>
),
item_trait(~[ty_param], ~[trait_method]),
item_impl(~[ty_param], option<@trait_ref> /* trait */,
@ty /* self */, ~[@method]),
item_impl(~[ty_param],
~[@trait_ref], /* traits this impl implements */
@ty, /* self */
~[@method]),
item_mac(mac),
}