Skip to content

Commit 4cce353

Browse files
Rollup merge of #156697 - JaafarTanoukhi:iobufreader-stdinlock-diag-items, r=mejrs
Add diagnostic items for IoBufReader and StdinLock Added two new diagnostic items for IoBufReader and StdinLock.
2 parents 1056a02 + 7905c8f commit 4cce353

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

compiler/rustc_span/src/symbol.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ symbols! {
237237
IntoFuture,
238238
IntoIterator,
239239
IntoIteratorItem,
240+
IoBufReader,
240241
IrTyKind,
241242
Item,
242243
ItemContext,
@@ -306,6 +307,7 @@ symbols! {
306307
Some,
307308
Source,
308309
SpanCtxt,
310+
StdinLock,
309311
Str,
310312
String,
311313
Struct,

library/std/src/io/buffered/bufreader.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ use crate::io::{
4848
/// }
4949
/// ```
5050
#[stable(feature = "rust1", since = "1.0.0")]
51+
#[cfg_attr(not(test), rustc_diagnostic_item = "IoBufReader")]
5152
pub struct BufReader<R: ?Sized> {
5253
buf: Buffer,
5354
inner: R,

library/std/src/io/stdio.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ pub struct Stdin {
285285
/// ```
286286
#[must_use = "if unused stdin will immediately unlock"]
287287
#[stable(feature = "rust1", since = "1.0.0")]
288+
#[cfg_attr(not(test), rustc_diagnostic_item = "StdinLock")]
288289
pub struct StdinLock<'a> {
289290
inner: MutexGuard<'a, BufReader<StdinRaw>>,
290291
}

0 commit comments

Comments
 (0)