cargo: move lints section after dependencies and features - #13715
Merged
Conversation
xtqqczze
force-pushed
the
cargo-order-lints
branch
from
August 2, 2026 09:37
ef8cbd4 to
a48c470
Compare
Reorder the cargo manifest so that the `[lints]` section is emitted after the `[ dependencies]` and `[features]` sections. This ordering better matches the structure commonly seen in Rust projects. No functional changes; this is purely a reordering of manifest sections.
xtqqczze
force-pushed
the
cargo-order-lints
branch
from
August 2, 2026 11:16
a48c470 to
eead0f8
Compare
cakebaker
reviewed
Aug 2, 2026
Comment on lines
+50
to
+51
| [lints] | ||
| workspace = true |
Contributor
There was a problem hiding this comment.
Is it intentional that the section is at the end of the file? In the other files the lints section is followed by the bin section.
Contributor
Author
There was a problem hiding this comment.
It's so it can follow [dev-dependencies]. I wanted to avoid too many changes in this PR, but the [[bin]] section should be reordered too.
cakebaker
reviewed
Aug 2, 2026
Comment on lines
+36
to
+37
| [lints] | ||
| workspace = true |
cakebaker
reviewed
Aug 2, 2026
Comment on lines
+35
to
+36
| [lints] | ||
| workspace = true |
Contributor
There was a problem hiding this comment.
Is it intentional that the lints section is not followed by the bin section?
cakebaker
reviewed
Aug 2, 2026
Comment on lines
+68
to
+69
| [lints] | ||
| workspace = true |
Contributor
There was a problem hiding this comment.
Is it intentional that the lints section is at the end of the file?
cakebaker
reviewed
Aug 2, 2026
Comment on lines
+37
to
+38
| [lints] | ||
| workspace = true |
|
GNU testsuite comparison: |
Contributor
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reorder the cargo manifest so that the
[lints]section is emitted after the[dependencies]and[features]sections.This ordering better matches the structure commonly seen in Rust projects.
No functional changes; this is purely a reordering of manifest sections.