Skip to content

Commit

Permalink
Dedicated tracking issue for UnicodeVersion and UNICODE_VERSION.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Apr 11, 2018
1 parent 670e853 commit 1ca2905
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/libcore/char/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ pub use self::convert::CharTryFromError;
pub use self::decode::{decode_utf16, DecodeUtf16, DecodeUtf16Error};

// unstable re-exports
#[unstable(feature = "unicode", issue = "27783")]
pub use unicode::tables::{UNICODE_VERSION};
#[unstable(feature = "unicode", issue = "27783")]
#[unstable(feature = "unicode_version", issue = "49726")]
pub use unicode::tables::UNICODE_VERSION;
#[unstable(feature = "unicode_version", issue = "49726")]
pub use unicode::version::UnicodeVersion;
#[unstable(feature = "decode_utf8", issue = "33906")]
pub use self::decode::{decode_utf8, DecodeUtf8, InvalidSequence};
Expand Down
1 change: 1 addition & 0 deletions src/libcore/unicode/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use unicode::bool_trie::{BoolTrie, SmallBoolTrie};

/// The version of [Unicode](http://www.unicode.org/) that the Unicode parts of
/// `char` and `str` methods are based on.
#[unstable(feature = "unicode_version", issue = "49726")]
pub const UNICODE_VERSION: UnicodeVersion = UnicodeVersion {
major: 10,
minor: 0,
Expand Down
1 change: 1 addition & 0 deletions src/libcore/unicode/unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ def emit_norm_module(f, canon, compat, combine, norm_props):
rf.write("""
/// The version of [Unicode](http://www.unicode.org/) that the Unicode parts of
/// `char` and `str` methods are based on.
#[unstable(feature = "unicode_version", issue = "49726")]
pub const UNICODE_VERSION: UnicodeVersion = UnicodeVersion {
major: %s,
minor: %s,
Expand Down
1 change: 1 addition & 0 deletions src/libcore/unicode/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
///
/// See also: <http://www.unicode.org/versions/>
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
#[unstable(feature = "unicode_version", issue = "49726")]
pub struct UnicodeVersion {
/// Major version.
pub major: u32,
Expand Down
4 changes: 1 addition & 3 deletions src/test/run-pass/char_unicode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.


#![feature(unicode)]

#![feature(unicode_version)]

/// Tests access to the internal Unicode Version type and value.
pub fn main() {
Expand Down

0 comments on commit 1ca2905

Please sign in to comment.