@@ -429,7 +429,7 @@ fn get_symbol_hash(&@crate_ctxt ccx, &ty::t t) -> str {
429
429
ret hash;
430
430
}
431
431
432
- fn mangle( & vec [ str] ss) -> str {
432
+ fn mangle( & str [ ] ss) -> str {
433
433
// Follow C++ namespace-mangling style
434
434
435
435
auto n = "_ZN" ; // Begin name-sequence.
@@ -440,14 +440,14 @@ fn mangle(&vec[str] ss) -> str {
440
440
ret n;
441
441
}
442
442
443
- fn exported_name( & vec [ str] path, & str hash, & str vers) -> str {
443
+ fn exported_name( & str [ ] path, & str hash, & str vers) -> str {
444
444
// FIXME: versioning isn't working yet
445
445
446
- ret mangle( path + [ hash] ) ; // + "@" + vers;
446
+ ret mangle( path + ~ [ hash] ) ; // + "@" + vers;
447
447
448
448
}
449
449
450
- fn mangle_exported_name( & @crate_ctxt ccx, & vec [ str] path, & ty:: t t) -> str {
450
+ fn mangle_exported_name( & @crate_ctxt ccx, & str [ ] path, & ty:: t t) -> str {
451
451
auto hash = get_symbol_hash( ccx, t) ;
452
452
ret exported_name( path, hash, ccx. link_meta. vers) ;
453
453
}
@@ -456,15 +456,15 @@ fn mangle_internal_name_by_type_only(&@crate_ctxt ccx, &ty::t t, &str name) ->
456
456
str {
457
457
auto s = util:: ppaux:: ty_to_short_str( ccx. tcx, t) ;
458
458
auto hash = get_symbol_hash( ccx, t) ;
459
- ret mangle( [ name, s, hash] ) ;
459
+ ret mangle( ~ [ name, s, hash] ) ;
460
460
}
461
461
462
- fn mangle_internal_name_by_path_and_seq( & @crate_ctxt ccx, & vec [ str] path,
462
+ fn mangle_internal_name_by_path_and_seq( & @crate_ctxt ccx, & str [ ] path,
463
463
& str flav) -> str {
464
- ret mangle( path + [ ccx. names. next( flav) ] ) ;
464
+ ret mangle( path + ~ [ ccx. names. next( flav) ] ) ;
465
465
}
466
466
467
- fn mangle_internal_name_by_path( & @crate_ctxt ccx, & vec [ str] path) -> str {
467
+ fn mangle_internal_name_by_path( & @crate_ctxt ccx, & str [ ] path) -> str {
468
468
ret mangle( path) ;
469
469
}
470
470
0 commit comments