about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorkwantam <kwantam@gmail.com>2014-07-11 17:23:45 -0400
committerkwantam <kwantam@gmail.com>2014-07-14 19:53:46 -0400
commitcf432b8f8f0d8822e654c1a40bf632f12fc97fbc (patch)
tree0e24b1aa04230015771d643dca83eb29f3a12e44 /src/libstd/rt
parentc066a1ee9f98297cf00fc9c760087770b1a8c1f6 (diff)
downloadrust-cf432b8f8f0d8822e654c1a40bf632f12fc97fbc.tar.gz
rust-cf432b8f8f0d8822e654c1a40bf632f12fc97fbc.zip
add Graphemes iterator; tidy unicode exports
- Graphemes and GraphemeIndices structs implement iterators over
  grapheme clusters analogous to the Chars and CharOffsets for chars in
  a string. Iterator and DoubleEndedIterator are available for both.

- tidied up the exports for libunicode. crate root exports are now moved
  into more appropriate module locations:
  - UnicodeStrSlice, Words, Graphemes, GraphemeIndices are in str module
  - UnicodeChar exported from char instead of crate root
  - canonical_combining_class is exported from str rather than crate root

Since libunicode's exports have changed, programs that previously relied
on the old export locations will need to change their `use` statements
to reflect the new ones. See above for more information on where the new
exports live.

closes #7043
[breaking-change]
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/backtrace.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/backtrace.rs b/src/libstd/rt/backtrace.rs
index 09922b5ad76..1594e3ba0a2 100644
--- a/src/libstd/rt/backtrace.rs
+++ b/src/libstd/rt/backtrace.rs
@@ -21,7 +21,7 @@ use os;
 use result::{Ok, Err};
 use str::StrSlice;
 use sync::atomics;
-use unicode::UnicodeChar;
+use unicode::char::UnicodeChar;
 
 pub use self::imp::write;