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...
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,