From b34551457e8c325c2c881a038314ea3355c38954 Mon Sep 17 00:00:00 2001 From: Scott Schafer Date: Tue, 7 May 2024 19:06:37 -0600 Subject: [PATCH] chore: Add cargo-lints to unstable docs --- src/doc/src/reference/unstable.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/doc/src/reference/unstable.md b/src/doc/src/reference/unstable.md index d1ee3f9f09d..12d0816ee25 100644 --- a/src/doc/src/reference/unstable.md +++ b/src/doc/src/reference/unstable.md @@ -98,6 +98,7 @@ For the latest nightly, see the [nightly version] of this page. * [artifact dependencies](#artifact-dependencies) --- Allow build artifacts to be included into other build artifacts and build them for different targets. * [Edition 2024](#edition-2024) — Adds support for the 2024 Edition. * [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. * Information and metadata * [Build-plan](#build-plan) --- Emits JSON information on which commands will be run. * [unit-graph](#unit-graph) --- Emits JSON for Cargo's internal graph structure. @@ -1521,6 +1522,27 @@ cargo-features = ["open-namespaces"] # ... ``` +## `[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 +``` + # Stabilized and removed features ## Compile progress