std: move str::as_buf into StrSlice
This commit is contained in:
parent
cfd89c4075
commit
9fdec67a67
6 changed files with 62 additions and 62 deletions
|
|
@ -56,7 +56,7 @@ pub fn fail_bounds_check(file: *c_char, line: size_t,
|
|||
index: size_t, len: size_t) {
|
||||
let msg = fmt!("index out of bounds: the len is %d but the index is %d",
|
||||
len as int, index as int);
|
||||
do str::as_buf(msg) |p, _len| {
|
||||
do msg.as_buf |p, _len| {
|
||||
fail_(p as *c_char, file, line);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue