mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-28 22:34:17 +00:00
Fix visibility mods not being completed for field defs
This commit is contained in:
parent
519ac81b57
commit
c5dcc77b40
10 changed files with 85 additions and 15 deletions
|
@ -202,7 +202,7 @@ fn should_add_parens(ctx: &CompletionContext) -> bool {
|
|||
Some(PathCompletionCtx { kind: PathKind::Expr { .. }, has_call_parens: true, .. }) => {
|
||||
return false
|
||||
}
|
||||
Some(PathCompletionCtx { kind: PathKind::Use | PathKind::Type, .. }) => {
|
||||
Some(PathCompletionCtx { kind: PathKind::Use | PathKind::Type { .. }, .. }) => {
|
||||
cov_mark::hit!(no_parens_in_use_item);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue