add large future lint

This commit is contained in:
csmoe 2023-02-27 11:57:32 +00:00
parent ba7fd68e87
commit 4fdae81c70
13 changed files with 292 additions and 1 deletions

View file

@ -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.