Skip to content

Commit f40f7a7

Browse files
committed
Auto merge of #8678 - ehuss:fix-priv-test, r=alexcrichton
Fix nightly exported_priv_warning test. Error messages have slightly changed due to rust-lang/rust#73996 to not include the full path. I used a `[..]` match just in case anyone is still using a slightly older nightly, or if it changes again in the future.
2 parents e1d3e13 + fd25718 commit f40f7a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testsuite/pub_priv.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ fn exported_priv_warning() {
3939
.masquerade_as_nightly_cargo()
4040
.with_stderr_contains(
4141
"\
42-
src/lib.rs:3:13: warning: type `priv_dep::FromPriv` from private dependency 'priv_dep' in public interface
43-
"
42+
src/lib.rs:3:13: warning: type `[..]FromPriv` from private dependency 'priv_dep' in public interface
43+
",
4444
)
4545
.run()
4646
}

0 commit comments

Comments
 (0)