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