1
- #![ allow( deprecated) ]
2
-
3
1
use cargo_test_support:: project;
4
2
use cargo_test_support:: registry:: Package ;
3
+ use cargo_test_support:: str;
5
4
6
5
#[ cargo_test]
7
6
fn default ( ) {
@@ -24,14 +23,13 @@ bar = { version = "0.1.0", optional = true }
24
23
25
24
p. cargo ( "check -Zcargo-lints" )
26
25
. masquerade_as_nightly_cargo ( & [ "cargo-lints" ] )
27
- . with_stderr (
28
- "\
29
- [UPDATING] [..]
26
+ . with_stderr_data ( str![ [ r#"
27
+ [UPDATING] `dummy-registry` index
30
28
[LOCKING] 2 packages to latest compatible versions
31
- [CHECKING] foo v0.1.0 ([CWD] )
32
- [FINISHED] [..]
33
- " ,
34
- )
29
+ [CHECKING] foo v0.1.0 ([ROOT]/foo )
30
+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
31
+
32
+ "# ] ] )
35
33
. run ( ) ;
36
34
}
37
35
@@ -67,33 +65,32 @@ implicit_features = "warn"
67
65
68
66
p. cargo ( "check -Zcargo-lints" )
69
67
. masquerade_as_nightly_cargo ( & [ "cargo-lints" ] )
70
- . with_stderr (
71
- "\
72
- warning: implicit features for optional dependencies is deprecated and will be unavailable in the 2024 edition
68
+ . with_stderr_data ( str![ [ r#"
69
+ [WARNING] implicit features for optional dependencies is deprecated and will be unavailable in the 2024 edition
73
70
--> Cargo.toml:8:1
74
71
|
75
- 8 | bar = { version = \ " 0.1.0\ " , optional = true }
72
+ 8 | bar = { version = "0.1.0", optional = true }
76
73
| ---
77
74
|
78
- = note: `cargo::implicit_features` is set to `warn` in `[lints]`
79
- warning: implicit features for optional dependencies is deprecated and will be unavailable in the 2024 edition
75
+ = [NOTE] `cargo::implicit_features` is set to `warn` in `[lints]`
76
+ [WARNING] implicit features for optional dependencies is deprecated and will be unavailable in the 2024 edition
80
77
--> Cargo.toml:11:1
81
78
|
82
- 11 | baz = { version = \ " 0.1.0\ " , optional = true }
79
+ 11 | baz = { version = "0.1.0", optional = true }
83
80
| ---
84
81
|
85
- warning: implicit features for optional dependencies is deprecated and will be unavailable in the 2024 edition
82
+ [WARNING] implicit features for optional dependencies is deprecated and will be unavailable in the 2024 edition
86
83
--> Cargo.toml:14:1
87
84
|
88
- 14 | target-dep = { version = \ " 0.1.0\ " , optional = true }
85
+ 14 | target-dep = { version = "0.1.0", optional = true }
89
86
| ----------
90
87
|
91
- [UPDATING] [..]
88
+ [UPDATING] `dummy-registry` index
92
89
[LOCKING] 4 packages to latest compatible versions
93
- [CHECKING] foo v0.1.0 ([CWD] )
94
- [FINISHED] [..]
95
- " ,
96
- )
90
+ [CHECKING] foo v0.1.0 ([ROOT]/foo )
91
+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
92
+
93
+ "# ] ] )
97
94
. run ( ) ;
98
95
}
99
96
@@ -127,13 +124,12 @@ unused_optional_dependency = "allow"
127
124
128
125
p. cargo ( "check -Zcargo-lints" )
129
126
. masquerade_as_nightly_cargo ( & [ "cargo-lints" , "edition2024" ] )
130
- . with_stderr (
131
- "\
132
- [UPDATING] [..]
133
- [LOCKING] 2 packages to latest Rust [..] compatible versions
134
- [CHECKING] foo v0.1.0 ([CWD])
135
- [FINISHED] [..]
136
- " ,
137
- )
127
+ . with_stderr_data ( str![ [ r#"
128
+ [UPDATING] `dummy-registry` index
129
+ [LOCKING] 2 packages to latest Rust 1.81.0-nightly compatible versions
130
+ [CHECKING] foo v0.1.0 ([ROOT]/foo)
131
+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
132
+
133
+ "# ] ] )
138
134
. run ( ) ;
139
135
}
0 commit comments