Skip to content

Commit d68cb1f

Browse files
committed
revert changes to unicode stability
1 parent e7fe545 commit d68cb1f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

library/core/src/unicode/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
#![stable(feature = "unicode_version", since = "1.45.0")]
1+
#![unstable(feature = "unicode_internals", issue = "none")]
22
#![allow(missing_docs)]
33

4-
#[unstable(feature = "unicode_internals", issue = "none")]
54
pub(crate) mod printable;
6-
#[unstable(feature = "unicode_internals", issue = "none")]
75
mod unicode_data;
86

97
/// The version of [Unicode](https://www.unicode.org/) that the Unicode parts of
@@ -20,7 +18,6 @@ mod unicode_data;
2018
pub const UNICODE_VERSION: (u8, u8, u8) = unicode_data::UNICODE_VERSION;
2119

2220
// For use in liballoc, not re-exported in libstd.
23-
#[unstable(feature = "unicode_internals", issue = "none")]
2421
pub use unicode_data::{
2522
case_ignorable::lookup as Case_Ignorable, cased::lookup as Cased, conversions,
2623
};

library/core/tests/unicode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#[test]
22
pub fn version() {
3-
let (major, _minor, _update) = core::unicode::UNICODE_VERSION;
3+
let (major, _minor, _update) = core::char::UNICODE_VERSION;
44
assert!(major >= 10);
55
}

0 commit comments

Comments
 (0)