@@ -324,7 +324,7 @@ fn resolve_toml(
324
324
} ) ;
325
325
resolved_toml. package = Some ( resolved_package) ;
326
326
327
- resolved_toml. features = resolve_features ( original_toml. features . as_ref ( ) , edition ) ?;
327
+ resolved_toml. features = resolve_features ( original_toml. features . as_ref ( ) ) ?;
328
328
329
329
resolved_toml. lib = targets:: resolve_lib (
330
330
original_toml. lib . as_ref ( ) ,
@@ -693,34 +693,11 @@ fn default_readme_from_package_root(package_root: &Path) -> Option<String> {
693
693
#[ tracing:: instrument( skip_all) ]
694
694
fn resolve_features (
695
695
original_features : Option < & BTreeMap < manifest:: FeatureName , Vec < String > > > ,
696
- edition : Edition ,
697
696
) -> CargoResult < Option < BTreeMap < manifest:: FeatureName , Vec < String > > > > {
698
- let Some ( mut resolved_features) = original_features. cloned ( ) else {
697
+ let Some ( resolved_features) = original_features. cloned ( ) else {
699
698
return Ok ( None ) ;
700
699
} ;
701
700
702
- if Edition :: Edition2024 <= edition {
703
- for activations in resolved_features. values_mut ( ) {
704
- let mut deps = Vec :: new ( ) ;
705
- for feature_value in activations. iter ( ) {
706
- let feature_value = FeatureValue :: new ( InternedString :: new ( feature_value) ) ;
707
- let FeatureValue :: DepFeature {
708
- dep_name,
709
- dep_feature : _,
710
- weak : false ,
711
- } = feature_value
712
- else {
713
- continue ;
714
- } ;
715
- let dep = FeatureValue :: Dep { dep_name } . to_string ( ) ;
716
- if !activations. contains ( & dep) {
717
- deps. push ( dep) ;
718
- }
719
- }
720
- activations. extend ( deps) ;
721
- }
722
- }
723
-
724
701
Ok ( Some ( resolved_features) )
725
702
}
726
703
0 commit comments