Skip to content

Update TOML parser to pick up a bugfix - #2680

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:update-toml
Jun 12, 2016
Merged

Update TOML parser to pick up a bugfix#2680
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:update-toml

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

Cargo has previously accepted invalid TOML as valid, but this bugfix should fix
the problem. In order to prevent breaking all crates immediately toml-rs has a
compatibility mode which emulates the bug that was fixed. Cargo will issue a
warning if this compatibility is required to parse a crate.

@alexcrichton

Copy link
Copy Markdown
Member Author

r? @brson

@rust-highfive

Copy link
Copy Markdown

r? @wycats

(rust_highfive has picked a reviewer for you, use r? to override)

@bors

bors commented May 15, 2016

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #2691) made this pull request unmergeable. Please resolve the merge conflicts.

@bors

bors commented May 26, 2016

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #2743) made this pull request unmergeable. Please resolve the merge conflicts.

@brson

brson commented Jun 11, 2016

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Jun 11, 2016

Copy link
Copy Markdown
Contributor

📌 Commit c17f9f0 has been approved by brson

@bors

bors commented Jun 11, 2016

Copy link
Copy Markdown
Contributor

⌛ Testing commit c17f9f0 with merge a00992f...

@bors

bors commented Jun 11, 2016

Copy link
Copy Markdown
Contributor

💔 Test failed - cargo-win-msvc-64

@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: r=brson

@bors

bors commented Jun 12, 2016

Copy link
Copy Markdown
Contributor

📌 Commit 0fa6f27 has been approved by brson

@bors

bors commented Jun 12, 2016

Copy link
Copy Markdown
Contributor

⌛ Testing commit 0fa6f27 with merge 0de788d...

@bors

bors commented Jun 12, 2016

Copy link
Copy Markdown
Contributor

💔 Test failed - cargo-mac-32

Cargo has previously accepted invalid TOML as valid, but this bugfix should fix
the problem. In order to prevent breaking all crates immediately toml-rs has a
compatibility mode which emulates the bug that was fixed. Cargo will issue a
warning if this compatibility is required to parse a crate.
@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: r=brson

On Sun, Jun 12, 2016 at 1:02 PM, bors notifications@github.com wrote:

💔 Test failed - cargo-mac-32
http://buildbot.rust-lang.org/builders/cargo-mac-32/builds/1669


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#2680 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAD95MktiRVfuFGduXHiuBzEU2-OwoBSks5qK-c-gaJpZM4IdXSK
.

@bors

bors commented Jun 12, 2016

Copy link
Copy Markdown
Contributor

📌 Commit 2a1e16c has been approved by brson

@bors

bors commented Jun 12, 2016

Copy link
Copy Markdown
Contributor

⌛ Testing commit 2a1e16c with merge f8e75ec...

bors added a commit that referenced this pull request Jun 12, 2016
Update TOML parser to pick up a bugfix

Cargo has previously accepted invalid TOML as valid, but this bugfix should fix
the problem. In order to prevent breaking all crates immediately toml-rs has a
compatibility mode which emulates the bug that was fixed. Cargo will issue a
warning if this compatibility is required to parse a crate.
@bors

bors commented Jun 12, 2016

Copy link
Copy Markdown
Contributor

@bors
bors merged commit 2a1e16c into rust-lang:master Jun 12, 2016
@alexcrichton
alexcrichton deleted the update-toml branch June 14, 2016 14:35
epage added a commit to epage/cargo that referenced this pull request Sep 21, 2021
- `set_require_newline_after_table` was added in rust-lang#2680 back in 2016
- `set_allow_duplicate_after_longer_table` was added in rust-lang#6761 in 2019

Several years later, this PR is turning these warnings into errors.

The function and documentation was kept so we can add additional hacks
in the future, like if we switch TOML parsers.
bors added a commit that referenced this pull request Sep 21, 2021
Remove TOML incompatibility hacks

- `set_require_newline_after_table` was added in #2680 back in 2016
- `set_allow_duplicate_after_longer_table` was added in #6761 in 2019

Several years later, this PR is turning these warnings into errors.

The function and documentation was kept so we can add additional hacks
in the future, like if we switch TOML parsers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants