Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove TOML incompatibility hacks #9932

Merged
merged 1 commit into from
Sep 21, 2021
Merged

Remove TOML incompatibility hacks #9932

merged 1 commit into from
Sep 21, 2021

Conversation

epage
Copy link
Contributor

@epage epage commented Sep 21, 2021

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.

- `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.
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 21, 2021
@alexcrichton
Copy link
Member

@bors: r+

For anyone watching this we recently applied a similar change where a very-old warning became an error. This caused issues and was later reverted with the conclusion that we wouldn't back things out unless transitive dependencies have been warning for some time.

The backcompat things removed in this commit are not in the same category, though, because it appears that these warnings go straight to the shell rather than to only the manifest's own warnings. This means that everyone should have been seeing these warnings for quite some time if they were affected by anything in their dependency graph. This I believe means that unlike #9686 this should be safe to land.

@bors
Copy link
Contributor

bors commented Sep 21, 2021

📌 Commit 2fdb710 has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 21, 2021
@bors
Copy link
Contributor

bors commented Sep 21, 2021

⌛ Testing commit 2fdb710 with merge 790b01f...

@bors
Copy link
Contributor

bors commented Sep 21, 2021

☀️ Test successful - checks-actions
Approved by: alexcrichton
Pushing 790b01f to master...

@bors bors merged commit 790b01f into rust-lang:master Sep 21, 2021
@epage epage deleted the hacks branch September 21, 2021 21:08
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 22, 2021
Update cargo

7 commits in 9a28ac83c9eb73e42ffafac552c0a55f00dbf40c..0121d66aa2ef5ffa9735f86c2b56f5fdc5a837a6
2021-09-18 15:42:28 -0500 to 2021-09-22 16:08:27 +0000
- Implement example completion for zsh (rust-lang/cargo#9939)
- Bump curl-sys dependency (rust-lang/cargo#9937)
- Add fetch smoke test. (rust-lang/cargo#9921)
- Differentiate tests in progress bar. (rust-lang/cargo#9934)
- Remove TOML incompatibility hacks (rust-lang/cargo#9932)
- Change diesel compatibility messages (rust-lang/cargo#9927)
- Remove broken link in contrib docs. (rust-lang/cargo#9928)
@ehuss ehuss added this to the 1.57.0 milestone Feb 6, 2022
epage added a commit to epage/toml_edit that referenced this pull request Sep 23, 2022
`toml_edit` won't be able to support these.  For example,
cargo moved away from these in rust-lang/cargo#9932 to prepare for
rust-lang/cargo#10086
epage added a commit to epage/toml_edit that referenced this pull request Sep 23, 2022
`toml_edit` won't be able to support these.  For example,
cargo moved away from these in rust-lang/cargo#9932 to prepare for
rust-lang/cargo#10086

This is prep for toml-rs#340
epage added a commit to epage/toml_edit that referenced this pull request Dec 14, 2022
`toml_edit` won't be able to support these.  For example,
cargo moved away from these in rust-lang/cargo#9932 to prepare for
rust-lang/cargo#10086

This is prep for toml-rs#340
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants