@@ -612,7 +612,7 @@ foo v0.0.1 ([ROOT]/foo)
612
612
. run ( ) ;
613
613
}
614
614
615
- #[ cargo_test( nightly , reason = "edition2024 in rustc is unstable" ) ]
615
+ #[ cargo_test]
616
616
fn resolve_v3 ( ) {
617
617
Package :: new ( "only-newer" , "1.6.0" )
618
618
. rust_version ( "1.65.0" )
@@ -631,8 +631,6 @@ fn resolve_v3() {
631
631
. file (
632
632
"Cargo.toml" ,
633
633
r#"
634
- cargo-features = ["edition2024"]
635
-
636
634
[package]
637
635
name = "foo"
638
636
version = "0.0.1"
@@ -651,7 +649,6 @@ fn resolve_v3() {
651
649
652
650
// v3 should resolve for MSRV
653
651
p. cargo ( "generate-lockfile" )
654
- . masquerade_as_nightly_cargo ( & [ "edition2024" ] )
655
652
. with_stderr_data ( str![ [ r#"
656
653
[UPDATING] `dummy-registry` index
657
654
[LOCKING] 2 packages to latest Rust 1.60.0 compatible versions
@@ -661,7 +658,6 @@ fn resolve_v3() {
661
658
"# ] ] )
662
659
. run ( ) ;
663
660
p. cargo ( "tree" )
664
- . masquerade_as_nightly_cargo ( & [ "edition2024" ] )
665
661
. with_stdout_data ( str![ [ r#"
666
662
foo v0.0.1 ([ROOT]/foo)
667
663
├── newer-and-older v1.5.0
@@ -677,10 +673,8 @@ foo v0.0.1 ([ROOT]/foo)
677
673
[LOCKING] 2 packages to latest compatible versions
678
674
679
675
"# ] ] )
680
- . masquerade_as_nightly_cargo ( & [ "edition2024" ] )
681
676
. run ( ) ;
682
677
p. cargo ( "tree" )
683
- . masquerade_as_nightly_cargo ( & [ "edition2024" ] )
684
678
. with_stdout_data ( str![ [ r#"
685
679
foo v0.0.1 ([ROOT]/foo)
686
680
├── newer-and-older v1.6.0
@@ -697,29 +691,13 @@ foo v0.0.1 ([ROOT]/foo)
697
691
[LOCKING] 2 packages to latest compatible versions
698
692
699
693
"# ] ] )
700
- . masquerade_as_nightly_cargo ( & [ "edition2024" ] )
701
694
. run ( ) ;
702
695
p. cargo ( "tree" )
703
- . masquerade_as_nightly_cargo ( & [ "edition2024" ] )
704
696
. with_stdout_data ( str![ [ r#"
705
697
foo v0.0.1 ([ROOT]/foo)
706
698
├── newer-and-older v1.6.0
707
699
└── only-newer v1.6.0
708
700
709
- "# ] ] )
710
- . run ( ) ;
711
-
712
- // unstable
713
- p. cargo ( "generate-lockfile" )
714
- . with_status ( 101 )
715
- . with_stderr_data ( str![ [ r#"
716
- [ERROR] failed to parse manifest at `[ROOT]/foo/Cargo.toml`
717
-
718
- Caused by:
719
- the cargo feature `edition2024` requires a nightly version of Cargo, but this is the `stable` channel
720
- See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels.
721
- See https://doc.rust-lang.org/cargo/reference/unstable.html#edition-2024 for more information about using this feature.
722
-
723
701
"# ] ] )
724
702
. run ( ) ;
725
703
}
@@ -946,7 +924,7 @@ fn cargo_install_ignores_msrv_config() {
946
924
. run ( ) ;
947
925
}
948
926
949
- #[ cargo_test( nightly , reason = "edition2024 in rustc is unstable" ) ]
927
+ #[ cargo_test]
950
928
fn cargo_install_ignores_resolver_v3_msrv_change ( ) {
951
929
Package :: new ( "dep" , "1.0.0" )
952
930
. rust_version ( "1.50" )
@@ -958,14 +936,12 @@ fn cargo_install_ignores_resolver_v3_msrv_change() {
958
936
. publish ( ) ;
959
937
Package :: new ( "foo" , "0.0.1" )
960
938
. rust_version ( "1.60" )
961
- . cargo_feature ( "edition2024" )
962
939
. resolver ( "3" )
963
940
. file ( "src/main.rs" , "fn main() {}" )
964
941
. dep ( "dep" , "1" )
965
942
. publish ( ) ;
966
943
967
944
cargo_process ( "install foo" )
968
- . masquerade_as_nightly_cargo ( & [ "edition2024" ] )
969
945
. with_stderr_data ( str![ [ r#"
970
946
[UPDATING] `dummy-registry` index
971
947
[DOWNLOADING] crates ...
0 commit comments