diff options
| author | xFrednet <xFrednet@gmail.com> | 2021-07-15 23:51:34 +0200 |
|---|---|---|
| committer | xFrednet <xFrednet@gmail.com> | 2021-07-15 23:57:02 +0200 |
| commit | d38f2b0cc1c58392fe9736c468e8943fc6472096 (patch) | |
| tree | b757220379c0a19e87aadb465a0de2b305835fbd /library/std/src/io | |
| parent | 1a900042abe4ee9626cd7274816816e9ca691a25 (diff) | |
| download | rust-d38f2b0cc1c58392fe9736c468e8943fc6472096.tar.gz rust-d38f2b0cc1c58392fe9736c468e8943fc6472096.zip | |
Added diagnostic items to structs and traits for Clippy
Diffstat (limited to 'library/std/src/io')
| -rw-r--r-- | library/std/src/io/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index 9daeee711ad..714e4cdea0f 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -514,6 +514,7 @@ pub(crate) fn default_read_exact<R: Read + ?Sized>(this: &mut R, mut buf: &mut [ /// [`File`]: crate::fs::File #[stable(feature = "rust1", since = "1.0.0")] #[doc(notable_trait)] +#[cfg_attr(not(test), rustc_diagnostic_item = "IoRead")] pub trait Read { /// Pull some bytes from this source into the specified buffer, returning /// how many bytes were read. @@ -1361,6 +1362,7 @@ impl Initializer { /// [`write_all`]: Write::write_all #[stable(feature = "rust1", since = "1.0.0")] #[doc(notable_trait)] +#[cfg_attr(not(test), rustc_diagnostic_item = "IoWrite")] pub trait Write { /// Write a buffer into this writer, returning how many bytes were written. /// |
