Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Duplicate table not detected. #279

Closed
ehuss opened this issue Jan 5, 2019 · 1 comment · Fixed by #280
Closed

Duplicate table not detected. #279

ehuss opened this issue Jan 5, 2019 · 1 comment · Fixed by #280

Comments

@ehuss
Copy link
Collaborator

ehuss commented Jan 5, 2019

The following TOML is accepted, but it should be rejected due to the duplicate table.

[dependencies.openssl-sys]
version = "0.5.2"

[dependencies]
libc = "0.1"

[dependencies]
bitflags = "0.1.1"

Discovered in these 3 Cargo.toml manifests on crates.io:

I don't think I understand the cur_parent dance in MapVisitor well enough to fix this.

alexcrichton added a commit that referenced this issue Jan 7, 2019
This commit fixes #279 where a case of duplicate table headers slipped
through the cracks. This also adds an option to disable this new
validation to allow Cargo to preserve backwards compatibility.
@alexcrichton
Copy link
Collaborator

I'm not sure I understand the dance well enough either, but I managed to cobble together #280!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants