File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_sanitizers/src/cfi/typeid/itanium_cxx_abi Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -736,7 +736,7 @@ fn encode_ty_name(tcx: TyCtxt<'_>, def_id: DefId) -> String {
736736/// <https://rust-lang.github.io/rfcs/2603-rust-symbol-name-mangling-v0.html>).
737737fn to_disambiguator ( num : u64 ) -> String {
738738 if let Some ( num) = num. checked_sub ( 1 ) {
739- format ! ( "s{}_" , base_n:: encode( num as u128 , 62 ) )
739+ format ! ( "s{}_" , base_n:: encode( num as u128 , base_n :: ALPHANUMERIC_ONLY ) )
740740 } else {
741741 "s_" . to_string ( )
742742 }
@@ -746,7 +746,7 @@ fn to_disambiguator(num: u64) -> String {
746746/// <https://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangle.seq-id>).
747747fn to_seq_id ( num : usize ) -> String {
748748 if let Some ( num) = num. checked_sub ( 1 ) {
749- base_n:: encode ( num as u128 , 36 ) . to_uppercase ( )
749+ base_n:: encode ( num as u128 , base_n :: CASE_INSENSITIVE ) . to_uppercase ( )
750750 } else {
751751 "" . to_string ( )
752752 }
You can’t perform that action at this time.
0 commit comments