about summary refs log tree commit diff
path: root/clippy_lints/src/utils
diff options
context:
space:
mode:
authorcsmoe <csmoe@msn.com>2023-02-27 11:57:32 +0000
committercsmoe <csmoe@msn.com>2023-03-20 22:51:01 +0800
commit4fdae81c70bfa1481eebc7ebec09f121c6eaf53c (patch)
tree5d752395d7de7997d4e806c3ecaff5643197a99e /clippy_lints/src/utils
parentba7fd68e87cd13ece77baa83684396c8b9cbc633 (diff)
downloadrust-4fdae81c70bfa1481eebc7ebec09f121c6eaf53c.tar.gz
rust-4fdae81c70bfa1481eebc7ebec09f121c6eaf53c.zip
add large future lint
Diffstat (limited to 'clippy_lints/src/utils')
-rw-r--r--clippy_lints/src/utils/conf.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/clippy_lints/src/utils/conf.rs b/clippy_lints/src/utils/conf.rs
index 5f74de5a288..639f8d95877 100644
--- a/clippy_lints/src/utils/conf.rs
+++ b/clippy_lints/src/utils/conf.rs
@@ -459,6 +459,10 @@ define_Conf! {
     /// Whether to **only** check for missing documentation in items visible within the current
     /// crate. For example, `pub(crate)` items.
     (missing_docs_in_crate_items: bool = false),
+    /// Lint: LARGE_FUTURES.
+    ///
+    /// The maximum byte size a `Future` can have, before it triggers the `clippy::large_futures` lint
+    (future_size_threshold: u64 = 16 * 1024),
 }
 
 /// Search for the configuration file.