Install new pub/priv/export rules as defaults, old rules accessible under #[legacy_exports];

This commit is contained in:
Graydon Hoare
2012-09-21 18:10:45 -07:00
parent 60443d4888
commit dffe188991
277 changed files with 1174 additions and 120 deletions

View File

@@ -2,6 +2,7 @@
#[forbid(deprecated_pattern)];
mod icu {
#[legacy_exports];
type UBool = u8;
type UProperty = int;
type UChar32 = char;
@@ -151,6 +152,7 @@ mod icu {
#[link_name = "icuuc"]
#[abi = "cdecl"]
extern mod libicu {
#[legacy_exports];
pure fn u_hasBinaryProperty(c: UChar32, which: UProperty) -> UBool;
pure fn u_isdigit(c: UChar32) -> UBool;
pure fn u_islower(c: UChar32) -> UBool;
@@ -209,6 +211,7 @@ pure fn is_upper(c: char) -> bool {
#[cfg(test)]
mod tests {
#[legacy_exports];
#[test]
fn test_is_digit() {