Skip to content

Commit bc11cd5

Browse files
committed
Fix majority of valgrind-purity bugs observed in a rustc run (LLVM still appears to leak some of its own memory).
1 parent ab47645 commit bc11cd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ fn is_whitespace(s: str) -> bool {
186186
// way to implement those.
187187
fn byte_len(s: str) -> uint { ret rustrt::str_byte_len(s); }
188188

189-
fn buf(s: str) -> sbuf { ret rustrt::str_buf(s); }
189+
fn buf(s: &str) -> sbuf { ret rustrt::str_buf(s); }
190190

191-
fn bytes(s: str) -> vec[u8] { ret rustrt::str_vec(s); }
191+
fn bytes(s: &str) -> vec[u8] { ret rustrt::str_vec(s); }
192192

193193
fn bytes_ivec(s: str) -> u8[] {
194194
let sbuffer = buf(s);

0 commit comments

Comments
 (0)