]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/redundant_pattern_matching_option.fixed
Auto merge of #8374 - Alexendoo:bless-revisions, r=camsteffen
[rust.git] / tests / ui / redundant_pattern_matching_option.fixed
index 997144772669be4fdabd45a0834deebf1c8c3388..a89845c1dd32b900c544ab169f6b91cc70640e74 100644 (file)
@@ -6,6 +6,7 @@
     unused_must_use,
     clippy::needless_bool,
     clippy::match_like_matches_macro,
+    clippy::equatable_if_let,
     clippy::if_same_then_else
 )]
 
@@ -79,3 +80,9 @@ const fn issue6067() {
 
     None::<()>.is_none();
 }
+
+#[allow(clippy::deref_addrof, dead_code, clippy::needless_borrow)]
+fn issue7921() {
+    if (&None::<()>).is_none() {}
+    if (&None::<()>).is_none() {}
+}