diff options
| author | Simon Jakobi <simon.jakobi@gmail.com> | 2021-04-11 16:38:13 +0200 |
|---|---|---|
| committer | Simon Jakobi <simon.jakobi@gmail.com> | 2021-04-11 16:38:13 +0200 |
| commit | 761ef8fc53b0c752096ca89e925b9d6b817dc49c (patch) | |
| tree | 4564b4d47708fcbbf0c695d446e9af73c58b942a | |
| parent | 58f32da346642ff3f50186f6f4a0de46e61008be (diff) | |
| download | rust-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.rs | 8 |
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()); } |
