]> git.lizzy.rs Git - rust.git/commit
Auto merge of #36377 - tormol:encode_utf, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 29 Sep 2016 18:20:02 +0000 (11:20 -0700)
committerGitHub <noreply@github.com>
Thu, 29 Sep 2016 18:20:02 +0000 (11:20 -0700)
commit289f3a4ca79916d6445b452fc19a18a1e42a879a
treeff6191e3e2f803fa54875567235f301ed5a762bf
parentff67da63ea4ca9b19e1e8ee97de002a64a2a0473
parent13a2dd96fe824cc5d61e94ed380db0114efdd014
Auto merge of #36377 - tormol:encode_utf, r=alexcrichton

Change encode_utf{8,16}() to write to a buffer and panic if it's too small

cc #27784

Should the "A buffer that's too small" examples be removed and replaced by tests?