Add diagnostic item for std::iter::Enumerate · rust-lang/rust@bcc4469 (original) (raw)
File tree
2 files changed
lines changed
- library/core/src/iter/adapters
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -192,6 +192,7 @@ symbols! { | ||
192 | 192 | Duration, |
193 | 193 | Encodable, |
194 | 194 | Encoder, |
195 | +Enumerate, | |
195 | 196 | Eq, |
196 | 197 | Equal, |
197 | 198 | Err, |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -15,6 +15,7 @@ use crate::ops::Try; | ||
15 | 15 | #[derive(Clone, Debug)] |
16 | 16 | #[must_use = "iterators are lazy and do nothing unless consumed"] |
17 | 17 | #[stable(feature = "rust1", since = "1.0.0")] |
18 | +#[cfg_attr(not(test), rustc_diagnostic_item = "Enumerate")] | |
18 | 19 | pub struct Enumerate<I> { |
19 | 20 | iter: I, |
20 | 21 | count: usize, |