diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index 623c34c6d2910..cba578cd3a6fa 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -3348,6 +3348,7 @@ impl SizeHint for &[u8] { /// [`split`]: BufRead::split #[stable(feature = "rust1", since = "1.0.0")] #[derive(Debug)] +#[cfg_attr(not(test), rustc_diagnostic_item = "IoSplit")] pub struct Split { buf: B, delim: u8,