{"push_id":771620670,"size":3,"distinct_size":0,"ref":"refs/heads/tmp","head":"fd302a95e1197e5f8401ecaa15f2cb0f81c830c3","before":"80b971a9b86cf56eab5a6f707107175d4bf2bbe1","commits":[{"sha":"c408b7863389aa2bdb253ffa363e693bcd02439f","author":{"email":"cca99684d893888d01a53127bf515d97ac84478d@exyr.org","name":"Simon Sapin"},"message":"Move the Borrow and BorrowMut traits to libcore.","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/c408b7863389aa2bdb253ffa363e693bcd02439f"},{"sha":"6174b8d726ed5764694e5404329d8b5e66517ed5","author":{"email":"cca99684d893888d01a53127bf515d97ac84478d@exyr.org","name":"Simon Sapin"},"message":"Refactor low-level UTF-16 decoding.\n\n* Rename `utf16_items` to `decode_utf16`. \"Items\" is meaningless.\n* Move it to `rustc_unicode::char`, exposed in `std::char`.\n* Generalize it to any `u16` iterable, not just `&[u16]`.\n* Make it yield `Result` instead of a custom `Utf16Item` enum that was isomorphic to `Result`. This enable using the `FromIterator for Result` impl.\n* Add a `REPLACEMENT_CHARACTER` constant.\n* Document how `result.unwrap_or(REPLACEMENT_CHARACTER)` replaces `Utf16Item::to_char_lossy`.","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/6174b8d726ed5764694e5404329d8b5e66517ed5"},{"sha":"fd302a95e1197e5f8401ecaa15f2cb0f81c830c3","author":{"email":"3a2c29237f73c7cf88424b80e427b1884f346b35@rust-lang.org","name":"bors"},"message":"Auto merge of #27808 - SimonSapin:utf16decoder, r=alexcrichton\n\n* Rename `Utf16Items` to `Utf16Decoder`. \"Items\" is meaningless.\r\n* Generalize it to any `u16` iterator, not just `[u16].iter()`\r\n* Make it yield `Result` instead of a custom `Utf16Item` enum that was isomorphic to `Result`. This enable using the `FromIterator for Result` impl.\r\n* Replace `Utf16Item::to_char_lossy` with a `Utf16Decoder::lossy` iterator adaptor.\r\n\r\nThis is a [breaking change], but only for users of the unstable `rustc_unicode` crate.\r\n\r\nI’d like this functionality to be stabilized and re-exported in `std` eventually, as the \"low-level equivalent\" of `String::from_utf16` and `String::from_utf16_lossy` like #27784 is the low-level equivalent of #27714.\r\n\r\nCC @aturon, @alexcrichton","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/fd302a95e1197e5f8401ecaa15f2cb0f81c830c3"}]}