about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSimon Jakobi <simon.jakobi@gmail.com>2021-04-11 16:38:13 +0200
committerSimon Jakobi <simon.jakobi@gmail.com>2021-04-11 16:38:13 +0200
commit761ef8fc53b0c752096ca89e925b9d6b817dc49c (patch)
tree4564b4d47708fcbbf0c695d446e9af73c58b942a
parent58f32da346642ff3f50186f6f4a0de46e61008be (diff)
downloadrust-761ef8fc53b0c752096ca89e925b9d6b817dc49c.tar.gz
rust-761ef8fc53b0c752096ca89e925b9d6b817dc49c.zip
tidy: Re-enable the "ignoring file length unnecessarily" check
Closes #77548.
-rw-r--r--src/tools/tidy/src/style.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tools/tidy/src/style.rs b/src/tools/tidy/src/style.rs
index e99dd453280..3d5f39e8c90 100644
--- a/src/tools/tidy/src/style.rs
+++ b/src/tools/tidy/src/style.rs
@@ -379,11 +379,9 @@ pub fn check(path: &Path, bad: &mut bool) {
         if let Directive::Ignore(false) = skip_tab {
             tidy_error!(bad, "{}: ignoring tab characters unnecessarily", file.display());
         }
-        // FIXME: Temporarily disabled to simplify landing the ignore-rules for the line
-        // length check (https://github.com/rust-lang/rust/issues/77548):
-        //if let Directive::Ignore(false) = skip_line_length {
-        //    tidy_error!(bad, "{}: ignoring line length unnecessarily", file.display());
-        //}
+        if let Directive::Ignore(false) = skip_line_length {
+            tidy_error!(bad, "{}: ignoring line length unnecessarily", file.display());
+        }
         if let Directive::Ignore(false) = skip_file_length {
             tidy_error!(bad, "{}: ignoring file length unnecessarily", file.display());
         }