Skip to content

Commit 1ca2905

Browse files
committed
Dedicated tracking issue for UnicodeVersion and UNICODE_VERSION.
1 parent 670e853 commit 1ca2905

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

src/libcore/char/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ pub use self::convert::CharTryFromError;
4646
pub use self::decode::{decode_utf16, DecodeUtf16, DecodeUtf16Error};
4747

4848
// unstable re-exports
49-
#[unstable(feature = "unicode", issue = "27783")]
50-
pub use unicode::tables::{UNICODE_VERSION};
51-
#[unstable(feature = "unicode", issue = "27783")]
49+
#[unstable(feature = "unicode_version", issue = "49726")]
50+
pub use unicode::tables::UNICODE_VERSION;
51+
#[unstable(feature = "unicode_version", issue = "49726")]
5252
pub use unicode::version::UnicodeVersion;
5353
#[unstable(feature = "decode_utf8", issue = "33906")]
5454
pub use self::decode::{decode_utf8, DecodeUtf8, InvalidSequence};

src/libcore/unicode/tables.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use unicode::bool_trie::{BoolTrie, SmallBoolTrie};
1717

1818
/// The version of [Unicode](http://www.unicode.org/) that the Unicode parts of
1919
/// `char` and `str` methods are based on.
20+
#[unstable(feature = "unicode_version", issue = "49726")]
2021
pub const UNICODE_VERSION: UnicodeVersion = UnicodeVersion {
2122
major: 10,
2223
minor: 0,

src/libcore/unicode/unicode.py

+1
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ def emit_norm_module(f, canon, compat, combine, norm_props):
471471
rf.write("""
472472
/// The version of [Unicode](http://www.unicode.org/) that the Unicode parts of
473473
/// `char` and `str` methods are based on.
474+
#[unstable(feature = "unicode_version", issue = "49726")]
474475
pub const UNICODE_VERSION: UnicodeVersion = UnicodeVersion {
475476
major: %s,
476477
minor: %s,

src/libcore/unicode/version.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
///
1313
/// See also: <http://www.unicode.org/versions/>
1414
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
15+
#[unstable(feature = "unicode_version", issue = "49726")]
1516
pub struct UnicodeVersion {
1617
/// Major version.
1718
pub major: u32,

src/test/run-pass/char_unicode.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
12-
#![feature(unicode)]
13-
11+
#![feature(unicode_version)]
1412

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

0 commit comments

Comments
 (0)