diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2017-03-01 23:01:09 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2017-03-02 17:45:50 +0100 |
| commit | 24b39c51af8b7320fd825a66a239a497f20b0ece (patch) | |
| tree | 2d085a13de1541bb72d186096e7dc695bc21bda5 /src/test/incremental/thinlto | |
| parent | 031f9b15df3df5da19b64a1f824463053898d021 (diff) | |
| download | rust-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
