Skip to content

Commit ab98f16

Browse files
committed
rustc: Downcase metadata::Encode
1 parent 8746b84 commit ab98f16

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/comp/back/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ fn symbol_hash(ty::ctxt tcx, sha1 sha, &ty::t t, str crate_meta_name,
406406
sha.input_str("-");
407407
sha.input_str(crate_meta_name);
408408
sha.input_str("-");
409-
sha.input_str(metadata::Encode::ty_str(cx, t));
409+
sha.input_str(metadata::encode::ty_str(cx, t));
410410
auto hash = truncated_sha1_result(sha);
411411
// Prefix with _ so that it never blends into adjacent digits
412412

src/comp/middle/metadata.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ type ty_abbrev = rec(uint pos, uint len, str s);
8080

8181
tag abbrev_ctxt { ac_no_abbrevs; ac_use_abbrevs(hashmap[ty::t, ty_abbrev]); }
8282

83-
mod Encode {
83+
mod encode {
8484
type ctxt =
8585
rec(fn(&def_id) -> str ds, // Def -> str Callback:
8686

@@ -454,7 +454,7 @@ fn encode_type(&@trans::crate_ctxt cx, &ebml::writer ebml_w, &ty::t typ) {
454454
auto f = def_to_str;
455455
auto ty_str_ctxt =
456456
@rec(ds=f, tcx=cx.tcx, abbrevs=ac_use_abbrevs(cx.type_abbrevs));
457-
Encode::enc_ty(io::new_writer_(ebml_w.writer), ty_str_ctxt, typ);
457+
encode::enc_ty(io::new_writer_(ebml_w.writer), ty_str_ctxt, typ);
458458
ebml::end_tag(ebml_w);
459459
}
460460

src/comp/pretty/ppaux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fn ty_to_str(&ctxt cx, &t typ) -> str {
133133
fn ty_to_short_str(&ctxt cx, t typ) -> str {
134134
auto f = def_to_str;
135135
auto ecx = @rec(ds=f, tcx=cx, abbrevs=middle::metadata::ac_no_abbrevs);
136-
auto s = middle::metadata::Encode::ty_str(ecx, typ);
136+
auto s = middle::metadata::encode::ty_str(ecx, typ);
137137
if (str::byte_len(s) >= 32u) { s = str::substr(s, 0u, 32u); }
138138
ret s;
139139
}

0 commit comments

Comments
 (0)