@@ -401,10 +401,6 @@ impl LowerRequest for ExecuteRequest {
401
401
402
402
impl CargoTomlModifier for ExecuteRequest {
403
403
fn modify_cargo_toml ( & self , mut cargo_toml : toml:: Value ) -> toml:: Value {
404
- if self . edition == Edition :: Rust2024 {
405
- cargo_toml = modify_cargo_toml:: set_feature_edition2024 ( cargo_toml) ;
406
- }
407
-
408
404
cargo_toml = modify_cargo_toml:: set_edition ( cargo_toml, self . edition . to_cargo_toml_key ( ) ) ;
409
405
410
406
if let Some ( crate_type) = self . crate_type . to_library_cargo_toml_key ( ) {
@@ -534,10 +530,6 @@ impl LowerRequest for CompileRequest {
534
530
535
531
impl CargoTomlModifier for CompileRequest {
536
532
fn modify_cargo_toml ( & self , mut cargo_toml : toml:: Value ) -> toml:: Value {
537
- if self . edition == Edition :: Rust2024 {
538
- cargo_toml = modify_cargo_toml:: set_feature_edition2024 ( cargo_toml) ;
539
- }
540
-
541
533
cargo_toml = modify_cargo_toml:: set_edition ( cargo_toml, self . edition . to_cargo_toml_key ( ) ) ;
542
534
543
535
if let Some ( crate_type) = self . crate_type . to_library_cargo_toml_key ( ) {
@@ -597,10 +589,6 @@ impl LowerRequest for FormatRequest {
597
589
598
590
impl CargoTomlModifier for FormatRequest {
599
591
fn modify_cargo_toml ( & self , mut cargo_toml : toml:: Value ) -> toml:: Value {
600
- if self . edition == Edition :: Rust2024 {
601
- cargo_toml = modify_cargo_toml:: set_feature_edition2024 ( cargo_toml) ;
602
- }
603
-
604
592
cargo_toml = modify_cargo_toml:: set_edition ( cargo_toml, self . edition . to_cargo_toml_key ( ) ) ;
605
593
606
594
if let Some ( crate_type) = self . crate_type . to_library_cargo_toml_key ( ) {
@@ -646,10 +634,6 @@ impl LowerRequest for ClippyRequest {
646
634
647
635
impl CargoTomlModifier for ClippyRequest {
648
636
fn modify_cargo_toml ( & self , mut cargo_toml : toml:: Value ) -> toml:: Value {
649
- if self . edition == Edition :: Rust2024 {
650
- cargo_toml = modify_cargo_toml:: set_feature_edition2024 ( cargo_toml) ;
651
- }
652
-
653
637
cargo_toml = modify_cargo_toml:: set_edition ( cargo_toml, self . edition . to_cargo_toml_key ( ) ) ;
654
638
655
639
if let Some ( crate_type) = self . crate_type . to_library_cargo_toml_key ( ) {
@@ -694,10 +678,6 @@ impl LowerRequest for MiriRequest {
694
678
695
679
impl CargoTomlModifier for MiriRequest {
696
680
fn modify_cargo_toml ( & self , mut cargo_toml : toml:: Value ) -> toml:: Value {
697
- if self . edition == Edition :: Rust2024 {
698
- cargo_toml = modify_cargo_toml:: set_feature_edition2024 ( cargo_toml) ;
699
- }
700
-
701
681
cargo_toml = modify_cargo_toml:: set_edition ( cargo_toml, self . edition . to_cargo_toml_key ( ) ) ;
702
682
703
683
if let Some ( crate_type) = self . crate_type . to_library_cargo_toml_key ( ) {
@@ -744,10 +724,6 @@ impl LowerRequest for MacroExpansionRequest {
744
724
745
725
impl CargoTomlModifier for MacroExpansionRequest {
746
726
fn modify_cargo_toml ( & self , mut cargo_toml : toml:: Value ) -> toml:: Value {
747
- if self . edition == Edition :: Rust2024 {
748
- cargo_toml = modify_cargo_toml:: set_feature_edition2024 ( cargo_toml) ;
749
- }
750
-
751
727
cargo_toml = modify_cargo_toml:: set_edition ( cargo_toml, self . edition . to_cargo_toml_key ( ) ) ;
752
728
753
729
if let Some ( crate_type) = self . crate_type . to_library_cargo_toml_key ( ) {
0 commit comments