Add diagnostic item for std::iter::Iterator::enumerate
This commit is contained in:
@@ -754,6 +754,7 @@ symbols! {
|
|||||||
enable,
|
enable,
|
||||||
encode,
|
encode,
|
||||||
end,
|
end,
|
||||||
|
enumerate_method,
|
||||||
env,
|
env,
|
||||||
env_CFG_RELEASE: env!("CFG_RELEASE"),
|
env_CFG_RELEASE: env!("CFG_RELEASE"),
|
||||||
eprint_macro,
|
eprint_macro,
|
||||||
|
|||||||
@@ -974,6 +974,7 @@ pub trait Iterator {
|
|||||||
#[inline]
|
#[inline]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_do_not_const_check]
|
#[rustc_do_not_const_check]
|
||||||
|
#[cfg_attr(not(test), rustc_diagnostic_item = "enumerate_method")]
|
||||||
fn enumerate(self) -> Enumerate<Self>
|
fn enumerate(self) -> Enumerate<Self>
|
||||||
where
|
where
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
|
|||||||
Reference in New Issue
Block a user