1
- #![ allow( deprecated) ]
2
-
3
1
use cargo_test_support:: project;
2
+ use cargo_test_support:: str;
4
3
5
4
#[ cargo_test]
6
5
fn default ( ) {
@@ -23,19 +22,18 @@ this-lint-does-not-exist = "warn"
23
22
24
23
p. cargo ( "check -Zcargo-lints" )
25
24
. masquerade_as_nightly_cargo ( & [ "cargo-lints" ] )
26
- . with_stderr (
27
- "\
28
- warning: unknown lint: `this-lint-does-not-exist`
25
+ . with_stderr_data ( str![ [ r#"
26
+ [WARNING] unknown lint: `this-lint-does-not-exist`
29
27
--> Cargo.toml:9:1
30
28
|
31
- 9 | this-lint-does-not-exist = \ " warn\ "
29
+ 9 | this-lint-does-not-exist = "warn"
32
30
| ^^^^^^^^^^^^^^^^^^^^^^^^
33
31
|
34
- = note: `cargo::unknown_lints` is set to `warn` by default
35
- [CHECKING] foo v0.0.1 ([CWD] )
36
- [FINISHED] [..]
37
- " ,
38
- )
32
+ = [NOTE] `cargo::unknown_lints` is set to `warn` by default
33
+ [CHECKING] foo v0.0.1 ([ROOT]/foo )
34
+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
35
+
36
+ "# ] ] )
39
37
. run ( ) ;
40
38
}
41
39
@@ -70,24 +68,23 @@ workspace = true
70
68
71
69
p. cargo ( "check -Zcargo-lints" )
72
70
. masquerade_as_nightly_cargo ( & [ "cargo-lints" ] )
73
- . with_stderr (
74
- "\
75
- warning: unknown lint: `this-lint-does-not-exist`
71
+ . with_stderr_data ( str![ [ r#"
72
+ [WARNING] unknown lint: `this-lint-does-not-exist`
76
73
--> Cargo.toml:6:1
77
74
|
78
- 6 | this-lint-does-not-exist = \ " warn\ "
75
+ 6 | this-lint-does-not-exist = "warn"
79
76
| ^^^^^^^^^^^^^^^^^^^^^^^^
80
77
|
81
- note: `cargo::this-lint-does-not-exist` was inherited
78
+ [NOTE] `cargo::this-lint-does-not-exist` was inherited
82
79
--> foo/Cargo.toml:9:1
83
80
|
84
81
9 | workspace = true
85
82
| ----------------
86
83
|
87
- = note: `cargo::unknown_lints` is set to `warn` by default
88
- [CHECKING] foo v0.0.1 ([CWD] /foo)
89
- [FINISHED] [..]
90
- " ,
91
- )
84
+ = [NOTE] `cargo::unknown_lints` is set to `warn` by default
85
+ [CHECKING] foo v0.0.1 ([ROOT]/foo /foo)
86
+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
87
+
88
+ "# ] ] )
92
89
. run ( ) ;
93
90
}
0 commit comments