about summary refs log tree commit diff
path: root/src/liballoc/tests
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-04-05 19:00:48 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-04-12 00:13:52 +0200
commit0d9afcd9b9f881545c8b722855f7e39361495d27 (patch)
tree79a181ea1964b4c054e97ee107b58f3b7488b8a7 /src/liballoc/tests
parent33358dc3c5c1f5d627544075de6ff37b9e328efa (diff)
downloadrust-0d9afcd9b9f881545c8b722855f7e39361495d27.tar.gz
rust-0d9afcd9b9f881545c8b722855f7e39361495d27.zip
Merge core::unicode::str into core::str
And the UnicodeStr trait into StrExt
Diffstat (limited to 'src/liballoc/tests')
-rw-r--r--src/liballoc/tests/str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/tests/str.rs b/src/liballoc/tests/str.rs
index 763dbe675b9..2df8ca63a3e 100644
--- a/src/liballoc/tests/str.rs
+++ b/src/liballoc/tests/str.rs
@@ -1204,7 +1204,7 @@ fn test_rev_split_char_iterator_no_trailing() {
 
 #[test]
 fn test_utf16_code_units() {
-    use core::unicode::str::Utf16Encoder;
+    use core::unicode::Utf16Encoder;
     assert_eq!(Utf16Encoder::new(vec!['é', '\u{1F4A9}'].into_iter()).collect::<Vec<u16>>(),
                [0xE9, 0xD83D, 0xDCA9])
 }