ignore comments in tidy-filelength

This commit is contained in:
ibraheemdev 2021-07-25 17:10:51 -04:00
parent 70f74719a9
commit 3171bd5bf5
10 changed files with 4 additions and 19 deletions

View File

@ -1,4 +1,3 @@
// ignore-tidy-filelength
use crate::def::{CtorKind, DefKind, Res};
use crate::def_id::{DefId, CRATE_DEF_ID};
crate use crate::hir_id::{HirId, ItemLocalId};

View File

@ -1,5 +1,3 @@
// ignore-tidy-filelength
//! Lints in the Rust compiler.
//!
//! This contains lints which can feasibly be implemented as their own

View File

@ -1,5 +1,3 @@
// ignore-tidy-filelength
//! Some lints that are built in to the compiler.
//!
//! These are the built-in lints that are emitted direct in the main

View File

@ -1,4 +1,3 @@
// ignore-tidy-filelength
use crate::ich::StableHashingContext;
use crate::middle::codegen_fn_attrs::CodegenFnAttrFlags;
use crate::mir::{GeneratorLayout, GeneratorSavedLocal};

View File

@ -1,4 +1,3 @@
// ignore-tidy-filelength
//! "Collection" is the process of determining the type and other external
//! details of each item in Rust. Collection is specifically concerned
//! with *inter-procedural* things -- for example, for a function
@ -15,8 +14,6 @@
//! At present, however, we do run collection across all items in the
//! crate as a kind of pass. This should eventually be factored away.
// ignore-tidy-filelength
use crate::astconv::{AstConv, SizedByDefault};
use crate::bounds::Bounds;
use crate::check::intrinsic::intrinsic_operation_unsafety;

View File

@ -1,7 +1,3 @@
// ignore-tidy-filelength
// This file almost exclusively consists of the definition of `Iterator`. We
// can't split that into multiple files.
use crate::cmp::{self, Ordering};
use crate::ops::{ControlFlow, Try};

View File

@ -1,4 +1,3 @@
// ignore-tidy-filelength
//! Definitions of a bunch of iterators for `[T]`.
#[macro_use] // import iterator! and forward_iterator!

View File

@ -1,5 +1,3 @@
// ignore-tidy-filelength
//! Slice management and manipulation.
//!
//! For more details see [`std::slice`].

View File

@ -1,5 +1,3 @@
// ignore-tidy-filelength
#[cfg(test)]
mod tests;

View File

@ -344,7 +344,10 @@ pub fn check(path: &Path, bad: &mut bool) {
} else {
trailing_new_lines = 0;
}
lines = i;
if !line.trim().starts_with("//") {
lines += 1;
}
}
if leading_new_lines {
tidy_error!(bad, "{}: leading newline", file.display());