about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-03-01 23:01:09 +0100
committerSimon Sapin <simon.sapin@exyr.org>2017-03-02 17:45:50 +0100
commit24b39c51af8b7320fd825a66a239a497f20b0ece (patch)
tree2d085a13de1541bb72d186096e7dc695bc21bda5 /src/test/incremental/thinlto
parent031f9b15df3df5da19b64a1f824463053898d021 (diff)
downloadrust-24b39c51af8b7320fd825a66a239a497f20b0ece.tar.gz
rust-24b39c51af8b7320fd825a66a239a497f20b0ece.zip
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 47e7a05a28c9662159af2d2e0f2b7efc13fa09cb 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.iter().cloned()).all(|r| r.is_ok())
}
```
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions