diff options
| author | xFrednet <xFrednet@gmail.com> | 2021-07-15 23:51:34 +0200 |
|---|---|---|
| committer | xFrednet <xFrednet@gmail.com> | 2021-07-15 23:57:02 +0200 |
| commit | d38f2b0cc1c58392fe9736c468e8943fc6472096 (patch) | |
| tree | b757220379c0a19e87aadb465a0de2b305835fbd /library/core/src/iter | |
| parent | 1a900042abe4ee9626cd7274816816e9ca691a25 (diff) | |
Added diagnostic items to structs and traits for Clippy
Diffstat (limited to 'library/core/src/iter')
| -rw-r--r-- | library/core/src/iter/traits/double_ended.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/iter/traits/double_ended.rs b/library/core/src/iter/traits/double_ended.rs index 6d3ab788e5f..9a9cf200770 100644 --- a/library/core/src/iter/traits/double_ended.rs +++ b/library/core/src/iter/traits/double_ended.rs @@ -36,6 +36,7 @@ use crate::ops::{ControlFlow, Try}; /// assert_eq!(None, iter.next_back()); /// ``` #[stable(feature = "rust1", since = "1.0.0")] +#[cfg_attr(not(test), rustc_diagnostic_item = "DoubleEndedIterator")] pub trait DoubleEndedIterator: Iterator { /// Removes and returns an element from the end of the iterator. /// |
