Move tyencode::ty_str to metadata::encoder
This commit is contained in:
parent
73963eae9a
commit
7d26d1d67b
4 changed files with 16 additions and 11 deletions
|
|
@ -8,6 +8,7 @@ import std::option::none;
|
|||
import std::option::some;
|
||||
import middle::ty;
|
||||
import middle::ty::*;
|
||||
import metadata::encoder;
|
||||
import syntax::print::pp;
|
||||
import syntax::print::pprust;
|
||||
import pp::word;
|
||||
|
|
@ -151,7 +152,7 @@ fn ty_to_str(&ctxt cx, &t typ) -> str {
|
|||
}
|
||||
|
||||
fn ty_to_short_str(&ctxt cx, t typ) -> str {
|
||||
auto s = metadata::tyencode::ty_str(cx, typ);
|
||||
auto s = encoder::ty_str(cx, typ);
|
||||
if (str::byte_len(s) >= 32u) { s = str::substr(s, 0u, 32u); }
|
||||
ret s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue