1
Fork 0

Auto merge of #24428 - kwantam:deprecate_unicode_fns, r=alexcrichton

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
This commit is contained in:
bors 2015-04-18 07:09:22 +00:00
commit 7a5754b330
27 changed files with 114 additions and 57 deletions

View file

@ -48,7 +48,7 @@ extern crate rustc_back;
extern crate serialize;
extern crate syntax;
extern crate test as testing;
extern crate unicode;
extern crate rustc_unicode;
#[macro_use] extern crate log;
extern crate serialize as rustc_serialize; // used by deriving