File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -1692,13 +1692,11 @@ impl DetailedTomlDependency {
1692
1692
. count ( ) ;
1693
1693
1694
1694
if n_details > 1 {
1695
- let msg = format ! (
1695
+ bail ! (
1696
1696
"dependency ({}) specification is ambiguous. \
1697
- Only one of `branch`, `tag` or `rev` is allowed. \
1698
- This will be considered an error in future versions",
1697
+ Only one of `branch`, `tag` or `rev` is allowed.",
1699
1698
name_in_toml
1700
1699
) ;
1701
- cx. warnings . push ( msg)
1702
1700
}
1703
1701
1704
1702
let reference = self
Original file line number Diff line number Diff line change @@ -851,11 +851,12 @@ fn ambiguous_git_reference() {
851
851
852
852
p. cargo ( "build -v" )
853
853
. with_status ( 101 )
854
- . with_stderr_contains (
854
+ . with_stderr (
855
855
"\
856
- [WARNING] dependency (bar) specification is ambiguous. \
857
- Only one of `branch`, `tag` or `rev` is allowed. \
858
- This will be considered an error in future versions
856
+ [ERROR] failed to parse manifest at `[..]`
857
+
858
+ Caused by:
859
+ dependency (bar) specification is ambiguous. Only one of `branch`, `tag` or `rev` is allowed.
859
860
" ,
860
861
)
861
862
. run ( ) ;
You can’t perform that action at this time.
0 commit comments