From 75e7b41823979d49e4311936a9e5f528abe28b2f Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sun, 12 Apr 2020 21:09:39 -0700 Subject: [PATCH] Fix nightly test matching rustc "warning" output. --- tests/testsuite/pub_priv.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/testsuite/pub_priv.rs b/tests/testsuite/pub_priv.rs index 97748d8bc2d..bd4790987e2 100644 --- a/tests/testsuite/pub_priv.rs +++ b/tests/testsuite/pub_priv.rs @@ -37,15 +37,9 @@ fn exported_priv_warning() { p.cargo("build --message-format=short") .masquerade_as_nightly_cargo() - .with_stderr( + .with_stderr_contains( "\ -[UPDATING] `[..]` index -[DOWNLOADING] crates ... -[DOWNLOADED] priv_dep v0.1.0 ([..]) -[COMPILING] priv_dep v0.1.0 -[COMPILING] foo v0.0.1 ([CWD]) src/lib.rs:3:13: warning: type `priv_dep::FromPriv` from private dependency 'priv_dep' in public interface -[FINISHED] dev [unoptimized + debuginfo] target(s) in [..] " ) .run()