Fix naughty mangling-breakage from stringifying a node ID. Close #1344.

This commit is contained in:
Graydon Hoare 2012-03-20 15:15:33 -07:00
parent 8e911cbd65
commit d282481c12

View file

@ -4338,7 +4338,7 @@ fn get_item_val(ccx: @crate_ctxt, id: ast::node_id) -> ValueRef {
ast_map::node_method(m, impl_id, pth) { ast_map::node_method(m, impl_id, pth) {
exprt = true; exprt = true;
let mty = ty::node_id_to_type(ccx.tcx, id); let mty = ty::node_id_to_type(ccx.tcx, id);
let pth = *pth + [path_name(int::str(impl_id.node)), let pth = *pth + [path_name(ccx.names("meth")),
path_name(m.ident)]; path_name(m.ident)];
let llfn = register_fn_full(ccx, m.span, pth, "impl_method", let llfn = register_fn_full(ccx, m.span, pth, "impl_method",
id, mty); id, mty);