mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fix: variants rendering in pattern path
This commit is contained in:
parent
ec78b6b08a
commit
622b516c74
9 changed files with 83 additions and 73 deletions
|
@ -115,6 +115,7 @@ pub(crate) fn complete_expr_path(
|
|||
};
|
||||
|
||||
if let Some(hir::Adt::Enum(e)) = ty.as_adt() {
|
||||
cov_mark::hit!(completes_variant_through_self);
|
||||
acc.add_enum_variants(ctx, path_ctx, e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue