diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-06-09 09:48:16 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-06-09 11:37:52 -0700 |
| commit | 17ff2a0d7960c58b12898cb0142917a0cffb7559 (patch) | |
| tree | 74e82389edf4d92fd3dd5c893f1ccfa84a5dd9c8 /src/comp/back | |
| parent | 46920e073b4a8da80ad895a9af149e6ff2686e0a (diff) | |
| download | rust-17ff2a0d7960c58b12898cb0142917a0cffb7559.tar.gz rust-17ff2a0d7960c58b12898cb0142917a0cffb7559.zip | |
Further support for predicate constraints
Changed function types to include a list of constraints. Added code for parsing and pretty-printing constraints. This necessitated splitting pprust into two files (pprust and ppaux) to break a circulate dependency, as ty_to_str now needs to print out constraints, which may include literals, but pprust depended on ty.
Diffstat (limited to 'src/comp/back')
| -rw-r--r-- | src/comp/back/link.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/back/link.rs b/src/comp/back/link.rs index 81c0f5a265a..202b963bd60 100644 --- a/src/comp/back/link.rs +++ b/src/comp/back/link.rs @@ -431,7 +431,7 @@ fn mangle_internal_name_by_type_only(&@crate_ctxt ccx, &ty::t t, &str name) -> str { auto f = metadata::def_to_str; auto cx = @rec(ds=f, tcx=ccx.tcx, abbrevs=metadata::ac_no_abbrevs); - auto s = ty::ty_to_short_str(ccx.tcx, t); + auto s = pretty::ppaux::ty_to_short_str(ccx.tcx, t); auto hash = get_symbol_hash(ccx, t); ret mangle([name, s, hash]); |
