X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Flint_message_convention.rs;h=dd1d441203600cf6f3d124177a4ef29f1ea0d67c;hb=e7c55a478fd78cae940b0b43fbdbd4b4c7c6567b;hp=2f8989c8e114082eabd4957b8431f0a090d879a8;hpb=75d73e95a090586852b725bf8f52962edd4442ea;p=rust.git diff --git a/tests/lint_message_convention.rs b/tests/lint_message_convention.rs index 2f8989c8e11..dd1d4412036 100644 --- a/tests/lint_message_convention.rs +++ b/tests/lint_message_convention.rs @@ -1,3 +1,6 @@ +#![cfg_attr(feature = "deny-warnings", deny(warnings))] +#![warn(rust_2018_idioms, unused_lifetimes)] + use std::ffi::OsStr; use std::path::PathBuf; @@ -13,7 +16,7 @@ impl Message { fn new(path: PathBuf) -> Self { let content: String = std::fs::read_to_string(&path).unwrap(); // we don't want the first letter after "error: ", "help: " ... to be capitalized - // also no puncutation (except for "?" ?) at the end of a line + // also no punctuation (except for "?" ?) at the end of a line let regex_set: RegexSet = RegexSet::new(&[ r"error: [A-Z]", r"help: [A-Z]", @@ -63,7 +66,7 @@ fn lint_message_convention() { // make sure that lint messages: // * are not capitalized - // * don't have puncuation at the end of the last sentence + // * don't have punctuation at the end of the last sentence // these directories have interesting tests let test_dirs = ["ui", "ui-cargo", "ui-internal", "ui-toml"]