Skip to content

Commit 9def590

Browse files
committed
Auto merge of #8098 - ehuss:fix-exported_priv_warning, r=alexcrichton
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.
2 parents 12d6e84 + 75e7b41 commit 9def590

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/testsuite/pub_priv.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,9 @@ fn exported_priv_warning() {
3737

3838
p.cargo("build --message-format=short")
3939
.masquerade_as_nightly_cargo()
40-
.with_stderr(
40+
.with_stderr_contains(
4141
"\
42-
[UPDATING] `[..]` index
43-
[DOWNLOADING] crates ...
44-
[DOWNLOADED] priv_dep v0.1.0 ([..])
45-
[COMPILING] priv_dep v0.1.0
46-
[COMPILING] foo v0.0.1 ([CWD])
4742
src/lib.rs:3:13: warning: type `priv_dep::FromPriv` from private dependency 'priv_dep' in public interface
48-
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
4943
"
5044
)
5145
.run()

0 commit comments

Comments
 (0)