Add diagnostic item for std::iter::Enumerate

This commit is contained in:
Christopher B. Speir 2024-04-23 14:38:29 -05:00
parent 40dcd796d0
commit bcc4469c2b
2 changed files with 2 additions and 0 deletions

View File

@ -192,6 +192,7 @@
Duration, Duration,
Encodable, Encodable,
Encoder, Encoder,
Enumerate,
Eq, Eq,
Equal, Equal,
Err, Err,

View File

@ -15,6 +15,7 @@
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
#[must_use = "iterators are lazy and do nothing unless consumed"] #[must_use = "iterators are lazy and do nothing unless consumed"]
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
#[cfg_attr(not(test), rustc_diagnostic_item = "Enumerate")]
pub struct Enumerate<I> { pub struct Enumerate<I> {
iter: I, iter: I,
count: usize, count: usize,