Print the type of istrs as 'str' in error messages. Issue #855
This commit is contained in:
parent
b16457627c
commit
6217ce958e
4 changed files with 4 additions and 4 deletions
|
|
@ -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) + "]" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue