Skip to content

Commit 52f497b

Browse files
committed
---
yaml --- r: 13776 b: refs/heads/try c: eaa4bef h: refs/heads/master v: v3
1 parent 575e160 commit 52f497b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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: 64ce563c054573bd12425e3253b54c1ee91ec84f
5+
refs/heads/try: eaa4befd6df4a26be0776d6aab0a7925232d76a7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ fn sanitize(s: str) -> str {
274274
c != ' ' as u8 && c != '\t' as u8 && c != ';' as u8
275275
{
276276
let v = [c];
277-
result += str::unsafe_from_bytes(v);
277+
result += str::from_bytes(v);
278278
}
279279
}
280280
}

branches/try/src/comp/util/ppaux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fn ty_to_str(cx: ctxt, typ: t) -> str {
122122
}
123123
ty_var(v) { "<T" + int::str(v) + ">" }
124124
ty_param(id, _) {
125-
"'" + str::unsafe_from_bytes([('a' as u8) + (id as u8)])
125+
"'" + str::from_bytes([('a' as u8) + (id as u8)])
126126
}
127127
_ { ty_to_short_str(cx, typ) }
128128
}

0 commit comments

Comments
 (0)