Skip to content

Commit 281a0f3

Browse files
committed
feat: lints feature skeleton
1 parent a6c0d43 commit 281a0f3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/cargo/core/features.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ features! {
483483

484484
// Allow specifying rustflags directly in a profile
485485
(stable, workspace_inheritance, "1.64", "reference/unstable.html#workspace-inheritance"),
486+
487+
// Allow specifying rustflags directly in a profile
488+
(unstable, lints, "", "reference/unstable.html#lints"),
486489
}
487490

488491
pub struct Feature {

src/doc/src/reference/unstable.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Each new feature described below should explain how to use it.
9393
* [codegen-backend](#codegen-backend) --- Select the codegen backend used by rustc.
9494
* [per-package-target](#per-package-target) --- Sets the `--target` to use for each individual package.
9595
* [artifact dependencies](#artifact-dependencies) --- Allow build artifacts to be included into other build artifacts and build them for different targets.
96+
* [`[lints]`](#lints) --- Configure lint levels for various linter tools
9697
* Information and metadata
9798
* [Build-plan](#build-plan) --- Emits JSON information on which commands will be run.
9899
* [unit-graph](#unit-graph) --- Emits JSON for Cargo's internal graph structure.
@@ -1391,6 +1392,10 @@ Valid operations are the following:
13911392
* When the unstable feature is on, fetching/cloning a git repository is always a shallow fetch. This roughly equals to `git fetch --depth 1` everywhere.
13921393
* Even with the presence of `Cargo.lock` or specifying a commit `{ rev = "…" }`, gitoxide is still smart enough to shallow fetch without unshallowing the existing repository.
13931394

1395+
### `[lints]`
1396+
1397+
* Tracking Issue: [#12115](https://github.com/rust-lang/cargo/issues/12115)
1398+
13941399
## Stabilized and removed features
13951400

13961401
### Compile progress

0 commit comments

Comments
 (0)