Skip to content

Cargo will silently ignore invalid .cargo/config options #5890

@expenses

Description

@expenses

For example, cargo will silently ignore

rustflags = [...]

where it should be under a build subheading like:

[build]
rustflags = [...]

This is related to #4377, so perhaps it could be done at the same time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-configurationArea: cargo config files and env varsA-new-lintArea: new lintC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions