Pretty-print constrained types correctly
This commit is contained in:
parent
09e21fe2b9
commit
cc2ebbec92
@ -1718,8 +1718,13 @@ fn proto_to_str(p: &ast::proto) -> str {
|
||||
}
|
||||
|
||||
fn ty_constr_to_str(c: &@ast::ty_constr) -> str {
|
||||
fn ty_constr_path_to_str(p: &ast::path) -> str {
|
||||
"*." + path_to_str(p)
|
||||
}
|
||||
|
||||
ret path_to_str(c.node.path) +
|
||||
constr_args_to_str::<ast::path>(path_to_str, c.node.args);
|
||||
constr_args_to_str::<ast::path>(ty_constr_path_to_str,
|
||||
c.node.args);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// xfail-pretty
|
||||
// -*- rust -*-
|
||||
|
||||
tag list { cons(int, @list); nil; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user