about summary refs log tree commit diff
path: root/src/libextra/unicode.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-08-02 14:30:00 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-08-02 21:57:59 -0700
commit9457ebee550d8f77ffc9b895acddae8946ee631e (patch)
treeb7612d4ec3135ab61b5a02f68259943e88b87936 /src/libextra/unicode.rs
parent887c65697056b23be69b9b11f41637d07327626e (diff)
downloadrust-9457ebee550d8f77ffc9b895acddae8946ee631e.tar.gz
rust-9457ebee550d8f77ffc9b895acddae8946ee631e.zip
librustc: Disallow "unsafe" for external functions
Diffstat (limited to 'src/libextra/unicode.rs')
-rw-r--r--src/libextra/unicode.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/libextra/unicode.rs b/src/libextra/unicode.rs
index 9b502216fc1..4949ee79e5d 100644
--- a/src/libextra/unicode.rs
+++ b/src/libextra/unicode.rs
@@ -162,14 +162,13 @@ pub mod icu {
         #[link_name = "icuuc"]
         #[abi = "cdecl"]
         extern {
-            pub unsafe fn u_hasBinaryProperty(c: UChar32, which: UProperty)
-                                              -> UBool;
-            pub unsafe fn u_isdigit(c: UChar32) -> UBool;
-            pub unsafe fn u_islower(c: UChar32) -> UBool;
-            pub unsafe fn u_isspace(c: UChar32) -> UBool;
-            pub unsafe fn u_isupper(c: UChar32) -> UBool;
-            pub unsafe fn u_tolower(c: UChar32) -> UChar32;
-            pub unsafe fn u_toupper(c: UChar32) -> UChar32;
+            pub fn u_hasBinaryProperty(c: UChar32, which: UProperty) -> UBool;
+            pub fn u_isdigit(c: UChar32) -> UBool;
+            pub fn u_islower(c: UChar32) -> UBool;
+            pub fn u_isspace(c: UChar32) -> UBool;
+            pub fn u_isupper(c: UChar32) -> UBool;
+            pub fn u_tolower(c: UChar32) -> UChar32;
+            pub fn u_toupper(c: UChar32) -> UChar32;
         }
     }
 }