Skip to content

Commit 4b00598

Browse files
committed
---
yaml --- r: 7787 b: refs/heads/snap-stage3 c: 9750e83 h: refs/heads/master i: 7785: 48fd1a5 7783: 6aa3dd8 v: v3
1 parent 730d27e commit 4b00598

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
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: 2496dccae4622cb5fea9ae8f54adb0b83eadaf07
4+
refs/heads/snap-stage3: 9750e83a17a8f9f865eae757dcdccf374b1c82b7
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/comp/metadata/tydecode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn parse_ident_(st: @pstate, is_last: fn@(char) -> bool) ->
3939
ast::ident {
4040
let rslt = "";
4141
while !is_last(peek(st) as char) {
42-
rslt += str::unsafe_from_byte(next(st));
42+
rslt += str::from_byte(next(st));
4343
}
4444
ret rslt;
4545
}
@@ -226,7 +226,7 @@ fn parse_ty(st: @pstate, conv: conv_did) -> ty::t {
226226
while peek(st) as char != ']' {
227227
let name = "";
228228
while peek(st) as char != '=' {
229-
name += str::unsafe_from_byte(next(st));
229+
name += str::from_byte(next(st));
230230
}
231231
st.pos = st.pos + 1u;
232232
fields += [{ident: name, mt: parse_mt(st, conv)}];

branches/snap-stage3/src/libcore/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Function: unsafe_from_byte
146146
Converts a byte to a string. Does not verify that the byte is
147147
valid UTF-8.
148148
149-
FIXME: rename to 'from_byte'
149+
FIXME: REMOVE.
150150
*/
151151
fn unsafe_from_byte(u: u8) -> str { unsafe_from_bytes([u]) }
152152

branches/snap-stage3/src/libcore/uint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,12 @@ fn to_str(num: uint, radix: uint) -> str {
236236
if n == 0u { ret "0"; }
237237
let s: str = "";
238238
while n != 0u {
239-
s += str::unsafe_from_byte(digit(n % radix) as u8);
239+
s += str::from_byte(digit(n % radix) as u8);
240240
n /= radix;
241241
}
242242
let s1: str = "";
243243
let len: uint = str::byte_len(s);
244-
while len != 0u { len -= 1u; s1 += str::unsafe_from_byte(s[len]); }
244+
while len != 0u { len -= 1u; s1 += str::from_byte(s[len]); }
245245
ret s1;
246246
}
247247

0 commit comments

Comments
 (0)