auto merge of #15370 : alexcrichton/rust/fix-cargo, r=pnkfelix

This was causing lots of ICEs in cargo. I sadly wasn't ever able to reduce the
test case down, but I presume that's because it has to do with node id
collisions which are pretty difficult to turn up...
This commit is contained in:
bors 2014-07-03 16:56:51 +00:00
commit eda75bcf42

View File

@ -261,7 +261,7 @@ pub fn trans_unboxing_shim(bcx: &Block,
let function_type =
ty::mk_bare_fn(tcx, method.fty.clone()).subst(tcx, &substs);
let function_name = tcx.map.with_path(method_id.node, |path| {
let function_name = ty::with_path(tcx, method_id, |path| {
link::mangle_internal_name_by_path_and_seq(path, "unboxing_shim")
});
let llfn = decl_internal_rust_fn(ccx,