Skip to content

Span information for errors #7548

@est31

Description

@est31

It would be cool if Cargo could supply library users with span information when there is an error. RLS for example has to underline the entire file (using vscode) becuase it has no details, even though only one dependency could have an error.

Screenshot_20191028_165522

See also rust-lang/rls#1581

The span could also be printed for CLI users, but the feature can be lib-only as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cargo-apiArea: cargo-the-library API and internal code issuesA-diagnosticsArea: Error and warning messages generated by Cargo itself.C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-propose-closeStatus: A team member has nominated this for closing, pending further input from the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions