Skip to content
This repository has been archived by the owner on Feb 9, 2020. It is now read-only.

Commit

Permalink
Use _ instead of .
Browse files Browse the repository at this point in the history
  • Loading branch information
termoshtt committed Aug 10, 2018
1 parent 498311b commit ec42ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_codegen_utils/symbol_names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ pub fn sanitize(result: &mut String, s: &str) -> bool {

// '.' doesn't occur in types and functions, so reuse it
// for ':' and '-'
'-' | ':' => result.push('.'),
'-' | ':' => result.push('_'),

// These are legal symbols
'a'...'z' | 'A'...'Z' | '0'...'9' | '_' | '.' | '$' => result.push(c),
Expand Down

0 comments on commit ec42ff6

Please sign in to comment.