Skip to content

Unresolved import for platform specific modules #6038

@GrayJack

Description

@GrayJack

I tried to search if it was reported but didn't found anything.

When importing the platform specific modules in std::os rust-analyzer gives me the following error:
unresolved import. Also those modules don't show up for auto-complete.

When the module is used outside use statement, there is no error, but the semantic token are of the type unresolvedReference.

RA version

Latest master branch

Example

use std::os::unix;

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-hardS-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions