@@ -278,9 +278,14 @@ fn allow_priv_in_tests() {
278
278
279
279
p. cargo ( "check --tests --message-format=short" )
280
280
. masquerade_as_nightly_cargo ( & [ "public-dependency" ] )
281
- . with_stderr_contains (
281
+ . with_stderr (
282
282
"\
283
- tests/mod.rs:3:13: warning: type `FromPriv` from private dependency 'priv_dep' in public interface
283
+ [UPDATING] `[..]` index
284
+ [DOWNLOADING] crates ...
285
+ [DOWNLOADED] priv_dep v0.1.0 ([..])
286
+ [CHECKING] priv_dep v0.1.0
287
+ [CHECKING] foo v0.0.1 ([CWD])
288
+ [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
284
289
" ,
285
290
)
286
291
. run ( )
@@ -317,9 +322,14 @@ fn allow_priv_in_benchs() {
317
322
318
323
p. cargo ( "check --benches --message-format=short" )
319
324
. masquerade_as_nightly_cargo ( & [ "public-dependency" ] )
320
- . with_stderr_contains (
325
+ . with_stderr (
321
326
"\
322
- benches/mod.rs:3:13: warning: type `FromPriv` from private dependency 'priv_dep' in public interface
327
+ [UPDATING] `[..]` index
328
+ [DOWNLOADING] crates ...
329
+ [DOWNLOADED] priv_dep v0.1.0 ([..])
330
+ [CHECKING] priv_dep v0.1.0
331
+ [CHECKING] foo v0.0.1 ([CWD])
332
+ [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
323
333
" ,
324
334
)
325
335
. run ( )
@@ -357,9 +367,14 @@ fn allow_priv_in_bins() {
357
367
358
368
p. cargo ( "check --bins --message-format=short" )
359
369
. masquerade_as_nightly_cargo ( & [ "public-dependency" ] )
360
- . with_stderr_contains (
370
+ . with_stderr (
361
371
"\
362
- src/main.rs:3:13: warning: type `FromPriv` from private dependency 'priv_dep' in public interface
372
+ [UPDATING] `[..]` index
373
+ [DOWNLOADING] crates ...
374
+ [DOWNLOADED] priv_dep v0.1.0 ([..])
375
+ [CHECKING] priv_dep v0.1.0
376
+ [CHECKING] foo v0.0.1 ([CWD])
377
+ [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
363
378
" ,
364
379
)
365
380
. run ( )
@@ -397,9 +412,14 @@ fn allow_priv_in_examples() {
397
412
398
413
p. cargo ( "check --examples --message-format=short" )
399
414
. masquerade_as_nightly_cargo ( & [ "public-dependency" ] )
400
- . with_stderr_contains (
415
+ . with_stderr (
401
416
"\
402
- examples/lib.rs:3:13: warning: type `FromPriv` from private dependency 'priv_dep' in public interface
417
+ [UPDATING] `[..]` index
418
+ [DOWNLOADING] crates ...
419
+ [DOWNLOADED] priv_dep v0.1.0 ([..])
420
+ [CHECKING] priv_dep v0.1.0
421
+ [CHECKING] foo v0.0.1 ([CWD])
422
+ [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
403
423
" ,
404
424
)
405
425
. run ( )
0 commit comments