Skip to content

Commit 8d588ef

Browse files
committed
Return to the status quo in #8129
1 parent 51d65ca commit 8d588ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/ide_assists/src/handlers/fill_match_arms.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ pub(crate) fn fill_match_arms(acc: &mut Assists, ctx: &AssistContext) -> Option<
5757
Pat::OrPat(or_pat) => Either::Left(or_pat.pats()),
5858
_ => Either::Right(iter::once(pat)),
5959
})
60+
// Exclude top level wildcards so that they are expanded by this assist, retains status quo in #8129.
61+
.filter(|pat| !matches!(pat, Pat::WildcardPat(_)))
6062
.collect();
6163

6264
let module = ctx.sema.scope(expr.syntax()).module()?;

0 commit comments

Comments
 (0)