Skip to content

Commit 30fafb9

Browse files
committed
---
yaml --- r: 15702 b: refs/heads/try c: 1c1af99 h: refs/heads/master v: v3
1 parent 8b2932a commit 30fafb9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 79ed1f2df4153a0c868d2ccf53d19dc6d1f08214
5+
refs/heads/try: 1c1af99052b3a2fb32ed0ce4b5f68b7671e6e45e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustc/back/link.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,14 @@ fn sanitize(s: str) -> str {
466466
}
467467
}
468468
}
469+
470+
// Underscore-qualify anything that didn't start as an ident.
471+
if result.len() > 0u &&
472+
result[0] != '_' as u8 &&
473+
! char::is_XID_start(result[0] as char) {
474+
ret "_" + result;
475+
}
476+
469477
ret result;
470478
}
471479

0 commit comments

Comments
 (0)