mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
feat: filter already present enum variants in match arms
This commit is contained in:
parent
68fd1ce313
commit
794988c53b
8 changed files with 114 additions and 16 deletions
|
@ -38,7 +38,7 @@ pub(crate) fn render_struct_pat(
|
|||
let lookup = format_literal_lookup(name.as_str(), kind);
|
||||
let pat = render_pat(&ctx, pattern_ctx, &escaped_name, kind, &visible_fields, fields_omitted)?;
|
||||
|
||||
Some(build_completion(ctx, label, lookup, pat, strukt, false))
|
||||
Some(build_completion(ctx, label, lookup, pat, strukt, true))
|
||||
}
|
||||
|
||||
pub(crate) fn render_variant_pat(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue