@@ -46,11 +46,10 @@ fn non_comp_time_dep() {
46
46
. file ( "bar/src/lib.rs" , r#"pub fn bar() {}"# )
47
47
. build ( ) ;
48
48
49
- p. cargo ( "check" )
49
+ p. cargo ( "-Zunstable-options check --compile-time-deps" )
50
+ . masquerade_as_nightly_cargo ( & [ "compile-time-deps" ] )
50
51
. with_stderr_data ( str![ [ r#"
51
52
[LOCKING] 1 package to latest compatible version
52
- [CHECKING] bar v0.0.1 ([ROOT]/foo/bar)
53
- [CHECKING] foo v0.0.1 ([ROOT]/foo)
54
53
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
55
54
56
55
"# ] ] )
@@ -142,22 +141,21 @@ fn proc_macro_dep() {
142
141
. file ( "baz/src/lib.rs" , r#"pub fn baz() {}"# )
143
142
. build ( ) ;
144
143
145
- p. cargo ( "check --package foo" )
144
+ p. cargo ( "-Zunstable-options check --package foo --compile-time-deps" )
145
+ . masquerade_as_nightly_cargo ( & [ "compile-time-deps" ] )
146
146
. with_stderr_data ( str![ [ r#"
147
147
[COMPILING] baz v0.0.1 ([ROOT]/foo/baz)
148
148
[COMPILING] bar v0.0.1 ([ROOT]/foo/bar)
149
- [CHECKING] foo v0.0.1 ([ROOT]/foo/foo)
150
149
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
151
150
152
151
"# ] ] )
153
152
. run ( ) ;
154
153
155
154
p. cargo ( "clean" ) . run ( ) ;
156
155
157
- p. cargo ( "check --package bar" )
156
+ p. cargo ( "-Zunstable-options check --package bar --compile-time-deps" )
157
+ . masquerade_as_nightly_cargo ( & [ "compile-time-deps" ] )
158
158
. with_stderr_data ( str![ [ r#"
159
- [CHECKING] baz v0.0.1 ([ROOT]/foo/baz)
160
- [CHECKING] bar v0.0.1 ([ROOT]/foo/bar)
161
159
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
162
160
163
161
"# ] ] )
@@ -221,7 +219,8 @@ fn build_dep() {
221
219
. file ( "bar/baz/src/lib.rs" , r#"pub fn baz() {}"# )
222
220
. build ( ) ;
223
221
224
- p. cargo ( "check" )
222
+ p. cargo ( "-Zunstable-options check --compile-time-deps" )
223
+ . masquerade_as_nightly_cargo ( & [ "compile-time-deps" ] )
225
224
. with_stderr_data ( str![ [ r#"
226
225
[LOCKING] 2 packages to latest compatible versions
227
226
[COMPILING] baz v0.0.1 ([ROOT]/foo/bar/baz)
@@ -294,12 +293,12 @@ fn indirect_comp_time_dep() {
294
293
. file ( "bar/baz/src/lib.rs" , r#"pub fn baz() {}"# )
295
294
. build ( ) ;
296
295
297
- p. cargo ( "check" )
296
+ p. cargo ( "-Zunstable-options check --compile-time-deps" )
297
+ . masquerade_as_nightly_cargo ( & [ "compile-time-deps" ] )
298
298
. with_stderr_data ( str![ [ r#"
299
299
[LOCKING] 2 packages to latest compatible versions
300
300
[COMPILING] baz v0.0.1 ([ROOT]/foo/bar/baz)
301
301
[COMPILING] bar v0.0.1 ([ROOT]/foo/bar)
302
- [CHECKING] foo v0.0.1 ([ROOT]/foo)
303
302
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
304
303
305
304
"# ] ] )
@@ -359,21 +358,21 @@ fn tests_target() {
359
358
)
360
359
. build ( ) ;
361
360
362
- p. cargo ( "check --tests" )
361
+ p. cargo ( "-Zunstable-options check --tests --compile-time-deps " )
363
362
. with_stderr_data ( str![ [ r#"
364
363
[LOCKING] 1 package to latest compatible version
365
364
[COMPILING] bar v0.0.1 ([ROOT]/foo/bar)
366
- [CHECKING] foo v0.0.1 ([ROOT]/foo)
367
365
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
368
366
369
367
"# ] ] )
368
+ . masquerade_as_nightly_cargo ( & [ "compile-time-deps" ] )
370
369
. run ( ) ;
371
370
372
371
p. cargo ( "clean" ) . run ( ) ;
373
372
374
- p. cargo ( "check" )
373
+ p. cargo ( "-Zunstable-options check --compile-time-deps" )
374
+ . masquerade_as_nightly_cargo ( & [ "compile-time-deps" ] )
375
375
. with_stderr_data ( str![ [ r#"
376
- [CHECKING] foo v0.0.1 ([ROOT]/foo)
377
376
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
378
377
379
378
"# ] ] )
0 commit comments