From 29d1252e4d2126318d7f622505ed76dd1e8e4edc Mon Sep 17 00:00:00 2001 From: kwantam Date: Tue, 14 Apr 2015 15:52:37 -0400 Subject: deprecate Unicode functions that will be moved to crates.io This patch 1. renames libunicode to librustc_unicode, 2. deprecates several pieces of libunicode (see below), and 3. removes references to deprecated functions from librustc_driver and libsyntax. This may change pretty-printed output from these modules in cases involving wide or combining characters used in filenames, identifiers, etc. The following functions are marked deprecated: 1. char.width() and str.width(): --> use unicode-width crate 2. str.graphemes() and str.grapheme_indices(): --> use unicode-segmentation crate 3. str.nfd_chars(), str.nfkd_chars(), str.nfc_chars(), str.nfkc_chars(), char.compose(), char.decompose_canonical(), char.decompose_compatible(), char.canonical_combining_class(): --> use unicode-normalization crate --- src/libstd/io/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/io') diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index 07b43b6c5db..e8d15a95b80 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -13,7 +13,7 @@ #![stable(feature = "rust1", since = "1.0.0")] use cmp; -use unicode::str as core_str; +use rustc_unicode::str as core_str; use error as std_error; use fmt; use iter::{self, Iterator, Extend}; -- cgit 1.4.1-3-g733a5