Skip to content

Bad path suggestion (duplicating crate keyword) #115858

@GuillaumeGomez

Description

@GuillaumeGomez

Funny case where it adds crate another time to the resulting suggestion. I'll reserve this bug resolution for myself I think. :)

error[E0433]: failed to resolve: unresolved import
   --> src/unix/apple/system.rs:330:29
    |
330 |         self.users = crate::apple::users::get_users_list();
    |                             ^^^^^ unresolved import
    |
help: a similar path exists
    |
330 |         self.users = crate::crate::unix::apple::users::get_users_list();
    |                             ~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

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