Skip to content

Commit d282481

Browse files
committed
Fix naughty mangling-breakage from stringifying a node ID. Close #1344.
1 parent 8e911cb commit d282481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4338,7 +4338,7 @@ fn get_item_val(ccx: @crate_ctxt, id: ast::node_id) -> ValueRef {
43384338
ast_map::node_method(m, impl_id, pth) {
43394339
exprt = true;
43404340
let mty = ty::node_id_to_type(ccx.tcx, id);
4341-
let pth = *pth + [path_name(int::str(impl_id.node)),
4341+
let pth = *pth + [path_name(ccx.names("meth")),
43424342
path_name(m.ident)];
43434343
let llfn = register_fn_full(ccx, m.span, pth, "impl_method",
43444344
id, mty);

0 commit comments

Comments
 (0)