Skip to content

Commit de88739

Browse files
committed
Don't expert def_to_str from metadata::encoder
1 parent 7d26d1d commit de88739

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/comp/metadata/encoder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import middle::ty;
1616
import middle::ty::node_id_to_monotype;
1717
import front::attr;
1818

19-
export def_to_str;
2019
export encode_metadata;
2120
export ty_str;
2221

@@ -543,7 +542,7 @@ fn encode_metadata(&@crate_ctxt cx, &@crate crate) -> str {
543542

544543
// Get the encoded string for a type
545544
fn ty_str(&ty::ctxt tcx, &ty::t t) -> str {
546-
auto cx = @rec(ds = encoder::def_to_str,
545+
auto cx = @rec(ds = def_to_str,
547546
tcx = tcx,
548547
abbrevs = metadata::tyencode::ac_no_abbrevs);
549548
auto sw = io::string_writer();

0 commit comments

Comments
 (0)