Skip to content

Reference completions are a bit too aggressive #8357

Closed
@Lucretiel

Description

@Lucretiel

When I go to complete this function:

fn poll(&mut self, value: &mut Context);

future.poll(&mut  )
//               ^ The point is here

I see these completions:

Screen Shot 2021-04-05 at 3 41 17 PM

&mut context definitely seems like the one I want. However, when I select it, it doesn't seem to be aware that I already typed &mut, and inserts it again:

future.poll(&mut &mut context)

This completion should be sufficiently context-sensitive that it doesn't double up the &mut prefix.

Metadata

Metadata

Assignees

Labels

A-completionautocompletionC-bugCategory: bugS-actionableSomeone could pick this issue up and work on it right now

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions