diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-18 23:40:18 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-19 10:16:39 -0700 |
| commit | cc2ebbec92230fa3e377550e42cab4d964bb866d (patch) | |
| tree | de9f34b387ca07ff46df779ff05f4a8582ced64c /src/comp/syntax | |
| parent | 09e21fe2b93e926b77f105939f6d7f2fb6f7dcc9 (diff) | |
| download | rust-cc2ebbec92230fa3e377550e42cab4d964bb866d.tar.gz rust-cc2ebbec92230fa3e377550e42cab4d964bb866d.zip | |
Pretty-print constrained types correctly
Diffstat (limited to 'src/comp/syntax')
| -rw-r--r-- | src/comp/syntax/print/pprust.rs | 7 |
1 files changed, 6 insertions, 1 deletions
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::<ast::path>(path_to_str, c.node.args); + constr_args_to_str::<ast::path>(ty_constr_path_to_str, + c.node.args); } |
