mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 05:26:23 +03:00
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:
@@ -237,6 +237,7 @@
|
||||
IntoFuture,
|
||||
IntoIterator,
|
||||
IntoIteratorItem,
|
||||
IoBufReader,
|
||||
IrTyKind,
|
||||
Item,
|
||||
ItemContext,
|
||||
@@ -306,6 +307,7 @@
|
||||
Some,
|
||||
Source,
|
||||
SpanCtxt,
|
||||
StdinLock,
|
||||
Str,
|
||||
String,
|
||||
Struct,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user