File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -3938,10 +3938,6 @@ fn inferred_benchmarks() {
39383938
39393939#[ test]
39403940fn target_edition ( ) {
3941- if !is_nightly ( ) {
3942- // --edition is nightly-only
3943- return ;
3944- }
39453941 let p = project ( )
39463942 . file (
39473943 "Cargo.toml" ,
@@ -3957,6 +3953,7 @@ fn target_edition() {
39573953 . build ( ) ;
39583954
39593955 p. cargo ( "build -v" )
3956+ . without_status ( ) // passes on nightly, fails on stable, b/c --edition is nightly-only
39603957 . with_stderr_contains (
39613958 "\
39623959 [COMPILING] foo v0.0.1 ([..])
Original file line number Diff line number Diff line change @@ -932,10 +932,6 @@ fn package_two_kinds_of_deps() {
932932
933933#[ test]
934934fn test_edition ( ) {
935- if !is_nightly ( ) {
936- // --edition is nightly-only
937- return ;
938- }
939935 let p = project ( )
940936 . file (
941937 "Cargo.toml" ,
@@ -951,10 +947,11 @@ fn test_edition() {
951947 . build ( ) ;
952948
953949 p. cargo ( "build -v" ) . masquerade_as_nightly_cargo ( )
954- // --edition is still in flux and we're not passing -Zunstable-options
955- // from Cargo so it will probably error. Only partially match the output
956- // until stuff stabilizes
957- . with_stderr_contains ( "\
950+ . without_status ( ) // passes on nightly, fails on stable, b/c --edition is nightly-only
951+ // --edition is still in flux and we're not passing -Zunstable-options
952+ // from Cargo so it will probably error. Only partially match the output
953+ // until stuff stabilizes
954+ . with_stderr_contains ( "\
958955 [COMPILING] foo v0.0.1 ([..])
959956[RUNNING] `rustc [..]--edition=2018 [..]
960957" ) . run ( ) ;
You can’t perform that action at this time.
0 commit comments