Skip to content

Commit 061cb19

Browse files
committed
---
yaml --- r: 10770 b: refs/heads/master c: eaa4bef h: refs/heads/master v: v3
1 parent 01e55a5 commit 061cb19

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 64ce563c054573bd12425e3253b54c1ee91ec84f
2+
refs/heads/master: eaa4befd6df4a26be0776d6aab0a7925232d76a7
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/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
}

trunk/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)