mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +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::{CtorKind, DefKind, Res};
|
||||||
use crate::def_id::{DefId, CRATE_DEF_ID};
|
use crate::def_id::{DefId, CRATE_DEF_ID};
|
||||||
crate use crate::hir_id::{HirId, ItemLocalId};
|
crate use crate::hir_id::{HirId, ItemLocalId};
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
// ignore-tidy-filelength
|
|
||||||
|
|
||||||
//! Lints in the Rust compiler.
|
//! Lints in the Rust compiler.
|
||||||
//!
|
//!
|
||||||
//! This contains lints which can feasibly be implemented as their own
|
//! 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.
|
//! Some lints that are built in to the compiler.
|
||||||
//!
|
//!
|
||||||
//! These are the built-in lints that are emitted direct in the main
|
//! 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::ich::StableHashingContext;
|
||||||
use crate::middle::codegen_fn_attrs::CodegenFnAttrFlags;
|
use crate::middle::codegen_fn_attrs::CodegenFnAttrFlags;
|
||||||
use crate::mir::{GeneratorLayout, GeneratorSavedLocal};
|
use crate::mir::{GeneratorLayout, GeneratorSavedLocal};
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// ignore-tidy-filelength
|
|
||||||
//! "Collection" is the process of determining the type and other external
|
//! "Collection" is the process of determining the type and other external
|
||||||
//! details of each item in Rust. Collection is specifically concerned
|
//! details of each item in Rust. Collection is specifically concerned
|
||||||
//! with *inter-procedural* things -- for example, for a function
|
//! 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
|
//! At present, however, we do run collection across all items in the
|
||||||
//! crate as a kind of pass. This should eventually be factored away.
|
//! crate as a kind of pass. This should eventually be factored away.
|
||||||
|
|
||||||
// ignore-tidy-filelength
|
|
||||||
|
|
||||||
use crate::astconv::{AstConv, SizedByDefault};
|
use crate::astconv::{AstConv, SizedByDefault};
|
||||||
use crate::bounds::Bounds;
|
use crate::bounds::Bounds;
|
||||||
use crate::check::intrinsic::intrinsic_operation_unsafety;
|
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::cmp::{self, Ordering};
|
||||||
use crate::ops::{ControlFlow, Try};
|
use crate::ops::{ControlFlow, Try};
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// ignore-tidy-filelength
|
|
||||||
//! Definitions of a bunch of iterators for `[T]`.
|
//! Definitions of a bunch of iterators for `[T]`.
|
||||||
|
|
||||||
#[macro_use] // import iterator! and forward_iterator!
|
#[macro_use] // import iterator! and forward_iterator!
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
// ignore-tidy-filelength
|
|
||||||
|
|
||||||
//! Slice management and manipulation.
|
//! Slice management and manipulation.
|
||||||
//!
|
//!
|
||||||
//! For more details see [`std::slice`].
|
//! For more details see [`std::slice`].
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
// ignore-tidy-filelength
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
|
@ -344,7 +344,10 @@ pub fn check(path: &Path, bad: &mut bool) {
|
|||||||
} else {
|
} else {
|
||||||
trailing_new_lines = 0;
|
trailing_new_lines = 0;
|
||||||
}
|
}
|
||||||
lines = i;
|
|
||||||
|
if !line.trim().starts_with("//") {
|
||||||
|
lines += 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if leading_new_lines {
|
if leading_new_lines {
|
||||||
tidy_error!(bad, "{}: leading newline", file.display());
|
tidy_error!(bad, "{}: leading newline", file.display());
|
||||||
|
Loading…
Reference in New Issue
Block a user