diff options
| author | Brian Anderson <banderson@mozilla.com> | 2015-01-22 18:22:03 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2015-01-23 13:28:40 -0800 |
| commit | cd6d9eab5d75584edfcae4ffdef8b0836db80c1e (patch) | |
| tree | fff2c174986eaab33f67390d0a114d508966fe68 /src/libunicode | |
| parent | f86bcc1543cb053363c5e6818a2ad44877ea8361 (diff) | |
| download | rust-cd6d9eab5d75584edfcae4ffdef8b0836db80c1e.tar.gz rust-cd6d9eab5d75584edfcae4ffdef8b0836db80c1e.zip | |
Set unstable feature names appropriately
* `core` - for the core crate * `hash` - hashing * `io` - io * `path` - path * `alloc` - alloc crate * `rand` - rand crate * `collections` - collections crate * `std_misc` - other parts of std * `test` - test crate * `rustc_private` - everything else
Diffstat (limited to 'src/libunicode')
| -rw-r--r-- | src/libunicode/lib.rs | 4 | ||||
| -rw-r--r-- | src/libunicode/u_char.rs | 36 |
2 files changed, 20 insertions, 20 deletions
diff --git a/src/libunicode/lib.rs b/src/libunicode/lib.rs index 4e642e8a5c0..6d64d3d3d35 100644 --- a/src/libunicode/lib.rs +++ b/src/libunicode/lib.rs @@ -21,7 +21,7 @@ //! (yet) aim to provide a full set of Unicode tables. #![crate_name = "unicode"] -#![unstable(feature = "unnamed_feature")] +#![unstable(feature = "unicode")] #![feature(staged_api)] #![staged_api] #![crate_type = "rlib"] @@ -31,8 +31,8 @@ html_playground_url = "http://play.rust-lang.org/")] #![no_std] #![feature(slicing_syntax)] -#![feature(unnamed_feature)] #![allow(unknown_features)] #![feature(int_uint)] +#![feature(core)] extern crate core; diff --git a/src/libunicode/u_char.rs b/src/libunicode/u_char.rs index 812a066cdfe..31007d8b5b3 100644 --- a/src/libunicode/u_char.rs +++ b/src/libunicode/u_char.rs @@ -34,7 +34,7 @@ pub trait CharExt { /// # Panics /// /// Panics if given a radix > 36. - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "pending integer conventions")] fn is_digit(self, radix: uint) -> bool; @@ -49,7 +49,7 @@ pub trait CharExt { /// # Panics /// /// Panics if given a radix outside the range [0..36]. - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "pending integer conventions")] fn to_digit(self, radix: uint) -> Option<uint>; @@ -92,7 +92,7 @@ pub trait CharExt { /// /// If the buffer is not large enough, nothing will be written into it /// and a `None` will be returned. - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "pending decision about Iterator/Writer/Reader")] fn encode_utf8(self, dst: &mut [u8]) -> Option<uint>; @@ -101,7 +101,7 @@ pub trait CharExt { /// /// If the buffer is not large enough, nothing will be written into it /// and a `None` will be returned. - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "pending decision about Iterator/Writer/Reader")] fn encode_utf16(self, dst: &mut [u16]) -> Option<uint>; @@ -116,7 +116,7 @@ pub trait CharExt { /// 'XID_Start' is a Unicode Derived Property specified in /// [UAX #31](http://unicode.org/reports/tr31/#NFKC_Modifications), /// mostly similar to ID_Start but modified for closure under NFKx. - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "mainly needed for compiler internals")] fn is_xid_start(self) -> bool; @@ -126,7 +126,7 @@ pub trait CharExt { /// 'XID_Continue' is a Unicode Derived Property specified in /// [UAX #31](http://unicode.org/reports/tr31/#NFKC_Modifications), /// mostly similar to 'ID_Continue' but modified for closure under NFKx. - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "mainly needed for compiler internals")] fn is_xid_continue(self) -> bool; @@ -177,7 +177,7 @@ pub trait CharExt { /// /// Returns the lowercase equivalent of the character, or the character /// itself if no conversion is possible. - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "pending case transformation decisions")] fn to_lowercase(self) -> char; @@ -201,7 +201,7 @@ pub trait CharExt { /// [`SpecialCasing`.txt`]: ftp://ftp.unicode.org/Public/UNIDATA/SpecialCasing.txt /// /// [2]: http://www.unicode.org/versions/Unicode4.0.0/ch03.pdf#G33992 - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "pending case transformation decisions")] fn to_uppercase(self) -> char; @@ -214,17 +214,17 @@ pub trait CharExt { /// [Unicode Standard Annex #11](http://www.unicode.org/reports/tr11/) /// recommends that these characters be treated as 1 column (i.e., /// `is_cjk` = `false`) if the context cannot be reliably determined. - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "needs expert opinion. is_cjk flag stands out as ugly")] fn width(self, is_cjk: bool) -> Option<uint>; } #[stable(feature = "grandfathered", since = "1.0.0")] impl CharExt for char { - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "pending integer conventions")] fn is_digit(self, radix: uint) -> bool { C::is_digit(self, radix) } - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "pending integer conventions")] fn to_digit(self, radix: uint) -> Option<uint> { C::to_digit(self, radix) } #[stable(feature = "grandfathered", since = "1.0.0")] @@ -235,10 +235,10 @@ impl CharExt for char { fn len_utf8(self) -> uint { C::len_utf8(self) } #[stable(feature = "grandfathered", since = "1.0.0")] fn len_utf16(self) -> uint { C::len_utf16(self) } - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "pending decision about Iterator/Writer/Reader")] fn encode_utf8(self, dst: &mut [u8]) -> Option<uint> { C::encode_utf8(self, dst) } - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "pending decision about Iterator/Writer/Reader")] fn encode_utf16(self, dst: &mut [u16]) -> Option<uint> { C::encode_utf16(self, dst) } @@ -251,11 +251,11 @@ impl CharExt for char { } } - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "mainly needed for compiler internals")] fn is_xid_start(self) -> bool { derived_property::XID_Start(self) } - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "mainly needed for compiler internals")] fn is_xid_continue(self) -> bool { derived_property::XID_Continue(self) } @@ -303,15 +303,15 @@ impl CharExt for char { } } - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "pending case transformation decisions")] fn to_lowercase(self) -> char { conversions::to_lower(self) } - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "pending case transformation decisions")] fn to_uppercase(self) -> char { conversions::to_upper(self) } - #[unstable(feature = "unnamed_feature", + #[unstable(feature = "unicode", reason = "needs expert opinion. is_cjk flag stands out as ugly")] fn width(self, is_cjk: bool) -> Option<uint> { charwidth::width(self, is_cjk) } } |
