rust-lang/rust — pull request #19042 by SimonSapin (2014-11-17 20:31:39+00:00)
Title: Make Utf16CodeUnits generic and give it a public constructor.

This allows encoding to UTF-16 something that is not in UTF-8, e.g. a `[char]` UTF-32 string.

This might help with servo/servo#4023