Skip to content

Commit c8079e9

Browse files
committedApr 29, 2024·
Add diagnostic item for std::iter::Iterator::enumerate
1 parent a8a1d3a commit c8079e9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎compiler/rustc_span/src/symbol.rs

+1
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,7 @@ symbols! {
754754
enable,
755755
encode,
756756
end,
757+
enumerate_method,
757758
env,
758759
env_CFG_RELEASE: env!("CFG_RELEASE"),
759760
eprint_macro,

‎library/core/src/iter/traits/iterator.rs

+1
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,7 @@ pub trait Iterator {
974974
#[inline]
975975
#[stable(feature = "rust1", since = "1.0.0")]
976976
#[rustc_do_not_const_check]
977+
#[cfg_attr(not(test), rustc_diagnostic_item = "enumerate_method")]
977978
fn enumerate(self) -> Enumerate<Self>
978979
where
979980
Self: Sized,

0 commit comments

Comments
 (0)
Please sign in to comment.