Skip to content

Commit 4c25d81

Browse files
committed
Remove some uses of str_buf builtin. Issue #855
1 parent bb56a75 commit 4c25d81

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/lib/str.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
export unsafe_from_bytes;
22

33
native "rust" mod rustrt {
4-
type sbuf;
5-
fn str_buf(s: str) -> sbuf;
64
fn str_from_vec(b: &[mutable? u8]) -> str;
75
fn refcount<T>(s: str) -> uint;
86
}

src/test/run-pass/item-attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ mod test_native_items {
189189
type sbuf;
190190

191191
#[attr]
192-
fn str_buf(s: str) -> sbuf;
192+
fn unsupervise();
193193
}
194194
}
195195

src/test/run-pass/native2.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11

22

33
native "rust" mod rustrt {
4-
type sbuf;
5-
fn str_buf(s: str) -> sbuf;
4+
fn unsupervise();
65
}
76

87
native "rust" mod bar = "" { }

0 commit comments

Comments
 (0)