From 9ced4e16a61c6678bf021eb769852976ce0ff710 Mon Sep 17 00:00:00 2001 From: xFrednet Date: Thu, 15 Jul 2021 23:51:34 +0200 Subject: [PATCH] Added diagnostic items to structs and traits for Clippy --- collections/btree/map/entry.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/collections/btree/map/entry.rs b/collections/btree/map/entry.rs index 6b30d95..5fec8dc 100644 --- a/collections/btree/map/entry.rs +++ b/collections/btree/map/entry.rs @@ -14,6 +14,7 @@ use Entry::*; /// /// [`entry`]: BTreeMap::entry #[stable(feature = "rust1", since = "1.0.0")] +#[cfg_attr(not(test), rustc_diagnostic_item = "BTreeEntry")] pub enum Entry<'a, K: 'a, V: 'a> { /// A vacant entry. #[stable(feature = "rust1", since = "1.0.0")]