This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,7 @@ pub use self::convert::ParseCharError;
3434pub use self :: convert:: { from_digit, from_u32} ;
3535#[ stable( feature = "decode_utf16" , since = "1.9.0" ) ]
3636pub use self :: decode:: { decode_utf16, DecodeUtf16 , DecodeUtf16Error } ;
37-
38- // unstable re-exports
39- #[ unstable( feature = "unicode_version" , issue = "49726" ) ]
37+ #[ stable( feature = "unicode_version" , since = "1.45.0" ) ]
4038pub use crate :: unicode:: UNICODE_VERSION ;
4139
4240use crate :: fmt:: { self , Write } ;
Original file line number Diff line number Diff line change @@ -7,9 +7,14 @@ mod unicode_data;
77/// The version of [Unicode](http://www.unicode.org/) that the Unicode parts of
88/// `char` and `str` methods are based on.
99///
10+ /// New versions of Unicode are released regularly and subsequently all methods
11+ /// in the standard library depending on Unicode are updated. Therefore the
12+ /// behavior of some `char` and `str` methods and the value of this constant
13+ /// changes over time. This is *not* considered to be a breaking change.
14+ ///
1015/// The version numbering scheme is explained in
1116/// [Unicode 11.0 or later, Section 3.1 Versions of the Unicode Standard](https://www.unicode.org/versions/Unicode11.0.0/ch03.pdf#page=4).
12- #[ unstable ( feature = "unicode_version" , issue = "49726 " ) ]
17+ #[ stable ( feature = "unicode_version" , since = "1.45.0 " ) ]
1318pub const UNICODE_VERSION : ( u8 , u8 , u8 ) = unicode_data:: UNICODE_VERSION ;
1419
1520// For use in liballoc, not re-exported in libstd.
Original file line number Diff line number Diff line change 11// run-pass
22
3- #![ feature( unicode_version) ]
4-
5- /// Tests access to the internal Unicode Version type and value.
3+ /// Tests access to the Unicode version constant.
64pub fn main ( ) {
75 check ( std:: char:: UNICODE_VERSION ) ;
86}
You can’t perform that action at this time.
0 commit comments