@@ -46,11 +46,10 @@ fn non_comp_time_dep() {
4646 . file ( "bar/src/lib.rs" , r#"pub fn bar() {}"# )
4747 . build ( ) ;
4848
49- p. cargo ( "check" )
49+ p. cargo ( "-Zunstable-options check --compile-time-deps" )
50+ . masquerade_as_nightly_cargo ( & [ "compile-time-deps" ] )
5051 . with_stderr_data ( str![ [ r#"
5152[LOCKING] 1 package to latest compatible version
52- [CHECKING] bar v0.0.1 ([ROOT]/foo/bar)
53- [CHECKING] foo v0.0.1 ([ROOT]/foo)
5453[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
5554
5655"# ] ] )
@@ -142,22 +141,21 @@ fn proc_macro_dep() {
142141 . file ( "baz/src/lib.rs" , r#"pub fn baz() {}"# )
143142 . build ( ) ;
144143
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" ] )
146146 . with_stderr_data ( str![ [ r#"
147147[COMPILING] baz v0.0.1 ([ROOT]/foo/baz)
148148[COMPILING] bar v0.0.1 ([ROOT]/foo/bar)
149- [CHECKING] foo v0.0.1 ([ROOT]/foo/foo)
150149[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
151150
152151"# ] ] )
153152 . run ( ) ;
154153
155154 p. cargo ( "clean" ) . run ( ) ;
156155
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" ] )
158158 . with_stderr_data ( str![ [ r#"
159- [CHECKING] baz v0.0.1 ([ROOT]/foo/baz)
160- [CHECKING] bar v0.0.1 ([ROOT]/foo/bar)
161159[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
162160
163161"# ] ] )
@@ -221,7 +219,8 @@ fn build_dep() {
221219 . file ( "bar/baz/src/lib.rs" , r#"pub fn baz() {}"# )
222220 . build ( ) ;
223221
224- p. cargo ( "check" )
222+ p. cargo ( "-Zunstable-options check --compile-time-deps" )
223+ . masquerade_as_nightly_cargo ( & [ "compile-time-deps" ] )
225224 . with_stderr_data ( str![ [ r#"
226225[LOCKING] 2 packages to latest compatible versions
227226[COMPILING] baz v0.0.1 ([ROOT]/foo/bar/baz)
@@ -294,12 +293,12 @@ fn indirect_comp_time_dep() {
294293 . file ( "bar/baz/src/lib.rs" , r#"pub fn baz() {}"# )
295294 . build ( ) ;
296295
297- p. cargo ( "check" )
296+ p. cargo ( "-Zunstable-options check --compile-time-deps" )
297+ . masquerade_as_nightly_cargo ( & [ "compile-time-deps" ] )
298298 . with_stderr_data ( str![ [ r#"
299299[LOCKING] 2 packages to latest compatible versions
300300[COMPILING] baz v0.0.1 ([ROOT]/foo/bar/baz)
301301[COMPILING] bar v0.0.1 ([ROOT]/foo/bar)
302- [CHECKING] foo v0.0.1 ([ROOT]/foo)
303302[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
304303
305304"# ] ] )
@@ -359,21 +358,21 @@ fn tests_target() {
359358 )
360359 . build ( ) ;
361360
362- p. cargo ( "check --tests" )
361+ p. cargo ( "-Zunstable-options check --tests --compile-time-deps " )
363362 . with_stderr_data ( str![ [ r#"
364363[LOCKING] 1 package to latest compatible version
365364[COMPILING] bar v0.0.1 ([ROOT]/foo/bar)
366- [CHECKING] foo v0.0.1 ([ROOT]/foo)
367365[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
368366
369367"# ] ] )
368+ . masquerade_as_nightly_cargo ( & [ "compile-time-deps" ] )
370369 . run ( ) ;
371370
372371 p. cargo ( "clean" ) . run ( ) ;
373372
374- p. cargo ( "check" )
373+ p. cargo ( "-Zunstable-options check --compile-time-deps" )
374+ . masquerade_as_nightly_cargo ( & [ "compile-time-deps" ] )
375375 . with_stderr_data ( str![ [ r#"
376- [CHECKING] foo v0.0.1 ([ROOT]/foo)
377376[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
378377
379378"# ] ] )
0 commit comments