From cc2ebbec92230fa3e377550e42cab4d964bb866d Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 18 Aug 2011 23:40:18 -0700 Subject: Pretty-print constrained types correctly --- src/comp/syntax/print/pprust.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/comp/syntax') diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs index 21d446c9c5c..e0b47ecde39 100644 --- a/src/comp/syntax/print/pprust.rs +++ b/src/comp/syntax/print/pprust.rs @@ -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::(path_to_str, c.node.args); + constr_args_to_str::(ty_constr_path_to_str, + c.node.args); } -- cgit 1.4.1-3-g733a5