File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 11//! Tests for workspace member errors.
22
3- #![ allow( deprecated) ]
4-
53use cargo:: core:: resolver:: ResolveError ;
64use cargo:: core:: { compiler:: CompileMode , Shell , Workspace } ;
75use cargo:: ops:: { self , CompileOptions } ;
@@ -10,6 +8,7 @@ use cargo::util::{context::GlobalContext, errors::ManifestError};
108use cargo_test_support:: install:: cargo_home;
119use cargo_test_support:: project;
1210use cargo_test_support:: registry;
11+ use cargo_test_support:: str;
1312
1413/// Tests inclusion of a `ManifestError` pointing to a member manifest
1514/// when that manifest fails to deserialize.
@@ -48,18 +47,17 @@ fn toml_deserialize_manifest_error() {
4847
4948 p. cargo ( "check" )
5049 . with_status ( 101 )
51- . with_stderr (
52- "\
50+ . with_stderr_data ( str![ [ r#"
5351[ERROR] invalid string
54- expected `\ " `, `'`
52+ expected `"`, `'`
5553 --> bar/Cargo.toml:8:25
5654 |
57- 8 | foobar == \ " 0.55\ "
55+ 8 | foobar == "0.55"
5856 | ^
5957 |
6058[ERROR] failed to load manifest for dependency `bar`
61- " ,
62- )
59+
60+ "# ] ] )
6361 . run ( ) ;
6462}
6563
You can’t perform that action at this time.
0 commit comments