Skip to content

Commit fc023d9

Browse files
committed
Revert prior commit until I have time to track down the valgrind error
This reverts commit 2ec3a0b.
1 parent 2ec3a0b commit fc023d9

File tree

4 files changed

+2
-27
lines changed

4 files changed

+2
-27
lines changed

src/comp/metadata/csearch.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ fn resolve_path(cstore: cstore::cstore, cnum: ast::crate_num,
6060
fn get_item_path(tcx: ty::ctxt, def: ast::def_id) -> ast_map::path {
6161
let cstore = tcx.sess.cstore;
6262
let cdata = cstore::get_crate_data(cstore, def.crate);
63-
let path = decoder::get_item_path(cdata, def.node);
64-
[ast_map::path_mod(cdata.name)] + path
63+
ret decoder::get_item_path(cdata, def.node);
6564
}
6665

6766
fn get_enum_variants(tcx: ty::ctxt, def: ast::def_id) -> [ty::variant_info] {

src/comp/middle/ast_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn path_to_str_with_sep(p: path, sep: str) -> str {
1717
}
1818

1919
fn path_to_str(p: path) -> str {
20-
"::" + path_to_str_with_sep(p, "::")
20+
path_to_str_with_sep(p, "::")
2121
}
2222

2323
enum ast_node {

src/test/compile-fail/fully-qualified-type-name1.rs

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/test/compile-fail/fully-qualified-type-name2.rs

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)