File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
branches/snap-stage3/src/comp Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 64ce563c054573bd12425e3253b54c1ee91ec84f
4
+ refs/heads/snap-stage3: eaa4befd6df4a26be0776d6aab0a7925232d76a7
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ fn sanitize(s: str) -> str {
274
274
c != ' ' as u8 && c != '\t' as u8 && c != ';' as u8
275
275
{
276
276
let v = [ c] ;
277
- result += str:: unsafe_from_bytes ( v) ;
277
+ result += str:: from_bytes ( v) ;
278
278
}
279
279
}
280
280
}
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ fn ty_to_str(cx: ctxt, typ: t) -> str {
122
122
}
123
123
ty_var ( v) { "<T" + int:: str ( v) + ">" }
124
124
ty_param ( id, _) {
125
- "'" + str:: unsafe_from_bytes ( [ ( 'a' as u8 ) + ( id as u8 ) ] )
125
+ "'" + str:: from_bytes ( [ ( 'a' as u8 ) + ( id as u8 ) ] )
126
126
}
127
127
_ { ty_to_short_str ( cx, typ) }
128
128
}
You can’t perform that action at this time.
0 commit comments