File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -1707,14 +1707,11 @@ impl<P: ResolveToPath> DetailedTomlDependency<P> {
1707
1707
kind : Option < DepKind > ,
1708
1708
) -> CargoResult < Dependency > {
1709
1709
if self . version . is_none ( ) && self . path . is_none ( ) && self . git . is_none ( ) {
1710
- let msg = format ! (
1710
+ bail ! (
1711
1711
"dependency ({}) specified without \
1712
- providing a local path, Git repository, or \
1713
- version to use. This will be considered an \
1714
- error in future versions",
1712
+ providing a local path, Git repository, or version to use.",
1715
1713
name_in_toml
1716
1714
) ;
1717
- cx. warnings . push ( msg) ;
1718
1715
}
1719
1716
1720
1717
if let Some ( version) = & self . version {
Original file line number Diff line number Diff line change @@ -796,10 +796,14 @@ fn empty_dependencies() {
796
796
Package :: new ( "bar" , "0.0.1" ) . publish ( ) ;
797
797
798
798
p. cargo ( "build" )
799
- . with_stderr_contains (
799
+ . with_status ( 101 )
800
+ . with_stderr (
800
801
"\
801
- warning: dependency (bar) specified without providing a local path, Git repository, or version \
802
- to use. This will be considered an error in future versions
802
+ [ERROR] failed to parse manifest at `[..]`
803
+
804
+ Caused by:
805
+ dependency (bar) specified without providing a local path, Git repository, or version \
806
+ to use.
803
807
" ,
804
808
)
805
809
. run ( ) ;
You can’t perform that action at this time.
0 commit comments