Skip to content

Flyimport completion sometimes won't suggest std::iter::once #10112

@johnw42

Description

@johnw42

Using VS Code completion, I can't get anything to complete to std::iter::once. When there are no imports and the word before the point is onc or once, the suggestions I get are std::iter::once_with (twice!), FnOnce, and std::lazy::SyncOnceCell. I'm testing using a brand-new crate created with cargo init --lib.

rust-analyzer d15f646 2021-08-30 stable
code 1.58.0 2d23c42a936db1c7b3b06f918cde29561cc47cd6 x64
Extension version: 0.2.727

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-completionautocompletionS-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