Skip to content

Commit e30a03b

Browse files
committed
chore(lints): move excessive_nesting to pedantic group
1 parent ffc1e34 commit e30a03b

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

clippy_config/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
rustc::untranslatable_diagnostic
1414
)]
1515
#![deny(clippy::derive_deserialize_allowing_unknown)]
16+
#![allow(clippy::excessive_nesting)]
17+
#![warn(clippy::pedantic)]
1618

1719
extern crate rustc_data_structures;
1820
extern crate rustc_errors;

clippy_dev/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::excessive_nesting)]
12
#![feature(
23
rustc_private,
34
exit_status_error,

clippy_lints/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
clippy::must_use_candidate,
1818
rustc::diagnostic_outside_of_impl,
1919
rustc::untranslatable_diagnostic,
20-
clippy::literal_string_with_formatting_args
20+
clippy::literal_string_with_formatting_args,
21+
clippy::excessive_nesting
2122
)]
2223
#![warn(
2324
trivial_casts,
@@ -69,7 +70,7 @@ pub mod ctfe; // Very important lint, do not remove (rust#125116)
6970
pub mod declared_lints;
7071
pub mod deprecated_lints;
7172

72-
// begin lints modules, do not remove this comment, its used in `update_lints`
73+
// begin lints modules, do not remove this comment, it's used in `update_lints`
7374
mod absolute_paths;
7475
mod almost_complete_range;
7576
mod approx_const;
@@ -404,7 +405,7 @@ mod zero_div_zero;
404405
mod zero_repeat_side_effects;
405406
mod zero_sized_map_values;
406407
mod zombie_processes;
407-
// end lints modules, do not remove this comment, its used in `update_lints`
408+
// end lints modules, do not remove this comment, it's used in `update_lints`
408409

409410
use clippy_config::{Conf, get_configuration_metadata, sanitize_explanation};
410411
use clippy_utils::macros::FormatArgsStorage;

clippy_lints_internal/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::excessive_nesting)]
12
#![feature(rustc_private)]
23
#![allow(
34
clippy::missing_docs_in_private_items,

clippy_utils/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
#![allow(clippy::excessive_nesting)]
2+
#![feature(rustc_private)]
13
#![feature(box_patterns)]
24
#![feature(if_let_guard)]
35
#![feature(macro_metavar_expr)]
46
#![feature(never_type)]
5-
#![feature(rustc_private)]
67
#![feature(assert_matches)]
78
#![feature(unwrap_infallible)]
89
#![feature(array_windows)]

tests/compile-test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::excessive_nesting)]
12
#![feature(rustc_private)]
23
#![warn(rust_2018_idioms, unused_lifetimes)]
34
#![allow(unused_extern_crates)]

0 commit comments

Comments
 (0)