Skip to content

Commit 761ef8f

Browse files
committed
tidy: Re-enable the "ignoring file length unnecessarily" check
Closes #77548.
1 parent 58f32da commit 761ef8f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: src/tools/tidy/src/style.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,9 @@ pub fn check(path: &Path, bad: &mut bool) {
379379
if let Directive::Ignore(false) = skip_tab {
380380
tidy_error!(bad, "{}: ignoring tab characters unnecessarily", file.display());
381381
}
382-
// FIXME: Temporarily disabled to simplify landing the ignore-rules for the line
383-
// length check (https://github.com/rust-lang/rust/issues/77548):
384-
//if let Directive::Ignore(false) = skip_line_length {
385-
// tidy_error!(bad, "{}: ignoring line length unnecessarily", file.display());
386-
//}
382+
if let Directive::Ignore(false) = skip_line_length {
383+
tidy_error!(bad, "{}: ignoring line length unnecessarily", file.display());
384+
}
387385
if let Directive::Ignore(false) = skip_file_length {
388386
tidy_error!(bad, "{}: ignoring file length unnecessarily", file.display());
389387
}

0 commit comments

Comments
 (0)