Skip to content

Commit

Permalink
rustc: Fix a call to with_path in trans_unboxing_shim
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
alexcrichton committed Jul 3, 2014
1 parent 524f469 commit 497ecd0
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 497ecd0

Please sign in to comment.