convert ast::ty into a struct
This commit is contained in:
parent
8a3a1fc148
commit
8cdc3fda11
10 changed files with 149 additions and 80 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue