Skip to main content

Conf

Struct Conf 

Source
pub struct Conf {
Show 98 fields pub absolute_paths_allowed_crates: FxHashSet<Symbol>, pub absolute_paths_max_segments: u64, pub accept_comment_above_attributes: bool, pub accept_comment_above_statement: bool, pub allow_comparison_to_zero: bool, pub allow_dbg_in_tests: bool, pub allow_exact_repetitions: bool, pub allow_expect_in_consts: bool, pub allow_expect_in_tests: bool, pub allow_indexing_slicing_in_tests: bool, pub allow_large_stack_frames_in_tests: bool, pub allow_mixed_uninlined_format_args: bool, pub allow_one_hash_in_raw_strings: bool, pub allow_panic_in_tests: bool, pub allow_print_in_tests: bool, pub allow_private_module_inception: bool, pub allow_renamed_params_for: Vec<String>, pub allow_unwrap_in_consts: bool, pub allow_unwrap_in_tests: bool, pub allow_unwrap_types: Vec<String>, pub allow_useless_vec_in_tests: bool, pub allowed_dotfiles: Vec<String>, pub allowed_duplicate_crates: FxHashSet<String>, pub allowed_idents_below_min_chars: FxHashSet<String>, pub allowed_prefixes: Vec<String>, pub allowed_scripts: Vec<String>, pub allowed_wildcard_imports: FxHashSet<String>, pub arithmetic_side_effects_allowed: Vec<String>, pub arithmetic_side_effects_allowed_binary: Vec<[String; 2]>, pub arithmetic_side_effects_allowed_unary: Vec<String>, pub array_size_threshold: u64, pub avoid_breaking_exported_api: bool, pub await_holding_invalid_types: Vec<DisallowedPathWithoutReplacement>, pub cargo_ignore_publish: bool, pub check_grouped_late_init: bool, pub check_incompatible_msrv_in_tests: bool, pub check_inconsistent_struct_field_initializers: bool, pub check_private_items: bool, pub cognitive_complexity_threshold: u64, pub const_literal_digits_threshold: u32, pub disallowed_fields: Vec<DisallowedPath>, pub disallowed_macros: Vec<DisallowedPath>, pub disallowed_methods: Vec<DisallowedPath>, pub disallowed_names: Vec<String>, pub disallowed_types: Vec<DisallowedPath>, pub doc_valid_idents: FxHashSet<String>, pub enable_raw_pointer_heuristic_for_send: bool, pub enforce_iter_loop_reborrow: bool, pub enforced_import_renames: Vec<Rename>, pub enum_variant_name_threshold: u64, pub enum_variant_size_threshold: u64, pub excessive_nesting_threshold: u64, pub future_size_threshold: u64, pub ignore_interior_mutability: Vec<String>, pub inherent_impl_lint_scope: InherentImplLintScope, pub large_error_ignored: Vec<String>, pub large_error_threshold: u64, pub lint_commented_code: bool, pub lint_inconsistent_struct_field_initializers: bool, pub literal_representation_threshold: u64, pub matches_for_let_else: MatchLintBehaviour, pub max_fn_params_bools: u64, pub max_include_file_size: u64, pub max_struct_bools: u64, pub max_suggested_slice_pattern_length: u64, pub max_trait_bounds: u64, pub min_ident_chars_lint_trait_impl: bool, pub min_ident_chars_threshold: u64, pub missing_docs_allow_unused: bool, pub missing_docs_in_crate_items: bool, pub module_item_order_groupings: SourceItemOrderingModuleItemGroupings, pub module_items_ordered_within_groupings: SourceItemOrderingWithinModuleItemGroupings, pub msrv: Option<RustcVersion>, pub pass_by_value_size_limit: u64, pub pub_underscore_fields_behavior: PubUnderscoreFieldsBehaviour, pub recursive_self_in_type_definitions: bool, pub semicolon_inside_block_ignore_singleline: bool, pub semicolon_outside_block_ignore_multiline: bool, pub single_char_binding_names_threshold: u64, pub source_item_ordering: SourceItemOrdering, pub stack_size_threshold: u64, pub standard_macro_braces: Vec<MacroMatcher>, pub struct_field_name_threshold: u64, pub suppress_restriction_lint_in_const: bool, pub too_large_for_stack: u64, pub too_many_arguments_threshold: u64, pub too_many_lines_threshold: u64, pub trait_assoc_item_kinds_order: SourceItemOrderingTraitAssocItemKinds, pub trait_impl_item_order: TraitImplItemOrder, pub trivial_copy_size_limit: Option<u64>, pub type_complexity_threshold: u64, pub unnecessary_box_size: u64, pub unreadable_literal_lint_fractions: bool, pub upper_case_acronyms_aggressive: bool, pub vec_box_size_threshold: u64, pub verbose_bit_mask_threshold: u64, pub warn_on_all_wildcard_imports: bool, pub warn_unsafe_macro_metavars_in_private_macros: bool,
}
Expand description

Clippy lint configuration

Fields§

§absolute_paths_allowed_crates: FxHashSet<Symbol>§absolute_paths_max_segments: u64§accept_comment_above_attributes: bool§accept_comment_above_statement: bool§allow_comparison_to_zero: bool§allow_dbg_in_tests: bool§allow_exact_repetitions: bool§allow_expect_in_consts: bool§allow_expect_in_tests: bool§allow_indexing_slicing_in_tests: bool§allow_large_stack_frames_in_tests: bool§allow_mixed_uninlined_format_args: bool§allow_one_hash_in_raw_strings: bool§allow_panic_in_tests: bool§allow_print_in_tests: bool§allow_private_module_inception: bool§allow_renamed_params_for: Vec<String>§allow_unwrap_in_consts: bool§allow_unwrap_in_tests: bool§allow_unwrap_types: Vec<String>§allow_useless_vec_in_tests: bool§allowed_dotfiles: Vec<String>§allowed_duplicate_crates: FxHashSet<String>§allowed_idents_below_min_chars: FxHashSet<String>§allowed_prefixes: Vec<String>§allowed_scripts: Vec<String>§allowed_wildcard_imports: FxHashSet<String>§arithmetic_side_effects_allowed: Vec<String>§arithmetic_side_effects_allowed_binary: Vec<[String; 2]>§arithmetic_side_effects_allowed_unary: Vec<String>§array_size_threshold: u64§avoid_breaking_exported_api: bool§await_holding_invalid_types: Vec<DisallowedPathWithoutReplacement>§cargo_ignore_publish: bool§check_grouped_late_init: bool§check_incompatible_msrv_in_tests: bool§check_inconsistent_struct_field_initializers: bool§check_private_items: bool§cognitive_complexity_threshold: u64§const_literal_digits_threshold: u32§disallowed_fields: Vec<DisallowedPath>§disallowed_macros: Vec<DisallowedPath>§disallowed_methods: Vec<DisallowedPath>§disallowed_names: Vec<String>§disallowed_types: Vec<DisallowedPath>§doc_valid_idents: FxHashSet<String>§enable_raw_pointer_heuristic_for_send: bool§enforce_iter_loop_reborrow: bool§enforced_import_renames: Vec<Rename>§enum_variant_name_threshold: u64§enum_variant_size_threshold: u64§excessive_nesting_threshold: u64§future_size_threshold: u64§ignore_interior_mutability: Vec<String>§inherent_impl_lint_scope: InherentImplLintScope§large_error_ignored: Vec<String>§large_error_threshold: u64§lint_commented_code: bool§lint_inconsistent_struct_field_initializers: bool§literal_representation_threshold: u64§matches_for_let_else: MatchLintBehaviour§max_fn_params_bools: u64§max_include_file_size: u64§max_struct_bools: u64§max_suggested_slice_pattern_length: u64§max_trait_bounds: u64§min_ident_chars_lint_trait_impl: bool§min_ident_chars_threshold: u64§missing_docs_allow_unused: bool§missing_docs_in_crate_items: bool§module_item_order_groupings: SourceItemOrderingModuleItemGroupings§module_items_ordered_within_groupings: SourceItemOrderingWithinModuleItemGroupings§msrv: Option<RustcVersion>§pass_by_value_size_limit: u64§pub_underscore_fields_behavior: PubUnderscoreFieldsBehaviour§recursive_self_in_type_definitions: bool§semicolon_inside_block_ignore_singleline: bool§semicolon_outside_block_ignore_multiline: bool§single_char_binding_names_threshold: u64§source_item_ordering: SourceItemOrdering§stack_size_threshold: u64§standard_macro_braces: Vec<MacroMatcher>§struct_field_name_threshold: u64§suppress_restriction_lint_in_const: bool§too_large_for_stack: u64§too_many_arguments_threshold: u64§too_many_lines_threshold: u64§trait_assoc_item_kinds_order: SourceItemOrderingTraitAssocItemKinds§trait_impl_item_order: TraitImplItemOrder§trivial_copy_size_limit: Option<u64>§type_complexity_threshold: u64§unnecessary_box_size: u64§unreadable_literal_lint_fractions: bool§upper_case_acronyms_aggressive: bool§vec_box_size_threshold: u64§verbose_bit_mask_threshold: u64§warn_on_all_wildcard_imports: bool§warn_unsafe_macro_metavars_in_private_macros: bool

Implementations§

Source§

impl Conf

Source

pub fn get_metadata() -> Vec<ConfMetadata>

Source

fn deserialize(dcx: &DiagCtxt<'_>, table: &DeTable<'_>) -> Self

Source§

impl Conf

Source

pub fn load(sess: &Session) -> &'static Conf

Source

fn load_inner(sess: &Session) -> Conf

Trait Implementations§

Source§

impl Default for Conf

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl DynSend for Conf

§

impl DynSync for Conf

§

impl Freeze for Conf

§

impl RefUnwindSafe for Conf

§

impl Send for Conf

§

impl Sync for Conf

§

impl Unpin for Conf

§

impl UnsafeUnpin for Conf

§

impl UnwindSafe for Conf

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 1064 bytes