]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #14613 : schmee/rust/utf16-iterator, r=huonw
authorbors <bors@rust-lang.org>
Mon, 30 Jun 2014 19:26:35 +0000 (19:26 +0000)
committerbors <bors@rust-lang.org>
Mon, 30 Jun 2014 19:26:35 +0000 (19:26 +0000)
Closes #14358.

~~The tests are not yet moved to `utf16_iter`, so this probably won't compile. I'm submitting this PR anyway so it can be reviewed and since it was mentioned in #14611.~~ EDIT: Tests now use `utf16_iter`.

This deprecates `.to_utf16`. `x.to_utf16()` should be replaced by either `x.utf16_iter().collect::<Vec<u16>>()` (the type annotation may be optional), or just `x.utf16_iter()` directly, if it can be used in an iterator context.

[breaking-change]

cc @huonw

1  2 
src/libcollections/str.rs
src/libcore/str.rs
src/libnative/io/process.rs
src/libstd/os.rs

Simple merge
Simple merge
Simple merge
Simple merge