@@ -1100,12 +1100,12 @@ fn package_two_kinds_of_deps() {
11001100}
11011101
11021102#[ test]
1103- fn test_epoch ( ) {
1103+ fn test_edition ( ) {
11041104 let p = project ( "foo" )
11051105 . file (
11061106 "Cargo.toml" ,
11071107 r#"
1108- cargo-features = ["epoch "]
1108+ cargo-features = ["edition "]
11091109 [package]
11101110 name = "foo"
11111111 version = "0.0.1"
@@ -1119,13 +1119,13 @@ fn test_epoch() {
11191119 assert_that (
11201120 p. cargo ( "build" ) . arg ( "-v" ) . masquerade_as_nightly_cargo ( ) ,
11211121 execs ( )
1122- // -Zepoch is still in flux and we're not passing -Zunstable-options
1122+ // -Zedition is still in flux and we're not passing -Zunstable-options
11231123 // from Cargo so it will probably error. Only partially match the output
11241124 // until stuff stabilizes
11251125 . with_stderr_contains ( format ! ( "\
11261126 [COMPILING] foo v0.0.1 ({url})
11271127[RUNNING] `rustc --crate-name foo src[/]lib.rs --crate-type lib \
1128- --emit=dep-info,link -Zepoch =2018 -C debuginfo=2 \
1128+ --emit=dep-info,link -Zedition =2018 -C debuginfo=2 \
11291129 -C metadata=[..] \
11301130 --out-dir [..] \
11311131 -L dependency={dir}[/]target[/]debug[/]deps`
@@ -1134,13 +1134,13 @@ fn test_epoch() {
11341134}
11351135
11361136#[ test]
1137- fn test_epoch_missing ( ) {
1138- // no epoch = 2015
1137+ fn test_edition_missing ( ) {
1138+ // no edition = 2015
11391139 let p = project ( "foo" )
11401140 . file (
11411141 "Cargo.toml" ,
11421142 r#"
1143- cargo-features = ["epoch "]
1143+ cargo-features = ["edition "]
11441144 [package]
11451145 name = "foo"
11461146 version = "0.0.1"
@@ -1153,13 +1153,13 @@ fn test_epoch_missing() {
11531153 assert_that (
11541154 p. cargo ( "build" ) . arg ( "-v" ) . masquerade_as_nightly_cargo ( ) ,
11551155 execs ( )
1156- // -Zepoch is still in flux and we're not passing -Zunstable-options
1156+ // -Zedition is still in flux and we're not passing -Zunstable-options
11571157 // from Cargo so it will probably error. Only partially match the output
11581158 // until stuff stabilizes
11591159 . with_stderr_contains ( format ! ( "\
11601160 [COMPILING] foo v0.0.1 ({url})
11611161[RUNNING] `rustc --crate-name foo src[/]lib.rs --crate-type lib \
1162- --emit=dep-info,link -Zepoch =2015 -C debuginfo=2 \
1162+ --emit=dep-info,link -Zedition =2015 -C debuginfo=2 \
11631163 -C metadata=[..] \
11641164 --out-dir [..] \
11651165 -L dependency={dir}[/]target[/]debug[/]deps`
@@ -1168,12 +1168,12 @@ fn test_epoch_missing() {
11681168}
11691169
11701170#[ test]
1171- fn test_epoch_malformed ( ) {
1171+ fn test_edition_malformed ( ) {
11721172 let p = project ( "foo" )
11731173 . file (
11741174 "Cargo.toml" ,
11751175 r#"
1176- cargo-features = ["epoch "]
1176+ cargo-features = ["edition "]
11771177 [package]
11781178 name = "foo"
11791179 version = "0.0.1"
@@ -1198,7 +1198,7 @@ Caused by:
11981198}
11991199
12001200#[ test]
1201- fn test_epoch_nightly ( ) {
1201+ fn test_edition_nightly ( ) {
12021202 let p = project ( "foo" )
12031203 . file (
12041204 "Cargo.toml" ,
@@ -1220,12 +1220,12 @@ fn test_epoch_nightly() {
12201220 error: failed to parse manifest at `[..]`
12211221
12221222Caused by:
1223- epoches are unstable
1223+ editiones are unstable
12241224
12251225Caused by:
1226- feature `epoch ` is required
1226+ feature `edition ` is required
12271227
1228- consider adding `cargo-features = [\" epoch \" ]` to the manifest
1228+ consider adding `cargo-features = [\" edition \" ]` to the manifest
12291229"
12301230 ) ) ,
12311231 ) ;
0 commit comments