File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
branches/try/src/rustc/back Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 79ed1f2df4153a0c868d2ccf53d19dc6d1f08214
5
+ refs/heads/try: 1c1af99052b3a2fb32ed0ce4b5f68b7671e6e45e
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -466,6 +466,14 @@ fn sanitize(s: str) -> str {
466
466
}
467
467
}
468
468
}
469
+
470
+ // Underscore-qualify anything that didn't start as an ident.
471
+ if result. len( ) > 0 u &&
472
+ result[ 0 ] != '_' as u8 & &
473
+ ! char:: is_XID_start( result[ 0 ] as char) {
474
+ ret "_" + result;
475
+ }
476
+
469
477
ret result;
470
478
}
471
479
You can’t perform that action at this time.
0 commit comments