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

Commit 965b0a5

Browse files
committed
Use _ instead of .
1 parent ca4fdce commit 965b0a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_codegen_utils/symbol_names.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ pub fn sanitize(result: &mut String, s: &str) -> bool {
416416

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

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

0 commit comments

Comments
 (0)