Ignore bodies containing todo!() in clippy::if_same_then_else

This commit is contained in:
Dany Marcoux 2022-05-18 20:28:11 +02:00 committed by kyoto7250
parent 844c06a7c7
commit 9306e9a4df
2 changed files with 20 additions and 1 deletions

View file

@ -126,6 +126,9 @@ fn if_same_then_else() {
_ => 4,
};
}
// Issue #8836
if true { todo!() } else { todo!() }
}
// Issue #2423. This was causing an ICE.