Replacing if-let with match can lead to match expression with non-exhaustive patterns #8690
Labels
A-assists
E-has-instructions
Issue has some instructions and pointers to code to get started
S-actionable
Someone could pick this issue up and work on it right now
I tried using "replace with match" on the following examples:
And got this as a result:
For both cases, I expected the pattern in the second match arm to be the wildcard pattern
_
. This seems to only happen if the pattern in the if-let expression is a nestedOption
orResult
.The text was updated successfully, but these errors were encountered: