rustc: Append the crate version to symbols

This commit is contained in:
Brian Anderson 2012-04-07 17:14:55 -07:00
parent 19b7a7d803
commit d9070b4751

View file

@ -485,10 +485,8 @@ fn mangle(ss: path) -> str {
n
}
fn exported_name(path: path, hash: str, _vers: str) -> str {
// FIXME: versioning isn't working yet
ret mangle(path + [path_name(hash)]); // + "@" + vers;
fn exported_name(path: path, hash: str, vers: str) -> str {
ret mangle(path + [path_name(hash)] + [path_name(vers)]);
}
fn mangle_exported_name(ccx: @crate_ctxt, path: path, t: ty::t) -> str {