@@ -725,7 +725,6 @@ unstable_cli_options!(
725725 panic_abort_tests: bool = ( "Enable support to run tests with -Cpanic=abort" ) ,
726726 profile_rustflags: bool = ( "Enable the `rustflags` option in profiles in .cargo/config.toml file" ) ,
727727 host_config: bool = ( "Enable the [host] section in the .cargo/config.toml file" ) ,
728- sparse_registry: bool = ( "Use the sparse protocol when accessing crates.io" ) ,
729728 registry_auth: bool = ( "Authentication for alternative registries, and generate registry authentication tokens using asymmetric cryptography" ) ,
730729 target_applies_to_host: bool = ( "Enable the `target-applies-to-host` key in the .cargo/config.toml file" ) ,
731730 rustdoc_map: bool = ( "Allow passing external documentation mappings to rustdoc" ) ,
@@ -795,10 +794,7 @@ const STABILISED_MULTITARGET: &str = "Multiple `--target` options are now always
795794const STABILIZED_TERMINAL_WIDTH : & str =
796795 "The -Zterminal-width option is now always enabled for terminal output." ;
797796
798- const STABILISED_SPARSE_REGISTRY : & str = "This flag currently still sets the default protocol \
799- to `sparse` when accessing crates.io. However, this will be removed in the future. \n \
800- The stable equivalent is to set the config value `registries.crates-io.protocol = 'sparse'`\n \
801- or environment variable `CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse`";
797+ const STABILISED_SPARSE_REGISTRY : & str = "The sparse protocol is now the default for crates.io" ;
802798
803799fn deserialize_build_std < ' de , D > ( deserializer : D ) -> Result < Option < Vec < String > > , D :: Error >
804800where
@@ -1079,12 +1075,7 @@ impl CliUnstable {
10791075 "multitarget" => stabilized_warn ( k, "1.64" , STABILISED_MULTITARGET ) ,
10801076 "rustdoc-map" => self . rustdoc_map = parse_empty ( k, v) ?,
10811077 "terminal-width" => stabilized_warn ( k, "1.68" , STABILIZED_TERMINAL_WIDTH ) ,
1082- "sparse-registry" => {
1083- // Once sparse-registry becomes the default for crates.io, `sparse_registry` should
1084- // be removed entirely from `CliUnstable`.
1085- stabilized_warn ( k, "1.68" , STABILISED_SPARSE_REGISTRY ) ;
1086- self . sparse_registry = parse_empty ( k, v) ?;
1087- }
1078+ "sparse-registry" => stabilized_warn ( k, "1.68" , STABILISED_SPARSE_REGISTRY ) ,
10881079 "registry-auth" => self . registry_auth = parse_empty ( k, v) ?,
10891080 "namespaced-features" => stabilized_warn ( k, "1.60" , STABILISED_NAMESPACED_FEATURES ) ,
10901081 "weak-dep-features" => stabilized_warn ( k, "1.60" , STABILIZED_WEAK_DEP_FEATURES ) ,
0 commit comments