mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
ignore comments in tidy-filelength
This commit is contained in:
parent
70f74719a9
commit
3171bd5bf5
@ -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};
|
||||
|
@ -1,5 +1,3 @@
|
||||
// ignore-tidy-filelength
|
||||
|
||||
//! Lints in the Rust compiler.
|
||||
//!
|
||||
//! This contains lints which can feasibly be implemented as their own
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,3 @@
|
||||
// ignore-tidy-filelength
|
||||
use crate::ich::StableHashingContext;
|
||||
use crate::middle::codegen_fn_attrs::CodegenFnAttrFlags;
|
||||
use crate::mir::{GeneratorLayout, GeneratorSavedLocal};
|
||||
|
@ -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;
|
||||
|
@ -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};
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// ignore-tidy-filelength
|
||||
//! Definitions of a bunch of iterators for `[T]`.
|
||||
|
||||
#[macro_use] // import iterator! and forward_iterator!
|
||||
|
@ -1,5 +1,3 @@
|
||||
// ignore-tidy-filelength
|
||||
|
||||
//! Slice management and manipulation.
|
||||
//!
|
||||
//! For more details see [`std::slice`].
|
||||
|
@ -1,5 +1,3 @@
|
||||
// ignore-tidy-filelength
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user