File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -1027,22 +1027,8 @@ fn to_real_manifest(
1027
1027
) ) ) ;
1028
1028
}
1029
1029
1030
- match ( & original_toml. package , & original_toml. project ) {
1031
- ( Some ( _) , Some ( _) ) => {
1032
- warnings. push ( format ! (
1033
- "manifest at `{}` contains both `project` and `package`, \
1034
- this could become a hard error in the future",
1035
- package_root. display( )
1036
- ) ) ;
1037
- }
1038
- ( None , Some ( _) ) => {
1039
- warnings. push ( format ! (
1040
- "manifest at `{}` contains `[project]` instead of `[package]`, \
1041
- this could become a hard error in the future",
1042
- package_root. display( )
1043
- ) ) ;
1044
- }
1045
- ( Some ( _) , None ) | ( None , None ) => { }
1030
+ if original_toml. project . is_some ( ) {
1031
+ warnings. push ( format ! ( "`[project]` is deprecated in favor of `[package]`" ) ) ;
1046
1032
}
1047
1033
1048
1034
if resolved_package. metabuild . is_some ( ) {
Original file line number Diff line number Diff line change @@ -1002,7 +1002,7 @@ fn warn_manifest_package_and_project() {
1002
1002
p. cargo ( "check" )
1003
1003
. with_stderr (
1004
1004
"\
1005
- [WARNING] manifest at `[CWD ]` contains both `project` and ` package`, this could become a hard error in the future
1005
+ [WARNING] `[project ]` is deprecated in favor of `[ package]`
1006
1006
[CHECKING] foo v0.0.1 ([CWD])
1007
1007
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [..]
1008
1008
" ,
@@ -1083,7 +1083,7 @@ fn warn_manifest_with_project() {
1083
1083
p. cargo ( "check" )
1084
1084
. with_stderr (
1085
1085
"\
1086
- [WARNING] manifest at `[CWD ]` contains `[project]` instead of `[package]`, this could become a hard error in the future
1086
+ [WARNING] `[project ]` is deprecated in favor of `[package]`
1087
1087
[CHECKING] foo v0.0.1 ([CWD])
1088
1088
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [..]
1089
1089
" ,
You can’t perform that action at this time.
0 commit comments