mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Reimplement auto-ref completions for fields
This commit is contained in:
parent
46d22719fc
commit
8b078986dc
4 changed files with 35 additions and 12 deletions
|
@ -379,6 +379,7 @@ impl Completions {
|
|||
pub(crate) fn add_field(
|
||||
&mut self,
|
||||
ctx: &CompletionContext,
|
||||
dot_access: &DotAccess,
|
||||
receiver: Option<hir::Name>,
|
||||
field: hir::Field,
|
||||
ty: &hir::Type,
|
||||
|
@ -390,6 +391,7 @@ impl Completions {
|
|||
};
|
||||
let item = render_field(
|
||||
RenderContext::new(ctx).private_editable(is_private_editable),
|
||||
dot_access,
|
||||
receiver,
|
||||
field,
|
||||
ty,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue