change ast::ty_param into a struct.

This commit is contained in:
Erick Tryzelaar 2013-01-13 11:15:14 -08:00
parent df7d376d25
commit e1f1a1204a
6 changed files with 14 additions and 10 deletions

View file

@ -2458,7 +2458,7 @@ impl Parser {
fn parse_ty_param() -> ty_param {
let ident = self.parse_ident();
let bounds = self.parse_optional_ty_param_bounds();
return {ident: ident, id: self.get_id(), bounds: bounds};
ast::ty_param { ident: ident, id: self.get_id(), bounds: bounds }
}
fn parse_ty_params() -> ~[ty_param] {