Skip to content

Commit f2c314b

Browse files
committed
Add diagnostic item for std::iter::Enumerate
1 parent ec896c3 commit f2c314b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/iter/adapters/enumerate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use crate::ops::Try;
1515
#[derive(Clone, Debug)]
1616
#[must_use = "iterators are lazy and do nothing unless consumed"]
1717
#[stable(feature = "rust1", since = "1.0.0")]
18+
#[cfg_attr(not(test), rustc_diagnostic_item = "Enumerate")]
1819
pub struct Enumerate<I> {
1920
iter: I,
2021
count: usize,

0 commit comments

Comments
 (0)