convert ast::ty into a struct

This commit is contained in:
Erick Tryzelaar 2013-01-15 14:59:39 -08:00 committed by Tim Chevalier
parent 8a3a1fc148
commit 8cdc3fda11
10 changed files with 149 additions and 80 deletions

View file

@ -1040,7 +1040,11 @@ impl float_ty : cmp::Eq {
#[auto_encode]
#[auto_decode]
type Ty = {id: node_id, node: ty_, span: span};
struct Ty {
id: node_id,
node: ty_,
span: span,
}
// Not represented directly in the AST, referred to by name through a ty_path.
#[auto_encode]