]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #85815 - YuhanLiin:buf-read-data-left, r=m-ou-se
authorbors <bors@rust-lang.org>
Fri, 18 Jun 2021 20:11:51 +0000 (20:11 +0000)
committerbors <bors@rust-lang.org>
Fri, 18 Jun 2021 20:11:51 +0000 (20:11 +0000)
Add has_data_left() to BufRead

This is a continuation of #40747 and also addresses #40745. The problem with the previous PR was that it had "eof" in its method name. This PR uses a more descriptive method name, but I'm open to changing it.

1  2 
library/std/src/io/mod.rs
library/std/src/io/tests.rs

Simple merge
Simple merge