about summary refs log tree commit diff
path: root/src/libcore/unicode
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-04-05 17:56:46 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-04-12 00:13:52 +0200
commit939692409da499ff3d498eae782620435f16a981 (patch)
tree31a1c1a31d8db60179cbc2f4f9b3b4b568a9f333 /src/libcore/unicode
parent3613b0b52fec8cb7844149804efa76e6e904896c (diff)
downloadrust-939692409da499ff3d498eae782620435f16a981.tar.gz
rust-939692409da499ff3d498eae782620435f16a981.zip
Reexport from core::unicode::char in core::char rather than vice versa
Diffstat (limited to 'src/libcore/unicode')
-rw-r--r--src/libcore/unicode/char.rs21
-rw-r--r--src/libcore/unicode/mod.rs6
2 files changed, 4 insertions, 23 deletions
diff --git a/src/libcore/unicode/char.rs b/src/libcore/unicode/char.rs
index 0e8b09f621a..e75338aedf1 100644
--- a/src/libcore/unicode/char.rs
+++ b/src/libcore/unicode/char.rs
@@ -28,31 +28,12 @@
 
 #![stable(feature = "rust1", since = "1.0.0")]
 
+use char::*;
 use char::CharExt as C;
 use iter::FusedIterator;
 use fmt::{self, Write};
 use unicode::tables::{conversions, derived_property, general_category, property};
 
-// stable re-exports
-#[stable(feature = "rust1", since = "1.0.0")]
-pub use char::{MAX, from_digit, from_u32, from_u32_unchecked};
-#[stable(feature = "rust1", since = "1.0.0")]
-pub use char::{EscapeDebug, EscapeDefault, EscapeUnicode};
-#[stable(feature = "decode_utf16", since = "1.9.0")]
-pub use char::REPLACEMENT_CHARACTER;
-#[stable(feature = "char_from_str", since = "1.20.0")]
-pub use char::ParseCharError;
-
-// unstable re-exports
-#[stable(feature = "try_from", since = "1.26.0")]
-pub use char::CharTryFromError;
-#[unstable(feature = "decode_utf8", issue = "33906")]
-pub use char::{DecodeUtf8, decode_utf8};
-#[unstable(feature = "unicode", issue = "27783")]
-pub use unicode::tables::{UNICODE_VERSION};
-#[unstable(feature = "unicode", issue = "27783")]
-pub use unicode::version::UnicodeVersion;
-
 /// Returns an iterator that yields the lowercase equivalent of a `char`.
 ///
 /// This `struct` is created by the [`to_lowercase`] method on [`char`]. See
diff --git a/src/libcore/unicode/mod.rs b/src/libcore/unicode/mod.rs
index aaf8081799f..0ea1aa12146 100644
--- a/src/libcore/unicode/mod.rs
+++ b/src/libcore/unicode/mod.rs
@@ -12,11 +12,11 @@
 #![allow(missing_docs)]
 
 mod bool_trie;
-mod tables;
-mod version;
+pub(crate) mod tables;
+pub(crate) mod version;
 
 pub mod str;
-pub mod char;
+pub(crate) mod char;
 
 // For use in liballoc, not re-exported in libstd.
 pub mod derived_property {