diff options
| author | Christopher B. Speir <chris@cbspeir.dev> | 2024-04-23 14:38:29 -0500 |
|---|---|---|
| committer | Christopher B. Speir <chris@cbspeir.dev> | 2024-04-23 16:50:10 -0500 |
| commit | bcc4469c2b4d75bd52f23d404e9c4b3561372b2a (patch) | |
| tree | f3ff36bacd14d3b660fdd95e08edcc98cf792e60 | |
| parent | 40dcd796d094b911b8b7b55a0519fb8e3d21680f (diff) | |
| download | rust-bcc4469c2b4d75bd52f23d404e9c4b3561372b2a.tar.gz rust-bcc4469c2b4d75bd52f23d404e9c4b3561372b2a.zip | |
Add diagnostic item for std::iter::Enumerate
| -rw-r--r-- | compiler/rustc_span/src/symbol.rs | 1 | ||||
| -rw-r--r-- | library/core/src/iter/adapters/enumerate.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index 8abf42e2c13..99591b5e144 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -192,6 +192,7 @@ symbols! { Duration, Encodable, Encoder, + Enumerate, Eq, Equal, Err, diff --git a/library/core/src/iter/adapters/enumerate.rs b/library/core/src/iter/adapters/enumerate.rs index ef46040f0a7..7adbabf69e4 100644 --- a/library/core/src/iter/adapters/enumerate.rs +++ b/library/core/src/iter/adapters/enumerate.rs @@ -15,6 +15,7 @@ use crate::ops::Try; #[derive(Clone, Debug)] #[must_use = "iterators are lazy and do nothing unless consumed"] #[stable(feature = "rust1", since = "1.0.0")] +#[cfg_attr(not(test), rustc_diagnostic_item = "Enumerate")] pub struct Enumerate<I> { iter: I, count: usize, |
