@@ -5354,7 +5354,7 @@ fn collect_item(ccx: @crate_ctxt, abi: @mutable option::t<ast::native_abi>,
5354
5354
register_fn ( ccx, i. span , new_pt, "obj_ctor" , tps, ctor_id) ;
5355
5355
}
5356
5356
ast:: item_impl ( tps, _, _, methods) {
5357
- let name = ccx . names . next ( i. ident ) ;
5357
+ let name = i . ident + int :: str ( i. id ) ;
5358
5358
for m in methods {
5359
5359
register_fn ( ccx, i. span , pt + [ name, m. ident ] ,
5360
5360
"impl_method" , tps + m. tps , m. id ) ;
@@ -5418,9 +5418,7 @@ fn trans_constant(ccx: @crate_ctxt, it: @ast::item, &&pt: [str],
5418
5418
ast:: item_impl ( tps, some ( @{ node: ast:: ty_path ( _, id) , _} ) , _, ms) {
5419
5419
let i_did = ast_util:: def_id_of_def ( ccx. tcx . def_map . get ( id) ) ;
5420
5420
let ty = ty:: lookup_item_type ( ccx. tcx , i_did) . ty ;
5421
- // FIXME[impl] use the same name as used in collect_items, for
5422
- // slightly more consistent symbol names?
5423
- let new_pt = pt + [ ccx. names . next ( it. ident ) ] ;
5421
+ let new_pt = pt + [ it. ident + int:: str ( it. id ) , "wrap" ] ;
5424
5422
let extra_tps = vec:: map ( tps, { |p| param_bounds ( ccx, p) } ) ;
5425
5423
let tbl = C_struct ( vec:: map ( * ty:: iface_methods ( ccx. tcx , i_did) , { |im|
5426
5424
alt vec:: find ( ms, { |m| m. ident == im. ident } ) {
0 commit comments