diff --git a/src/cargo/core/features.rs b/src/cargo/core/features.rs index a78598e82e0..eac0208e9b6 100644 --- a/src/cargo/core/features.rs +++ b/src/cargo/core/features.rs @@ -762,7 +762,6 @@ unstable_cli_options!( git: Option = ("Enable support for shallow git fetch operations"), gitoxide: Option = ("Use gitoxide for the given git interactions, or all of them if no argument is given"), host_config: bool = ("Enable the `[host]` section in the .cargo/config.toml file"), - lints: bool = ("Pass `[lints]` to the linting tools"), minimal_versions: bool = ("Resolve minimal dependency versions instead of maximum"), msrv_policy: bool = ("Enable rust-version aware policy within cargo"), mtime_on_use: bool = ("Configure Cargo to update the mtime of used files"), @@ -853,6 +852,8 @@ const STABILIZED_CREDENTIAL_PROCESS: &str = const STABILIZED_REGISTRY_AUTH: &str = "Authenticated registries are available if a credential provider is configured."; +const STABILIZED_LINTS: &str = "The `[lints]` table is now always available."; + fn deserialize_build_std<'de, D>(deserializer: D) -> Result>, D::Error> where D: serde::Deserializer<'de>, @@ -1105,6 +1106,7 @@ impl CliUnstable { "terminal-width" => stabilized_warn(k, "1.68", STABILIZED_TERMINAL_WIDTH), "doctest-in-workspace" => stabilized_warn(k, "1.72", STABILIZED_DOCTEST_IN_WORKSPACE), "credential-process" => stabilized_warn(k, "1.74", STABILIZED_CREDENTIAL_PROCESS), + "lints" => stabilized_warn(k, "1.74", STABILIZED_LINTS), "registry-auth" => stabilized_warn(k, "1.74", STABILIZED_REGISTRY_AUTH), // Unstable features @@ -1141,7 +1143,6 @@ impl CliUnstable { )? } "host-config" => self.host_config = parse_empty(k, v)?, - "lints" => self.lints = parse_empty(k, v)?, "next-lockfile-bump" => self.next_lockfile_bump = parse_empty(k, v)?, "minimal-versions" => self.minimal_versions = parse_empty(k, v)?, "msrv-policy" => self.msrv_policy = parse_empty(k, v)?, diff --git a/tests/testsuite/cargo/z_help/stdout.term.svg b/tests/testsuite/cargo/z_help/stdout.term.svg index f500049ae58..a664709f163 100644 --- a/tests/testsuite/cargo/z_help/stdout.term.svg +++ b/tests/testsuite/cargo/z_help/stdout.term.svg @@ -1,4 +1,4 @@ - +