Skip to content

Outdated --explain text for E0432 "An import was unresolved." #64668

Closed
@mattheww

Description

@mattheww

See E0432 for the current text.

It currently includes:
«
Paths in use statements are relative to the crate root. To import items relative to the current and parent modules, use the self:: and super:: prefixes, respectively.
»
The first sentence is untrue in Rust 2018, and so the advice about self:: is unhelpful.

It also says
«
Or, if you tried to use a module from an external crate, you may have missed the extern crate declaration (which is usually placed in the crate root):
»
which I think is unhelpful in Rust 2018.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-resolveArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions