@@ -502,8 +502,6 @@ macro_rules! create_config {
502
502
impl Default for Config {
503
503
fn default ( ) -> Config {
504
504
Config {
505
- // should we allow unstable features?
506
- unstable_features: false ,
507
505
$(
508
506
$i: ( Cell :: new( false ) , false , $def, $exp) ,
509
507
) +
@@ -674,8 +672,8 @@ create_config! {
674
672
multiline_match_arm_forces_block: bool , false , false ,
675
673
"Force multiline match arm bodies to be wrapped in a block" ;
676
674
// 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 ,
679
677
"Where to put a binary operator when a binary expression goes multiline." ;
680
678
}
681
679
@@ -692,25 +690,6 @@ mod test {
692
690
assert_eq ! ( config. verbose( ) , true ) ;
693
691
}
694
692
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
-
714
693
#[ test]
715
694
fn test_config_used_to_toml ( ) {
716
695
let config = Config :: default ( ) ;
0 commit comments