Skip to content

Commit eda75bc

Browse files
committed
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...
2 parents 0aa23ed + 497ecd0 commit eda75bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/trans/callee.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ pub fn trans_unboxing_shim(bcx: &Block,
261261
let function_type =
262262
ty::mk_bare_fn(tcx, method.fty.clone()).subst(tcx, &substs);
263263

264-
let function_name = tcx.map.with_path(method_id.node, |path| {
264+
let function_name = ty::with_path(tcx, method_id, |path| {
265265
link::mangle_internal_name_by_path_and_seq(path, "unboxing_shim")
266266
});
267267
let llfn = decl_internal_rust_fn(ccx,

0 commit comments

Comments
 (0)