]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #93347 - WaffleLapkin:better_char_decode_utf16_size_hint, r=dtolnay
authorMatthias Krüger <matthias.krueger@famsik.de>
Mon, 31 Jan 2022 05:58:31 +0000 (06:58 +0100)
committerGitHub <noreply@github.com>
Mon, 31 Jan 2022 05:58:31 +0000 (06:58 +0100)
commit76857fb3fb1bffb2a9b43735ad70620f0f4f7253
tree373b056863b2d6fdfeec0febdc1829e8be7dd7dd
parent7de90d5b6506f702c36ea20f46f92c3f8808668a
parent17cd2cd5927cf1075efbd0f4a859182eb102b920
Rollup merge of #93347 - WaffleLapkin:better_char_decode_utf16_size_hint, r=dtolnay

Make `char::DecodeUtf16::size_hist` more precise

New implementation takes into account contents of `self.buf` and rounds lower bound up instead of down.

Fixes #88762
Revival of #88763