Skip to content

improve resolve error messages #3027

Closed
Closed
@jesse99

Description

@jesse99
import model::{msg, deregister_msg, foobar, register_msg};
src/handlers/get_query.rs:5 import model::{msg, deregister_msg, foobar, register_msg};
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

above error points to the wrong location and doesn't indicate the actual problem (which is foobar).

import foobar::{msg, deregister_msg, register_msg};

src/handlers/get_query.rs:5:7: 5:51 error: unresolved name
src/handlers/get_query.rs:5 import foobar::{msg, deregister_msg, register_msg};
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

points to the right place, but does not say that that name is the problem (again foobar).

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions