Fixing an infinite type, updating code to match new Early parser, remembering to add protocol parser.
This commit is contained in:
parent
6806aa0e66
commit
fa4134611d
4 changed files with 72 additions and 3 deletions
|
@ -96,7 +96,10 @@ enum whole_nt {
|
|||
w_ty( @ast::ty),
|
||||
w_ident(str_num, bool),
|
||||
w_path(@ast::path),
|
||||
w_tt(ast::token_tree),
|
||||
// TODO: this seems to cause infinite recursion in
|
||||
// type_structually_contains if it's not an @-box. We should at least get
|
||||
// failure instead.
|
||||
w_tt(@ast::token_tree),
|
||||
}
|
||||
|
||||
fn binop_to_str(o: binop) -> str {
|
||||
|
@ -190,6 +193,7 @@ fn to_str(in: interner<@str>, t: token) -> str {
|
|||
w_stmt(*) { "statement" } w_pat(*) { "pattern" }
|
||||
w_expr(*) { "expression" } w_ty(*) { "type" }
|
||||
w_ident(*) { "identifier" } w_path(*) { "path" }
|
||||
w_tt(*) { "tt" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue