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.
This commit is contained in:
Jonathan Brouwer
2026-05-18 17:07:13 +02:00
committed by GitHub
3 changed files with 4 additions and 0 deletions
+2
View File
@@ -237,6 +237,7 @@
IntoFuture,
IntoIterator,
IntoIteratorItem,
IoBufReader,
IrTyKind,
Item,
ItemContext,
@@ -306,6 +307,7 @@
Some,
Source,
SpanCtxt,
StdinLock,
Str,
String,
Struct,
+1
View File
@@ -48,6 +48,7 @@
/// }
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[cfg_attr(not(test), rustc_diagnostic_item = "IoBufReader")]
pub struct BufReader<R: ?Sized> {
buf: Buffer,
inner: R,
+1
View File
@@ -285,6 +285,7 @@ pub struct Stdin {
/// ```
#[must_use = "if unused stdin will immediately unlock"]
#[stable(feature = "rust1", since = "1.0.0")]
#[cfg_attr(not(test), rustc_diagnostic_item = "StdinLock")]
pub struct StdinLock<'a> {
inner: MutexGuard<'a, BufReader<StdinRaw>>,
}