@@ -70,7 +70,7 @@ config_data! {
70
70
/// List of features to activate. Set to `"all"` to pass `--all-features` to cargo.
71
71
cargo_features: CargoFeatures = "[]" ,
72
72
/// Do not activate the `default` feature.
73
- cargo_noDefaultFeatures : bool = "false " ,
73
+ cargo_defaultFeatures : bool = "true " ,
74
74
/// Internal config for debugging, disables loading of sysroot crates.
75
75
cargo_noSysroot: bool = "false" ,
76
76
/// Compilation target override (target triple).
@@ -90,7 +90,7 @@ config_data! {
90
90
/// `#rust-analyzer.cargo.features#`. Set to `"all"` to pass `--all-features` to cargo.
91
91
checkOnSave_features: Option <CargoFeatures > = "null" ,
92
92
/// Do not activate the `default` feature.
93
- checkOnSave_noDefaultFeatures : Option <bool > = "null" ,
93
+ checkOnSave_defaultFeatures : Option <bool > = "null" ,
94
94
/// Advanced option, fully override the command rust-analyzer uses for
95
95
/// checking. The command should include `--message-format=json` or
96
96
/// similar option.
@@ -877,7 +877,7 @@ impl Config {
877
877
} ) ;
878
878
879
879
CargoConfig {
880
- no_default_features : self . data . cargo_noDefaultFeatures ,
880
+ no_default_features : ! self . data . cargo_defaultFeatures ,
881
881
all_features : matches ! ( self . data. cargo_features, CargoFeatures :: All ) ,
882
882
features : match & self . data . cargo_features {
883
883
CargoFeatures :: All => vec ! [ ] ,
@@ -924,10 +924,10 @@ impl Config {
924
924
. clone ( )
925
925
. or_else ( || self . data . cargo_target . clone ( ) ) ,
926
926
all_targets : self . data . checkOnSave_allTargets ,
927
- no_default_features : self
927
+ no_default_features : ! self
928
928
. data
929
- . checkOnSave_noDefaultFeatures
930
- . unwrap_or ( self . data . cargo_noDefaultFeatures ) ,
929
+ . checkOnSave_defaultFeatures
930
+ . unwrap_or ( self . data . cargo_defaultFeatures ) ,
931
931
all_features : matches ! (
932
932
self . data. checkOnSave_features. as_ref( ) . unwrap_or( & self . data. cargo_features) ,
933
933
CargoFeatures :: All
0 commit comments