Skip to content

Commit a9d898c

Browse files
committed
#![deny(clippy::manual_let_else)] in some rustc modules
1 parent c360ddd commit a9d898c

File tree

10 files changed

+10
-0
lines changed

10 files changed

+10
-0
lines changed

compiler/rustc_ast/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
77
// tidy-alphabetical-start
88
#![cfg_attr(bootstrap, feature(array_windows))]
9+
#![deny(clippy::manual_let_else)]
910
#![doc(test(attr(deny(warnings), allow(internal_features))))]
1011
#![feature(associated_type_defaults)]
1112
#![feature(box_patterns)]

compiler/rustc_borrowck/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
// tidy-alphabetical-start
44
#![allow(internal_features)]
5+
#![deny(clippy::manual_let_else)]
56
#![feature(assert_matches)]
67
#![feature(box_patterns)]
78
#![feature(file_buffered)]

compiler/rustc_const_eval/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// tidy-alphabetical-start
22
#![allow(rustc::diagnostic_outside_of_impl)]
3+
#![deny(clippy::manual_let_else)]
34
#![feature(array_try_map)]
45
#![feature(assert_matches)]
56
#![feature(box_patterns)]

compiler/rustc_hir/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
// tidy-alphabetical-start
66
#![cfg_attr(bootstrap, feature(debug_closure_helpers))]
7+
#![deny(clippy::manual_let_else)]
78
#![feature(associated_type_defaults)]
89
#![feature(closure_track_caller)]
910
#![feature(const_default)]

compiler/rustc_hir_analysis/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ This API is completely unstable and subject to change.
5959
#![allow(rustc::diagnostic_outside_of_impl)]
6060
#![allow(rustc::untranslatable_diagnostic)]
6161
#![cfg_attr(bootstrap, feature(debug_closure_helpers))]
62+
#![deny(clippy::manual_let_else)]
6263
#![feature(assert_matches)]
6364
#![feature(gen_blocks)]
6465
#![feature(if_let_guard)]

compiler/rustc_hir_typeck/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// tidy-alphabetical-start
22
#![allow(rustc::diagnostic_outside_of_impl)]
33
#![allow(rustc::untranslatable_diagnostic)]
4+
#![deny(clippy::manual_let_else)]
45
#![feature(assert_matches)]
56
#![feature(box_patterns)]
67
#![feature(if_let_guard)]

compiler/rustc_lint/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
// tidy-alphabetical-start
2323
#![allow(internal_features)]
2424
#![cfg_attr(bootstrap, feature(array_windows))]
25+
#![deny(clippy::manual_let_else)]
2526
#![feature(assert_matches)]
2627
#![feature(box_patterns)]
2728
#![feature(if_let_guard)]

compiler/rustc_middle/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#![allow(rustc::direct_use_of_rustc_type_ir)]
3131
#![allow(rustc::untranslatable_diagnostic)]
3232
#![cfg_attr(bootstrap, feature(array_windows))]
33+
#![deny(clippy::manual_let_else)]
3334
#![feature(allocator_api)]
3435
#![feature(assert_matches)]
3536
#![feature(associated_type_defaults)]

compiler/rustc_next_trait_solver/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#![allow(rustc::direct_use_of_rustc_type_ir)]
99
#![allow(rustc::usage_of_type_ir_inherent)]
1010
#![allow(rustc::usage_of_type_ir_traits)]
11+
#![deny(clippy::manual_let_else)]
1112
// tidy-alphabetical-end
1213

1314
pub mod canonical;

compiler/rustc_resolve/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#![allow(internal_features)]
1111
#![allow(rustc::diagnostic_outside_of_impl)]
1212
#![allow(rustc::untranslatable_diagnostic)]
13+
#![deny(clippy::manual_let_else)]
1314
#![feature(arbitrary_self_types)]
1415
#![feature(assert_matches)]
1516
#![feature(box_patterns)]

0 commit comments

Comments
 (0)