File tree 2 files changed +7
-8
lines changed
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -1791,13 +1791,11 @@ impl<P: ResolveToPath> DetailedTomlDependency<P> {
1791
1791
) ,
1792
1792
( Some ( git) , maybe_path, _, _) => {
1793
1793
if maybe_path. is_some ( ) {
1794
- let msg = format ! (
1794
+ bail ! (
1795
1795
"dependency ({}) specification is ambiguous. \
1796
- Only one of `git` or `path` is allowed. \
1797
- This will be considered an error in future versions",
1796
+ Only one of `git` or `path` is allowed.",
1798
1797
name_in_toml
1799
1798
) ;
1800
- cx. warnings . push ( msg)
1801
1799
}
1802
1800
1803
1801
let n_details = [ & self . branch , & self . tag , & self . rev ]
Original file line number Diff line number Diff line change @@ -1112,11 +1112,12 @@ fn both_git_and_path_specified() {
1112
1112
1113
1113
foo. cargo ( "build -v" )
1114
1114
. with_status ( 101 )
1115
- . with_stderr_contains (
1115
+ . with_stderr (
1116
1116
"\
1117
- [WARNING] dependency (bar) specification is ambiguous. \
1118
- Only one of `git` or `path` is allowed. \
1119
- This will be considered an error in future versions
1117
+ error: failed to parse manifest at `[..]`
1118
+
1119
+ Caused by:
1120
+ dependency (bar) specification is ambiguous. Only one of `git` or `path` is allowed.
1120
1121
" ,
1121
1122
)
1122
1123
. run ( ) ;
You can’t perform that action at this time.
0 commit comments