Skip to content

Commit

Permalink
auto merge of rust-lang#15370 : alexcrichton/rust/fix-cargo, r=pnkfelix
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
bors committed Jul 3, 2014
2 parents 0aa23ed + 497ecd0 commit eda75bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/middle/trans/callee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eda75bc

Please sign in to comment.