disable lint_message_convention test inside the rustc test suite

This commit is contained in:
Matthias Krüger 2021-02-25 12:30:51 +01:00
parent 8eb2bd13d0
commit e107b65b5a

View file

@ -60,6 +60,11 @@ impl Message {
#[test]
fn lint_message_convention() {
// disable the test inside the rustc test suite
if option_env!("RUSTC_TEST_SUITE").is_some() {
return;
}
// make sure that lint messages:
// * are not capitalized
// * don't have puncuation at the end of the last sentence