Skip to content

Commit d9070b4

Browse files
committed
rustc: Append the crate version to symbols
1 parent 19b7a7d commit d9070b4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/rustc/back/link.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,8 @@ fn mangle(ss: path) -> str {
485485
n
486486
}
487487

488-
fn exported_name(path: path, hash: str, _vers: str) -> str {
489-
// FIXME: versioning isn't working yet
490-
ret mangle(path + [path_name(hash)]); // + "@" + vers;
491-
488+
fn exported_name(path: path, hash: str, vers: str) -> str {
489+
ret mangle(path + [path_name(hash)] + [path_name(vers)]);
492490
}
493491

494492
fn mangle_exported_name(ccx: @crate_ctxt, path: path, t: ty::t) -> str {

0 commit comments

Comments
 (0)