We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcb6cba commit db6f676Copy full SHA for db6f676
src/tools/tidy/src/style.rs
@@ -186,6 +186,10 @@ fn should_ignore(line: &str) -> bool {
186
// - `//@[rev] normalize-stderr-test`
187
|| static_regex!("\\s*//@(\\[.*\\]) (compile-flags|normalize-stderr-test|error-pattern).*")
188
.is_match(line)
189
+ // Matching for rustdoc tests commands.
190
+ || static_regex!(
191
+ "\\s*//@ \\!?(count|files|has|has-dir|hasraw|matches|matchesraw|snapshot)\\s.*"
192
+ ).is_match(line)
193
}
194
195
/// Returns `true` if `line` is allowed to be longer than the normal limit.
0 commit comments