Skip to content

Commit ff7bd24

Browse files
committed
---
yaml --- r: 7790 b: refs/heads/snap-stage3 c: eaa4bef h: refs/heads/master v: v3
1 parent 1740808 commit ff7bd24

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,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 64ce563c054573bd12425e3253b54c1ee91ec84f
4+
refs/heads/snap-stage3: eaa4befd6df4a26be0776d6aab0a7925232d76a7
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/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/snap-stage3/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)