Closed
Description
Currently, for code like
let (x, y) = match Some((0, 1)) {
Some(it) => it,
None => todo!(),
};
The "Convert match to let-else" assist doesn't trigger, because it only works with identifier patterns, but here we have (x, y)
as the pattern. This is a pretty arbitrary limitation, and the assist should be able to turn it into:
let Some((x,y)) = Some((0, 1)) else { todo!() };