File tree Expand file tree Collapse file tree 4 files changed +26
-2
lines changed
crates/invalid-cargotoml-syntax-deps Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ impl<'a> Prepare<'a> {
124
124
|| line. contains ( "no matching package named" )
125
125
{
126
126
missing_deps = true ;
127
- } else if line. contains ( "failed to parse manifest at" ) {
127
+ } else if line. contains ( "failed to parse manifest at" )
128
+ || line. contains ( "error: invalid table header" )
129
+ {
128
130
broken_deps = true ;
129
131
}
130
132
} )
@@ -175,7 +177,9 @@ pub(crate) fn fetch_deps(
175
177
if line. contains ( "failed to load source for dependency" ) {
176
178
missing_deps = true ;
177
179
}
178
- if line. contains ( "failed to parse manifest at" ) {
180
+ if line. contains ( "failed to parse manifest at" )
181
+ || line. contains ( "error: invalid table header" )
182
+ {
179
183
broken_deps = true ;
180
184
}
181
185
} )
Original file line number Diff line number Diff line change
1
+ [package ]
2
+ name = " invalid-cargotoml-content-deps"
3
+ version = " 0.1.0"
4
+ authors = [" Pietro Albini <pietro@pietroalbini.org>" ]
5
+ edition = " 2018"
6
+
7
+ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8
+
9
+ [dependencies ]
10
+ url = " =0.5.9"
Original file line number Diff line number Diff line change
1
+ fn main ( ) {
2
+ println ! ( "Hello, world!" ) ;
3
+ }
Original file line number Diff line number Diff line change @@ -195,6 +195,13 @@ test_prepare_error_stderr!(
195
195
"failed to parse the version requirement `0.11\t ` for dependency `parking_lot`"
196
196
) ;
197
197
198
+ test_prepare_error_stderr ! (
199
+ test_invalid_cargotoml_syntax_deps,
200
+ "invalid-cargotoml-syntax-deps" ,
201
+ InvalidCargoTomlSyntaxInDependencies ,
202
+ "error: invalid table header"
203
+ ) ;
204
+
198
205
test_prepare_error_stderr ! (
199
206
test_yanked_deps,
200
207
"yanked-deps" ,
You can’t perform that action at this time.
0 commit comments