Add diagnostic item for std::iter::Iterator::enumerate
This commit is contained in:
parent
a8a1d3a771
commit
c8079e9390
2 changed files with 2 additions and 0 deletions
|
@ -754,6 +754,7 @@ symbols! {
|
|||
enable,
|
||||
encode,
|
||||
end,
|
||||
enumerate_method,
|
||||
env,
|
||||
env_CFG_RELEASE: env!("CFG_RELEASE"),
|
||||
eprint_macro,
|
||||
|
|
|
@ -974,6 +974,7 @@ pub trait Iterator {
|
|||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_do_not_const_check]
|
||||
#[cfg_attr(not(test), rustc_diagnostic_item = "enumerate_method")]
|
||||
fn enumerate(self) -> Enumerate<Self>
|
||||
where
|
||||
Self: Sized,
|
||||
|
|
Loading…
Add table
Reference in a new issue