Skip to content

Commit 883dffa

Browse files
committed
Accept more safety comments (notably those that are on multiple lines without text after SAFETY:)
1 parent cbe7c5c commit 883dffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/tidy/src/style.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ pub fn check(path: &Path, bad: &mut bool) {
263263
suppressible_tidy_err!(err, skip_undocumented_unsafe, "undocumented unsafe");
264264
}
265265
}
266-
if line.contains("// SAFETY: ") || line.contains("// Safety: ") {
266+
if line.contains("// SAFETY:") || line.contains("// Safety:") {
267267
last_safety_comment = true;
268268
} else if line.trim().starts_with("//") || line.trim().is_empty() {
269269
// keep previous value

0 commit comments

Comments
 (0)