Skip to content

Commit 9a26bb1

Browse files
authored
Rollup merge of #136945 - samueltardieu:push-rsqlyknnvyqm, r=fmease
Add diagnostic item for `std::io::BufRead` This will be used in Clippy to detect unbuffered calls to `Read::bytes()`.
2 parents 89e0135 + f8930b4 commit 9a26bb1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: compiler/rustc_span/src/symbol.rs

+1
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ symbols! {
250250
Into,
251251
IntoFuture,
252252
IntoIterator,
253+
IoBufRead,
253254
IoLines,
254255
IoRead,
255256
IoSeek,

Diff for: library/std/src/io/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2249,6 +2249,7 @@ fn skip_until<R: BufRead + ?Sized>(r: &mut R, delim: u8) -> Result<usize> {
22492249
/// }
22502250
/// ```
22512251
#[stable(feature = "rust1", since = "1.0.0")]
2252+
#[cfg_attr(not(test), rustc_diagnostic_item = "IoBufRead")]
22522253
pub trait BufRead: Read {
22532254
/// Returns the contents of the internal buffer, filling it with more data
22542255
/// from the inner reader if it is empty.

0 commit comments

Comments
 (0)