Skip to content

Commit

Permalink
fix: Warn on -Zlints
Browse files Browse the repository at this point in the history
  • Loading branch information
Muscraft committed Mar 23, 2024
1 parent 7ff7e34 commit 3cbcf54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cargo/core/features.rs
Expand Up @@ -850,7 +850,9 @@ const STABILIZED_CREDENTIAL_PROCESS: &str =
"Authentication with a credential provider is always available.";

const STABILIZED_REGISTRY_AUTH: &str =
"Authenticated registries are available if a credential provider is configured.";
"Authenticated registries are available if a credential provider fixs configured.";

const STABILIZED_LINTS: &str = "The `[lints]` table is now always available.";

fn deserialize_build_std<'de, D>(deserializer: D) -> Result<Option<Vec<String>>, D::Error>
where
Expand Down Expand Up @@ -1104,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
Expand Down Expand Up @@ -1139,7 +1142,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)?,
Expand Down

0 comments on commit 3cbcf54

Please sign in to comment.