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 1
1
//! Tests for workspace member errors.
2
2
3
- #![ allow( deprecated) ]
4
-
5
3
use cargo:: core:: resolver:: ResolveError ;
6
4
use cargo:: core:: { compiler:: CompileMode , Shell , Workspace } ;
7
5
use cargo:: ops:: { self , CompileOptions } ;
@@ -10,6 +8,7 @@ use cargo::util::{context::GlobalContext, errors::ManifestError};
10
8
use cargo_test_support:: install:: cargo_home;
11
9
use cargo_test_support:: project;
12
10
use cargo_test_support:: registry;
11
+ use cargo_test_support:: str;
13
12
14
13
/// Tests inclusion of a `ManifestError` pointing to a member manifest
15
14
/// when that manifest fails to deserialize.
@@ -48,18 +47,17 @@ fn toml_deserialize_manifest_error() {
48
47
49
48
p. cargo ( "check" )
50
49
. with_status ( 101 )
51
- . with_stderr (
52
- "\
50
+ . with_stderr_data ( str![ [ r#"
53
51
[ERROR] invalid string
54
- expected `\ " `, `'`
52
+ expected `"`, `'`
55
53
--> bar/Cargo.toml:8:25
56
54
|
57
- 8 | foobar == \ " 0.55\ "
55
+ 8 | foobar == "0.55"
58
56
| ^
59
57
|
60
58
[ERROR] failed to load manifest for dependency `bar`
61
- " ,
62
- )
59
+
60
+ "# ] ] )
63
61
. run ( ) ;
64
62
}
65
63
You can’t perform that action at this time.
0 commit comments