Skip to content

Misleading resolve error with multiple imports #2914

Closed
@brson

Description

@brson

When there is a single import statement that imports multiple idents, and one of them is not found, then the resulting error points to the use site, not the import site.

import http_parser::{http_parser, http_parser_settings, http_parser_execute}; // http_parser_execute is not in the http_parser module

....

http_parser_execute(addr_of(self.parser));
./parser.rs:68:12: 68:31 error: unresolved name: http_parser_execute
./parser.rs:68             http_parser_execute(addr_of(self.parser),

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveArea: Name/path resolution done by `rustc_resolve` specifically

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions