@@ -622,11 +622,11 @@ pub fn symbol_hash(tcx: ty::ctxt,
622
622
hash. to_managed ( )
623
623
}
624
624
625
- pub fn get_symbol_hash ( ccx : @ CrateContext , t : ty:: t ) -> @str {
625
+ pub fn get_symbol_hash ( ccx : & mut CrateContext , t : ty:: t ) -> @str {
626
626
match ccx. type_hashcodes . find ( & t) {
627
627
Some ( & h) => h,
628
628
None => {
629
- let hash = symbol_hash ( ccx. tcx , ccx. symbol_hasher , t, ccx. link_meta ) ;
629
+ let hash = symbol_hash ( ccx. tcx , & mut ccx. symbol_hasher , t, ccx. link_meta ) ;
630
630
ccx. type_hashcodes . insert ( t, hash) ;
631
631
hash
632
632
}
@@ -705,7 +705,7 @@ pub fn exported_name(sess: Session,
705
705
path_name ( sess. ident_of ( vers) ) ) ) ;
706
706
}
707
707
708
- pub fn mangle_exported_name ( ccx : @ CrateContext ,
708
+ pub fn mangle_exported_name ( ccx : & mut CrateContext ,
709
709
path : path ,
710
710
t : ty:: t ) -> ~str {
711
711
let hash = get_symbol_hash ( ccx, t) ;
@@ -714,7 +714,7 @@ pub fn mangle_exported_name(ccx: @CrateContext,
714
714
ccx. link_meta . vers ) ;
715
715
}
716
716
717
- pub fn mangle_internal_name_by_type_only ( ccx : @ CrateContext ,
717
+ pub fn mangle_internal_name_by_type_only ( ccx : & mut CrateContext ,
718
718
t : ty:: t ,
719
719
name : & str ) -> ~str {
720
720
let s = ppaux:: ty_to_short_str ( ccx. tcx , t) ;
@@ -725,7 +725,7 @@ pub fn mangle_internal_name_by_type_only(ccx: @CrateContext,
725
725
path_name ( ccx. sess . ident_of ( hash) ) ] ) ;
726
726
}
727
727
728
- pub fn mangle_internal_name_by_type_and_seq ( ccx : @ CrateContext ,
728
+ pub fn mangle_internal_name_by_type_and_seq ( ccx : & mut CrateContext ,
729
729
t : ty:: t ,
730
730
name : & str ) -> ~str {
731
731
let s = ppaux:: ty_to_str ( ccx. tcx , t) ;
@@ -736,18 +736,18 @@ pub fn mangle_internal_name_by_type_and_seq(ccx: @CrateContext,
736
736
path_name ( ( ccx. names ) ( name) ) ] ) ;
737
737
}
738
738
739
- pub fn mangle_internal_name_by_path_and_seq ( ccx : @ CrateContext ,
739
+ pub fn mangle_internal_name_by_path_and_seq ( ccx : & mut CrateContext ,
740
740
path : path ,
741
741
flav : & str ) -> ~str {
742
742
return mangle ( ccx. sess ,
743
743
vec:: append_one ( path, path_name ( ( ccx. names ) ( flav) ) ) ) ;
744
744
}
745
745
746
- pub fn mangle_internal_name_by_path ( ccx : @ CrateContext , path : path ) -> ~str {
746
+ pub fn mangle_internal_name_by_path ( ccx : & mut CrateContext , path : path ) -> ~str {
747
747
return mangle ( ccx. sess , path) ;
748
748
}
749
749
750
- pub fn mangle_internal_name_by_seq ( ccx : @ CrateContext , flav : & str ) -> ~str {
750
+ pub fn mangle_internal_name_by_seq ( ccx : & mut CrateContext , flav : & str ) -> ~str {
751
751
return fmt ! ( "%s_%u" , flav, ( ccx. names) ( flav) . name) ;
752
752
}
753
753
0 commit comments