Auto merge of #8678 - ehuss:fix-priv-test, r=alexcrichton
Auto merge of #8678 - ehuss:fix-priv-test, r=alexcrichton

Fix nightly exported_priv_warning test.

Error messages have slightly changed due to https://github.com/rust-lang/rust/pull/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.

nipunn1313/cargo,tshepang/cargo,nipunn1313/cargo,rust-lang/cargo,eminence/cargo,eminence/cargo,rust-lang/cargo,eminence/cargo,rustyhorde/cargo,rustyhorde/cargo,nipunn1313/cargo,rustyhorde/cargo,tshepang/cargo,eminence/cargo,rust-lang/cargo,tshepang/cargo,rust-lang/cargo,rustyhorde/cargo,nipunn1313/cargo,tshepang/cargo