File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 768c9a43ab4c1fa53f21d1be30c72fde6b2367de
8
+ refs/heads/try2: 774c9aebb3ea7d1cf97bde948b6bdec4badec261
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -959,6 +959,14 @@ pub mod raw {
959
959
:: cast:: transmute ( v)
960
960
}
961
961
962
+ #[ lang="strdup_uniq" ]
963
+ #[ cfg( not( test) ) ]
964
+ #[ allow( missing_doc) ]
965
+ #[ inline]
966
+ pub unsafe fn strdup_uniq ( ptr : * u8 , len : uint ) -> ~str {
967
+ from_buf_len ( ptr, len)
968
+ }
969
+
962
970
/// Create a Rust string from a null-terminated C string
963
971
pub unsafe fn from_c_str ( buf : * libc:: c_char ) -> ~str {
964
972
let mut curr = buf;
Original file line number Diff line number Diff line change @@ -93,12 +93,6 @@ pub unsafe fn check_not_borrowed(a: *u8,
93
93
borrowck:: check_not_borrowed ( a, file, line)
94
94
}
95
95
96
- #[ lang="strdup_uniq" ]
97
- #[ inline]
98
- pub unsafe fn strdup_uniq ( ptr : * c_uchar , len : uint ) -> ~str {
99
- str:: raw:: from_buf_len ( ptr, len)
100
- }
101
-
102
96
#[ lang="annihilate" ]
103
97
pub unsafe fn annihilate ( ) {
104
98
:: cleanup:: annihilate ( )
You can’t perform that action at this time.
0 commit comments