1
Fork 0

Dedicated tracking issue for UnicodeVersion and UNICODE_VERSION.

This commit is contained in:
Simon Sapin 2018-04-06 14:18:28 +02:00
parent 670e85339a
commit 1ca2905cda
5 changed files with 7 additions and 6 deletions

View file

@ -46,9 +46,9 @@ pub use self::convert::CharTryFromError;
pub use self::decode::{decode_utf16, DecodeUtf16, DecodeUtf16Error}; pub use self::decode::{decode_utf16, DecodeUtf16, DecodeUtf16Error};
// unstable re-exports // unstable re-exports
#[unstable(feature = "unicode", issue = "27783")] #[unstable(feature = "unicode_version", issue = "49726")]
pub use unicode::tables::{UNICODE_VERSION}; pub use unicode::tables::UNICODE_VERSION;
#[unstable(feature = "unicode", issue = "27783")] #[unstable(feature = "unicode_version", issue = "49726")]
pub use unicode::version::UnicodeVersion; pub use unicode::version::UnicodeVersion;
#[unstable(feature = "decode_utf8", issue = "33906")] #[unstable(feature = "decode_utf8", issue = "33906")]
pub use self::decode::{decode_utf8, DecodeUtf8, InvalidSequence}; pub use self::decode::{decode_utf8, DecodeUtf8, InvalidSequence};

View file

@ -17,6 +17,7 @@ use unicode::bool_trie::{BoolTrie, SmallBoolTrie};
/// The version of [Unicode](http://www.unicode.org/) that the Unicode parts of /// The version of [Unicode](http://www.unicode.org/) that the Unicode parts of
/// `char` and `str` methods are based on. /// `char` and `str` methods are based on.
#[unstable(feature = "unicode_version", issue = "49726")]
pub const UNICODE_VERSION: UnicodeVersion = UnicodeVersion { pub const UNICODE_VERSION: UnicodeVersion = UnicodeVersion {
major: 10, major: 10,
minor: 0, minor: 0,

View file

@ -471,6 +471,7 @@ if __name__ == "__main__":
rf.write(""" rf.write("""
/// The version of [Unicode](http://www.unicode.org/) that the Unicode parts of /// The version of [Unicode](http://www.unicode.org/) that the Unicode parts of
/// `char` and `str` methods are based on. /// `char` and `str` methods are based on.
#[unstable(feature = "unicode_version", issue = "49726")]
pub const UNICODE_VERSION: UnicodeVersion = UnicodeVersion { pub const UNICODE_VERSION: UnicodeVersion = UnicodeVersion {
major: %s, major: %s,
minor: %s, minor: %s,

View file

@ -12,6 +12,7 @@
/// ///
/// See also: <http://www.unicode.org/versions/> /// See also: <http://www.unicode.org/versions/>
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)] #[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
#[unstable(feature = "unicode_version", issue = "49726")]
pub struct UnicodeVersion { pub struct UnicodeVersion {
/// Major version. /// Major version.
pub major: u32, pub major: u32,

View file

@ -8,9 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(unicode_version)]
#![feature(unicode)]
/// Tests access to the internal Unicode Version type and value. /// Tests access to the internal Unicode Version type and value.
pub fn main() { pub fn main() {