Install new pub/priv/export rules as defaults, old rules accessible under #[legacy_exports];
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user