diff options
| author | est31 <MTest31@outlook.com> | 2022-02-20 03:17:44 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2022-02-20 04:56:56 +0100 |
| commit | 49a5456606967babaa319954a9710dc2eac6c4f0 (patch) | |
| tree | e424306413d14d73ddb19fea65c66fa6dc7c89f5 /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | b8c56fa8c30821129b0960180f528d4a1a4f9316 (diff) | |
| download | rust-49a5456606967babaa319954a9710dc2eac6c4f0.tar.gz rust-49a5456606967babaa319954a9710dc2eac6c4f0.zip | |
tidy: fire less "ignoring file length unneccessarily" warnings
This avoids a situation where a file is at the border of the limit, and alternates between hitting the limit and not hitting it, causing a back and forth of addition of the ignore-tidy-linelength directive. As an example, consider the ignore-tidy-filelength of compiler/rustc_typeck/src/collect.rs. It was added in 2ca4964db5d263a8f9222846bd70a7f26cf414cf, removed in 37354ebc9794b0eb14b08c02177e3094c8fe91cd, added again in 448d07683a6defd567996114793a09c9a8aef5df, removed in 3171bd5bf54fb91f7f7df7c40df5adc7d8bd5dea, added in 438826fd1a9a119d00992ede948cdd479431ecbb, and #94142 is going to remove it again. To avoid this back and forth, we exempt files from the unneccessary ignoring warning that have length of at least 70% of the limit.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
