Skip to content

Commit 006a038

Browse files
Tarin MahmoodTarin Mahmood
authored andcommitted
Added --unstable-options parameter
1 parent a153757 commit 006a038

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

src/config.rs

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,6 @@ macro_rules! create_config {
502502
impl Default for Config {
503503
fn default() -> Config {
504504
Config {
505-
// should we allow unstable features?
506-
unstable_features: false,
507505
$(
508506
$i: (Cell::new(false), false, $def, $exp),
509507
)+
@@ -674,8 +672,8 @@ create_config! {
674672
multiline_match_arm_forces_block: bool, false, false,
675673
"Force multiline match arm bodies to be wrapped in a block";
676674
// TODO: these two is NOT Experimental Feature, only for testing
677-
merge_derives: bool, true, false, "Merge multiple `#[derive(...)]` into a single one";
678-
binop_separator: SeparatorPlace, SeparatorPlace::Front, false,
675+
merge_derives: bool, true, true, "Merge multiple `#[derive(...)]` into a single one";
676+
binop_separator: SeparatorPlace, SeparatorPlace::Front, true,
679677
"Where to put a binary operator when a binary expression goes multiline.";
680678
}
681679

@@ -692,25 +690,6 @@ mod test {
692690
assert_eq!(config.verbose(), true);
693691
}
694692

695-
#[test]
696-
fn test_experimental() {
697-
let mut config = Config::default();
698-
assert_eq!(config.is_experimental().binop_separator(), false);
699-
assert_eq!(
700-
config.is_experimental().multiline_closure_forces_block(),
701-
false
702-
);
703-
config.set_experimental().binop_separator(true);
704-
assert_eq!(config.is_experimental().binop_separator(), true);
705-
config
706-
.set_experimental()
707-
.multiline_closure_forces_block(true);
708-
assert_eq!(
709-
config.is_experimental().multiline_closure_forces_block(),
710-
true
711-
);
712-
}
713-
714693
#[test]
715694
fn test_config_used_to_toml() {
716695
let config = Config::default();

0 commit comments

Comments
 (0)