Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Cargo.toml errors underline whole file #1581

@est31

Description

@est31

If you make any error in your Cargo.toml, the whole file is underlined in red:

Screenshot_20191028_165522

The error is of the form:

failed to parse manifest at `toml-rs/Cargo.toml`
Feature `preserve_order` includes `indexmaap` which is neither a dependency nor another feature

So clearly, there could be a span for the error, pointing to indexmaap. If we underlined only that it would be much nicer. But this is only an example, my request is about the general feature.

Yes, this will need changes in Cargo. But I still rather file the issue here because this is the tool that suffers most from it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions