Skip to content

Commit 75e7b41

Browse files
committed
Fix nightly test matching rustc "warning" output.
1 parent 12d6e84 commit 75e7b41

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)