1- #![ allow( deprecated) ]
2-
31use cargo_test_support:: project;
42use cargo_test_support:: registry:: Package ;
3+ use cargo_test_support:: str;
54
65#[ cargo_test]
76fn default ( ) {
@@ -24,14 +23,13 @@ bar = { version = "0.1.0", optional = true }
2423
2524 p. cargo ( "check -Zcargo-lints" )
2625 . masquerade_as_nightly_cargo ( & [ "cargo-lints" ] )
27- . with_stderr (
28- "\
29- [UPDATING] [..]
26+ . with_stderr_data ( str![ [ r#"
27+ [UPDATING] `dummy-registry` index
3028[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+ "# ] ] )
3533 . run ( ) ;
3634}
3735
@@ -67,33 +65,32 @@ implicit_features = "warn"
6765
6866 p. cargo ( "check -Zcargo-lints" )
6967 . 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
7370 --> Cargo.toml:8:1
7471 |
75- 8 | bar = { version = \ " 0.1.0\ " , optional = true }
72+ 8 | bar = { version = "0.1.0", optional = true }
7673 | ---
7774 |
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
8077 --> Cargo.toml:11:1
8178 |
82- 11 | baz = { version = \ " 0.1.0\ " , optional = true }
79+ 11 | baz = { version = "0.1.0", optional = true }
8380 | ---
8481 |
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
8683 --> Cargo.toml:14:1
8784 |
88- 14 | target-dep = { version = \ " 0.1.0\ " , optional = true }
85+ 14 | target-dep = { version = "0.1.0", optional = true }
8986 | ----------
9087 |
91- [UPDATING] [..]
88+ [UPDATING] `dummy-registry` index
9289[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+ "# ] ] )
9794 . run ( ) ;
9895}
9996
@@ -127,13 +124,12 @@ unused_optional_dependency = "allow"
127124
128125 p. cargo ( "check -Zcargo-lints" )
129126 . 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+ "# ] ] )
138134 . run ( ) ;
139135}
0 commit comments