File tree 1 file changed +2
-2
lines changed
compiler/rustc_sanitizers/src/cfi/typeid/itanium_cxx_abi
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 {
736
736
/// <https://rust-lang.github.io/rfcs/2603-rust-symbol-name-mangling-v0.html>).
737
737
fn to_disambiguator ( num : u64 ) -> String {
738
738
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 ) )
740
740
} else {
741
741
"s_" . to_string ( )
742
742
}
@@ -746,7 +746,7 @@ fn to_disambiguator(num: u64) -> String {
746
746
/// <https://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangle.seq-id>).
747
747
fn to_seq_id ( num : usize ) -> String {
748
748
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 ( )
750
750
} else {
751
751
"" . to_string ( )
752
752
}
You can’t perform that action at this time.
0 commit comments