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

Commit ec42ff6

Browse files
committed
Use _ instead of .
1 parent 498311b commit ec42ff6

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
@@ -421,7 +421,7 @@ pub fn sanitize(result: &mut String, s: &str) -> bool {
421421

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

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

0 commit comments

Comments
 (0)