about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJane Losare-Lusby <jlusby@yaah.dev>2022-04-29 22:35:11 +0000
committerJane Losare-Lusby <jlusby@yaah.dev>2022-07-08 21:18:15 +0000
commitd68cb1f9a3b7c066332d9f86f2a6884badce6e4b (patch)
tree873b4d6e1826f818351e68fc3b1917d00b15694f
parente7fe5456c53a8cc620a10f6284c366d6de0b7df0 (diff)
downloadrust-d68cb1f9a3b7c066332d9f86f2a6884badce6e4b.tar.gz
rust-d68cb1f9a3b7c066332d9f86f2a6884badce6e4b.zip
revert changes to unicode stability
-rw-r--r--library/core/src/unicode/mod.rs5
-rw-r--r--library/core/tests/unicode.rs2
2 files changed, 2 insertions, 5 deletions
diff --git a/library/core/src/unicode/mod.rs b/library/core/src/unicode/mod.rs
index e8b888c9507..72fa059b787 100644
--- a/library/core/src/unicode/mod.rs
+++ b/library/core/src/unicode/mod.rs
@@ -1,9 +1,7 @@
-#![stable(feature = "unicode_version", since = "1.45.0")]
+#![unstable(feature = "unicode_internals", issue = "none")]
 #![allow(missing_docs)]
 
-#[unstable(feature = "unicode_internals", issue = "none")]
 pub(crate) mod printable;
-#[unstable(feature = "unicode_internals", issue = "none")]
 mod unicode_data;
 
 /// The version of [Unicode](https://www.unicode.org/) that the Unicode parts of
@@ -20,7 +18,6 @@ mod unicode_data;
 pub const UNICODE_VERSION: (u8, u8, u8) = unicode_data::UNICODE_VERSION;
 
 // For use in liballoc, not re-exported in libstd.
-#[unstable(feature = "unicode_internals", issue = "none")]
 pub use unicode_data::{
     case_ignorable::lookup as Case_Ignorable, cased::lookup as Cased, conversions,
 };
diff --git a/library/core/tests/unicode.rs b/library/core/tests/unicode.rs
index c28ea859115..bbace0ef66c 100644
--- a/library/core/tests/unicode.rs
+++ b/library/core/tests/unicode.rs
@@ -1,5 +1,5 @@
 #[test]
 pub fn version() {
-    let (major, _minor, _update) = core::unicode::UNICODE_VERSION;
+    let (major, _minor, _update) = core::char::UNICODE_VERSION;
     assert!(major >= 10);
 }