File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ pub struct TomlProject {
441
441
license_file : Option < String > ,
442
442
repository : Option < String > ,
443
443
metadata : Option < toml:: Value > ,
444
- epoch : Option < String > ,
444
+ rust : Option < String > ,
445
445
}
446
446
447
447
#[ derive( Debug , Deserialize , Serialize ) ]
@@ -717,14 +717,14 @@ impl TomlManifest {
717
717
None | Some ( VecStringOrBool :: Bool ( true ) ) => None ,
718
718
} ;
719
719
720
- let epoch = if let Some ( ref epoch) = project. epoch {
720
+ let epoch = if let Some ( ref epoch) = project. rust {
721
721
features. require ( Feature :: epoch ( ) ) . chain_err ( || {
722
722
"epoches are unstable"
723
723
} ) ?;
724
724
if let Ok ( epoch) = epoch. parse ( ) {
725
725
epoch
726
726
} else {
727
- bail ! ( "the `epoch ` key must be one of: `2015`, `2018`" )
727
+ bail ! ( "the `rust ` key must be one of: `2015`, `2018`" )
728
728
}
729
729
} else {
730
730
Epoch :: Epoch2015
Original file line number Diff line number Diff line change @@ -897,7 +897,7 @@ fn test_epoch() {
897
897
name = "foo"
898
898
version = "0.0.1"
899
899
authors = []
900
- epoch = "2018"
900
+ rust = "2018"
901
901
"# )
902
902
. file ( "src/lib.rs" , r#" "# )
903
903
. build ( ) ;
@@ -957,7 +957,7 @@ fn test_epoch_malformed() {
957
957
name = "foo"
958
958
version = "0.0.1"
959
959
authors = []
960
- epoch = "chicken"
960
+ rust = "chicken"
961
961
"# )
962
962
. file ( "src/lib.rs" , r#" "# )
963
963
. build ( ) ;
@@ -970,7 +970,7 @@ fn test_epoch_malformed() {
970
970
error: failed to parse manifest at `[..]`
971
971
972
972
Caused by:
973
- the `epoch ` key must be one of: `2015`, `2018`
973
+ the `rust ` key must be one of: `2015`, `2018`
974
974
" ) ) ) ;
975
975
}
976
976
@@ -983,7 +983,7 @@ fn test_epoch_nightly() {
983
983
name = "foo"
984
984
version = "0.0.1"
985
985
authors = []
986
- epoch = "2015"
986
+ rust = "2015"
987
987
"# )
988
988
. file ( "src/lib.rs" , r#" "# )
989
989
. build ( ) ;
You can’t perform that action at this time.
0 commit comments