Skip to content

Unknown keys in rust-toolchain.toml are silently ignored #2876

Open
@sfackler

Description

@sfackler

I was adding a rust-toolchain.toml file to a project, and ended up in a very confusing state where it was clearly being picked up (e.g. rustup show had the overridden by .../rust-toolchain.toml text) but my selected channel wasn't being respected. I eventually realized that I had used channnel = "1.56.0" rather than channel = "1.56.0"!

It seems like rustup should complain more loudly about this kind of misconfiguration. If actually forbidding unknown fields isn't desirable, it'd be great to at least warn about unused keys found when parsing the configuration using serde_ignored.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions