about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorMarvin Löbel <loebel.marvin@gmail.com>2015-03-23 14:21:42 +0100
committerMarvin Löbel <loebel.marvin@gmail.com>2015-04-05 18:52:57 +0200
commitc04f22a667123b39f16452af6fa65c82b2f8c0a2 (patch)
tree6ccef6b45238353636227401ba0aeebb866bc8a7 /src/libcollections
parent91d1aa71f6c4317d91bc04a53213b04f13b09c44 (diff)
downloadrust-c04f22a667123b39f16452af6fa65c82b2f8c0a2.tar.gz
rust-c04f22a667123b39f16452af6fa65c82b2f8c0a2.zip
Refactored core::str::pattern to become a user-facing module and hide away
CharEq.
Diffstat (limited to 'src/libcollections')
-rw-r--r--src/libcollections/str.rs5
-rw-r--r--src/libcollections/string.rs2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs
index 7c562baa82b..28ba7369d52 100644
--- a/src/libcollections/str.rs
+++ b/src/libcollections/str.rs
@@ -58,6 +58,8 @@ use core::iter::{Iterator, Extend};
 use core::option::Option::{self, Some, None};
 use core::result::Result;
 use core::str as core_str;
+use core::str::pattern::Pattern;
+use core::str::pattern::{Searcher, ReverseSearcher, DoubleEndedSearcher};
 use unicode::str::{UnicodeStr, Utf16Encoder};
 
 use core::convert::AsRef;
@@ -78,8 +80,7 @@ pub use core::str::{MatchIndices, RMatchIndices};
 pub use core::str::{from_utf8, Chars, CharIndices, Bytes};
 pub use core::str::{from_utf8_unchecked, ParseBoolError};
 pub use unicode::str::{Words, Graphemes, GraphemeIndices};
-pub use core::str::Pattern;
-pub use core::str::{Searcher, ReverseSearcher, DoubleEndedSearcher, SearchStep};
+pub use core::str::pattern;
 
 /*
 Section: Creating a string
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs
index 7a772532091..178cf5fa3fe 100644
--- a/src/libcollections/string.rs
+++ b/src/libcollections/string.rs
@@ -24,7 +24,7 @@ use core::mem;
 use core::ops::{self, Deref, Add, Index};
 use core::ptr;
 use core::slice;
-use core::str::Pattern;
+use core::str::pattern::Pattern;
 use unicode::str as unicode_str;
 use unicode::str::Utf16Item;