about summary refs log tree commit diff
path: root/tests/ui
diff options
context:
space:
mode:
authorDany Marcoux <dmarcoux@posteo.de>2022-05-18 20:28:11 +0200
committerkyoto7250 <50972773+kyoto7250@users.noreply.github.com>2022-06-16 00:36:56 +0900
commit9306e9a4df2e6f8ed577fff3c82006c532ca51d2 (patch)
tree6f31e94734c3fa6937e9c19bb36f44e0182ad384 /tests/ui
parent844c06a7c7c01c6d0f6fc36e34eb5d630a8d1380 (diff)
downloadrust-9306e9a4df2e6f8ed577fff3c82006c532ca51d2.tar.gz
rust-9306e9a4df2e6f8ed577fff3c82006c532ca51d2.zip
Ignore bodies containing `todo!()` in `clippy::if_same_then_else`
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/if_same_then_else.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/if_same_then_else.rs b/tests/ui/if_same_then_else.rs
index ef956745500..767185c207b 100644
--- a/tests/ui/if_same_then_else.rs
+++ b/tests/ui/if_same_then_else.rs
@@ -126,6 +126,9 @@ fn if_same_then_else() {
             _ => 4,
         };
     }
+
+    // Issue #8836
+    if true { todo!() } else { todo!() }
 }
 
 // Issue #2423. This was causing an ICE.