about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-03-03 09:57:57 +0000
committerbors <bors@rust-lang.org>2017-03-03 09:57:57 +0000
commit1476105dd3ae92042800d7b8e8e860dd4a60c59b (patch)
treef0ea5b9d54071b007dc11b98dc186ee3d996dbd1 /src/test/incremental/thinlto
parent042728e7ff27e305130747c0d1f19d4a67587863 (diff)
parent24b39c51af8b7320fd825a66a239a497f20b0ece (diff)
downloadrust-1476105dd3ae92042800d7b8e8e860dd4a60c59b.tar.gz
rust-1476105dd3ae92042800d7b8e8e860dd4a60c59b.zip
Auto merge of #40189 - SimonSapin:one-width, r=alexcrichton
Reduce std_unicode’s public API

 * Only keep one copy of the `UTF8_CHAR_WIDTH` table instead of one of each of libcore and libstd_unicode.
* Move the `utf8_char_width` function to `core::str` under the `str_internals` unstable feature.
* Remove `std_unicode::str::is_utf16`. It was only accessible through the `#[unstable]` crate std_unicode. It has never been used in the compiler or standard library since 47e7a05 added it in 2012 “for OS API interop”. It can be replaced with a one-liner:

   ```rust
   fn is_utf16(slice: &[u16]) -> bool {
       std::char::decode_utf16(s).all(|r| r.is_ok())
   }
   ```
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions