mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
3d84b4be3d
This deprecates `.to_utf16`. `x.to_utf16()` should be replaced by either `x.utf16_units().collect::<Vec<u16>>()` (the type annotation may be optional), or just `x.utf16_units()` directly, if it can be used in an iterator context. Closes #14358 [breaking-change]