about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/stack.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-10-11 11:14:47 +0000
committerbors <bors@rust-lang.org>2021-10-11 11:14:47 +0000
commit6ae8912a3e7d2c4c775024f58a7ba4b1aedc4073 (patch)
treeb1a74ad359f85c8805121858b0a93e86ff638875 /compiler/rustc_data_structures/src/stack.rs
parent86d6d2b7389fe1b339402c1798edae8b695fc9ef (diff)
parent14b6cf6fd72f17f52f71b5fb79833489fb259bb3 (diff)
downloadrust-6ae8912a3e7d2c4c775024f58a7ba4b1aedc4073.tar.gz
rust-6ae8912a3e7d2c4c775024f58a7ba4b1aedc4073.zip
Auto merge of #89709 - clemenswasser:apply_clippy_suggestions_2, r=petrochenkov
Apply clippy suggestions for rustc and core
Diffstat (limited to 'compiler/rustc_data_structures/src/stack.rs')
-rw-r--r--compiler/rustc_data_structures/src/stack.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/stack.rs b/compiler/rustc_data_structures/src/stack.rs
index a4964b7aa0c..ba22c7f9b97 100644
--- a/compiler/rustc_data_structures/src/stack.rs
+++ b/compiler/rustc_data_structures/src/stack.rs
@@ -5,6 +5,7 @@ const RED_ZONE: usize = 100 * 1024; // 100k
 
 // Only the first stack that is pushed, grows exponentially (2^n * STACK_PER_RECURSION) from then
 // on. This flag has performance relevant characteristics. Don't set it too high.
+#[allow(clippy::identity_op)]
 const STACK_PER_RECURSION: usize = 1 * 1024 * 1024; // 1MB
 
 /// Grows the stack on demand to prevent stack overflow. Call this in strategic locations