diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-09-02 16:35:50 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-09-02 22:11:46 -0700 |
| commit | 6217ce958e4b1007ca9e49751dba1aa1b68fbe67 (patch) | |
| tree | 50946dc61777d9898b40c9c82e2babe2bc7d1e45 /src/comp/util | |
| parent | b16457627c79b0b4aa2034251f8ba1223df1b4b8 (diff) | |
| download | rust-6217ce958e4b1007ca9e49751dba1aa1b68fbe67.tar.gz rust-6217ce958e4b1007ca9e49751dba1aa1b68fbe67.zip | |
Print the type of istrs as 'str' in error messages. Issue #855
Diffstat (limited to 'src/comp/util')
| -rw-r--r-- | src/comp/util/ppaux.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/util/ppaux.rs b/src/comp/util/ppaux.rs index 8846d5c5380..ede973149c5 100644 --- a/src/comp/util/ppaux.rs +++ b/src/comp/util/ppaux.rs @@ -107,7 +107,7 @@ fn ty_to_str(cx: &ctxt, typ: &t) -> str { ty_uint. { "uint" } ty_machine(tm) { ty_mach_to_str(tm) } ty_char. { "char" } - ty_istr. { "istr" } + ty_istr. { "str" } ty_box(tm) { "@" + mt_to_str(cx, tm) } ty_uniq(t) { "~" + ty_to_str(cx, t) } ty_vec(tm) { "[" + mt_to_str(cx, tm) + "]" } |
