File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -1734,12 +1734,11 @@ impl<P: ResolveToPath> DetailedTomlDependency<P> {
1734
1734
1735
1735
for & ( key, key_name) in & git_only_keys {
1736
1736
if key. is_some ( ) {
1737
- let msg = format ! (
1738
- "key `{}` is ignored for dependency ({}). \
1739
- This will be considered an error in future versions" ,
1740
- key_name , name_in_toml
1737
+ bail ! (
1738
+ "key `{}` is ignored for dependency ({})." ,
1739
+ key_name ,
1740
+ name_in_toml
1741
1741
) ;
1742
- cx. warnings . push ( msg)
1743
1742
}
1744
1743
}
1745
1744
}
Original file line number Diff line number Diff line change @@ -1183,9 +1183,13 @@ fn ignored_git_revision() {
1183
1183
1184
1184
foo. cargo ( "build -v" )
1185
1185
. with_status ( 101 )
1186
- . with_stderr_contains (
1187
- "[WARNING] key `branch` is ignored for dependency (bar). \
1188
- This will be considered an error in future versions",
1186
+ . with_stderr (
1187
+ "\
1188
+ error: failed to parse manifest at `[..]`
1189
+
1190
+ Caused by:
1191
+ key `branch` is ignored for dependency (bar).
1192
+ " ,
1189
1193
)
1190
1194
. run ( ) ;
1191
1195
}
You can’t perform that action at this time.
0 commit comments