Skip to content

Commit

Permalink
Auto merge of #8098 - ehuss:fix-exported_priv_warning, r=alexcrichton
Browse files Browse the repository at this point in the history
Fix nightly test matching rustc "warning" output.

rust-lang/rust#69926 changed the warning output from rustc.  #8080 attempted to compensate for it, but missed one of the cases.  I don't think this test needs to be quite so exhaustive about checking the output.
  • Loading branch information
bors committed Apr 13, 2020
2 parents 12d6e84 + 75e7b41 commit 9def590
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/testsuite/pub_priv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9def590

Please sign in to comment.