Skip to content

Commit dc35abf

Browse files
author
Jon Gjengset
committed
Sort feature list
1 parent 9837239 commit dc35abf

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

src/cargo/core/features.rs

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -545,39 +545,42 @@ impl Features {
545545
#[derive(Default, Debug, Deserialize)]
546546
#[serde(default, rename_all = "kebab-case")]
547547
pub struct CliUnstable {
548-
pub print_im_a_teapot: bool,
548+
// Permanently unstable features:
549549
pub allow_features: Option<BTreeSet<String>>,
550+
pub print_im_a_teapot: bool,
550551

551-
pub unstable_options: bool,
552-
pub no_index_update: bool,
553-
pub avoid_dev_deps: bool,
554-
pub minimal_versions: bool,
552+
// All other unstable features.
553+
// Please keep this list lexiographically ordered.
555554
pub advanced_env: bool,
556-
pub config_include: bool,
557-
pub dual_proc_macros: bool,
558-
pub mtime_on_use: bool,
559-
pub named_profiles: bool,
555+
pub avoid_dev_deps: bool,
560556
pub binary_dep_depinfo: bool,
561557
#[serde(deserialize_with = "deserialize_build_std")]
562558
pub build_std: Option<Vec<String>>,
563559
pub build_std_features: Option<Vec<String>>,
564-
pub timings: Option<Vec<String>>,
565-
pub doctest_xcompile: bool,
560+
pub config_include: bool,
561+
pub configurable_env: bool,
562+
pub credential_process: bool,
566563
pub doctest_in_workspace: bool,
567-
pub panic_abort_tests: bool,
568-
pub jobserver_per_rustc: bool,
564+
pub doctest_xcompile: bool,
565+
pub dual_proc_macros: bool,
566+
pub enable_future_incompat_feature: bool,
567+
pub extra_link_arg: bool,
569568
pub features: Option<Vec<String>>,
570-
pub separate_nightlies: bool,
569+
pub jobserver_per_rustc: bool,
570+
pub minimal_versions: bool,
571+
pub mtime_on_use: bool,
571572
pub multitarget: bool,
573+
pub named_profiles: bool,
574+
pub namespaced_features: bool,
575+
pub no_index_update: bool,
576+
pub panic_abort_tests: bool,
577+
pub patch_in_config: bool,
572578
pub rustdoc_map: bool,
579+
pub separate_nightlies: bool,
573580
pub terminal_width: Option<Option<usize>>,
574-
pub namespaced_features: bool,
581+
pub timings: Option<Vec<String>>,
582+
pub unstable_options: bool,
575583
pub weak_dep_features: bool,
576-
pub extra_link_arg: bool,
577-
pub patch_in_config: bool,
578-
pub credential_process: bool,
579-
pub configurable_env: bool,
580-
pub enable_future_incompat_feature: bool,
581584
}
582585

583586
const STABILIZED_COMPILE_PROGRESS: &str = "The progress bar is now always \

0 commit comments

Comments
 (0)