-
-
Notifications
You must be signed in to change notification settings - Fork 3k
feat(diag): Stabilize cargo-lints #17298
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
Open
epage
wants to merge
4
commits into
rust-lang:master
Choose a base branch
from
epage:stable-lints
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
|
weihanglo marked this conversation as resolved.
|
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -114,7 +114,6 @@ Each new feature described below should explain how to use it. | |
| * [per-package-target](#per-package-target) --- Sets the `--target` to use for each individual package. | ||
| * [artifact dependencies](#artifact-dependencies) --- Allow build artifacts to be included into other build artifacts and build them for different targets. | ||
| * [Profile `trim-paths` option](#profile-trim-paths-option) --- Control the sanitization of file paths in build outputs. | ||
| * [`[lints.cargo]`](#lintscargo) --- Allows configuring lints for Cargo. | ||
| * [path bases](#path-bases) --- Named base directories for path dependencies. | ||
| * [`unstable-editions`](#unstable-editions) --- Allows use of editions that are not yet stable. | ||
| * Information and metadata | ||
|
|
@@ -1758,6 +1757,7 @@ panic = "immediate-abort" | |
|
|
||
| Use fine grain locking instead of locking the entire build cache. | ||
|
|
||
| <<<<<<< HEAD | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. merge conflict leftover |
||
| ## `[lints.cargo]` | ||
|
|
||
| * Tracking Issue: [#12235](https://github.com/rust-lang/cargo/issues/12235) | ||
|
|
@@ -1779,6 +1779,34 @@ implicit-features = "warn" | |
| workspace = true | ||
| ``` | ||
|
|
||
| ||||||| parent of a49194588 (feat(diag): Stabilize cargo-lints) | ||
| Note: Fine grain locking implicitly enables [build-dir-new-layout](#build-dir-new-layout) as fine grain locking builds on that directory reoganization. | ||
|
|
||
| ## `[lints.cargo]` | ||
|
|
||
| * Tracking Issue: [#12235](https://github.com/rust-lang/cargo/issues/12235) | ||
|
|
||
| A new `lints` tool table for `cargo` that can be used to configure lints emitted | ||
| by `cargo` itself when `-Zcargo-lints` is used | ||
| ```toml | ||
| [lints.cargo] | ||
| implicit-features = "warn" | ||
| ``` | ||
|
|
||
| This will work with | ||
| [RFC 2906 `workspace-deduplicate`](https://rust-lang.github.io/rfcs/2906-cargo-workspace-deduplicate.html): | ||
| ```toml | ||
| [workspace.lints.cargo] | ||
| implicit-features = "warn" | ||
|
|
||
| [lints] | ||
| workspace = true | ||
| ``` | ||
|
|
||
| ======= | ||
| Note: Fine grain locking implicitly enables [build-dir-new-layout](#build-dir-new-layout) as fine grain locking builds on that directory reoganization. | ||
|
|
||
| >>>>>>> a49194588 (feat(diag): Stabilize cargo-lints) | ||
|
Comment on lines
+1806
to
+1809
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also here |
||
| ## Path Bases | ||
|
|
||
| * Tracking Issue: [#14355](https://github.com/rust-lang/cargo/issues/14355) | ||
|
|
@@ -2482,3 +2510,9 @@ See <https://github.com/rust-lang/cargo/pull/17333> fopr the reason for its remo | |
| ## build-dir-new-layout | ||
|
|
||
| The new build-dir filesystem layout was stabilized in the 1.100.0 release. | ||
|
|
||
| ## `[lints.cargo]` | ||
|
|
||
| Cargo's linting system and the `[lints.cargo]` table have been stabilized in Rust 1.100. | ||
| See the [lints chapter](lints.md) and [the lints section](manifest.md#the-lints-section) | ||
| for information about configuring Cargo lints. | ||
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just thought about this: Do we dogfood this yet? Maybe before stabilization we can do it in rust-lang/cargo and rust-lang/rust and get an sense of how it looks like in real world.
Not a blocker btw
View changes since the review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tried it out a couple times on Cargo. I have not on rust-lang/rust.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tried in rustc
cargo::manual_readmecargo::non_kebab_case_bins#![expect(unused_crate_dependencies)]being unfulfilled.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the info!
Should we configure our CI to adopt that?