ABSOLUTE_PATHS_NOT_STARTING_WITH_CRATE | The absolute_paths_not_starting_with_crate lint detects fully
qualified paths that start with a module name instead of crate ,
self , or an extern crate name
|
AMBIGUOUS_ASSOCIATED_ITEMS | The ambiguous_associated_items lint detects ambiguity between
associated items and enum variants.
|
ARITHMETIC_OVERFLOW | The arithmetic_overflow lint detects that an arithmetic operation
will overflow.
|
ASM_SUB_REGISTER | The asm_sub_register lint detects using only a subset of a register
for inline asm inputs.
|
BARE_TRAIT_OBJECTS | The bare_trait_objects lint suggests using dyn Trait for trait
objects.
|
BINDINGS_WITH_VARIANT_NAME | The bindings_with_variant_name lint detects pattern bindings with
the same name as one of the matched variants.
|
BROKEN_INTRA_DOC_LINKS | The broken_intra_doc_links lint detects failures in resolving
intra-doc link targets. This is a rustdoc only lint, see the
documentation in the rustdoc book.
|
CENUM_IMPL_DROP_CAST | The cenum_impl_drop_cast lint detects an as cast of a field-less
enum that implements Drop .
|
COHERENCE_LEAK_CHECK | The coherence_leak_check lint detects conflicting implementations of
a trait that are only distinguished by the old leak-check code.
|
CONFLICTING_REPR_HINTS | The conflicting_repr_hints lint detects repr attributes with
conflicting hints.
|
CONST_ERR | The const_err lint detects an erroneous expression while doing
constant evaluation.
|
CONST_EVALUATABLE_UNCHECKED | The const_evaluatable_unchecked lint detects a generic constant used
in a type.
|
CONST_ITEM_MUTATION | The const_item_mutation lint detects attempts to mutate a const
item.
|
DEAD_CODE | The dead_code lint detects unused, unexported items.
|
DEPRECATED | The deprecated lint detects use of deprecated items.
|
DEPRECATED_IN_FUTURE | The deprecated_in_future lint is internal to rustc and should not be
used by user code.
|
ELIDED_LIFETIMES_IN_PATHS | The elided_lifetimes_in_paths lint detects the use of hidden
lifetime parameters.
|
EXPLICIT_OUTLIVES_REQUIREMENTS | The explicit_outlives_requirements lint detects unnecessary
lifetime bounds that can be inferred.
|
EXPORTED_PRIVATE_DEPENDENCIES | The exported_private_dependencies lint detects private dependencies
that are exposed in a public interface.
|
FUNCTION_ITEM_REFERENCES | The function_item_references lint detects function references that are
formatted with fmt::Pointer or transmuted.
|
ILLEGAL_FLOATING_POINT_LITERAL_PATTERN | The illegal_floating_point_literal_pattern lint detects
floating-point literals used in patterns.
|
ILL_FORMED_ATTRIBUTE_INPUT | The ill_formed_attribute_input lint detects ill-formed attribute
inputs that were previously accepted and used in practice.
|
INCOMPLETE_INCLUDE | The incomplete_include lint detects the use of the include!
macro with a file that contains more than one expression.
|
INDIRECT_STRUCTURAL_MATCH | The indirect_structural_match lint detects a const in a pattern
that manually implements PartialEq and Eq .
|
INEFFECTIVE_UNSTABLE_TRAIT_IMPL | |
INLINE_NO_SANITIZE | The inline_no_sanitize lint detects incompatible use of
#[inline(always)] and #[no_sanitize(...)] .
|
INVALID_CODEBLOCK_ATTRIBUTES | The invalid_codeblock_attributes lint detects code block attributes
in documentation examples that have potentially mis-typed values. This
is a rustdoc only lint, see the documentation in the rustdoc book.
|
INVALID_HTML_TAGS | The invalid_html_tags lint detects invalid HTML tags. This is a
rustdoc only lint, see the documentation in the rustdoc book.
|
INVALID_TYPE_PARAM_DEFAULT | The invalid_type_param_default lint detects type parameter defaults
erroneously allowed in an invalid location.
|
IRREFUTABLE_LET_PATTERNS | The irrefutable_let_patterns lint detects detects irrefutable
patterns in if-let and while-let statements.
|
LATE_BOUND_LIFETIME_ARGUMENTS | The late_bound_lifetime_arguments lint detects generic lifetime
arguments in path segments with late bound lifetime parameters.
|
MACRO_EXPANDED_MACRO_EXPORTS_ACCESSED_BY_ABSOLUTE_PATHS | The macro_expanded_macro_exports_accessed_by_absolute_paths lint
detects macro-expanded macro_export macros from the current crate
that cannot be referred to by absolute paths.
|
MACRO_USE_EXTERN_CRATE | The macro_use_extern_crate lint detects the use of the
macro_use attribute.
|
META_VARIABLE_MISUSE | The meta_variable_misuse lint detects possible meta-variable misuse
in macro definitions.
|
MISSING_CRATE_LEVEL_DOCS | The missing_crate_level_docs lint detects if documentation is
missing at the crate root. This is a rustdoc only lint, see the
documentation in the rustdoc book.
|
MISSING_DOC_CODE_EXAMPLES | The missing_doc_code_examples lint detects publicly-exported items
without code samples in their documentation. This is a rustdoc only
lint, see the documentation in the rustdoc book.
|
MISSING_FRAGMENT_SPECIFIER | The missing_fragment_specifier lint is issued when an unused pattern in a
macro_rules! macro definition has a meta-variable (e.g. $e ) that is not
followed by a fragment specifier (e.g. :expr ).
|
MUTABLE_BORROW_RESERVATION_CONFLICT | The mutable_borrow_reservation_conflict lint detects the reservation
of a two-phased borrow that conflicts with other shared borrows.
|
NONTRIVIAL_STRUCTURAL_MATCH | The nontrivial_structural_match lint detects constants that are used in patterns,
whose type is not structural-match and whose initializer body actually uses values
that are not structural-match. So Option<NotStruturalMatch> is ok if the constant
is just None .
|
NON_AUTOLINKS | The non_autolinks lint detects when a URL could be written using
only angle brackets. This is a rustdoc only lint, see the
documentation in the rustdoc book.
|
ORDER_DEPENDENT_TRAIT_OBJECTS | The order_dependent_trait_objects lint detects a trait coherency
violation that would allow creating two trait impls for the same
dynamic trait object involving marker traits.
|
OVERLAPPING_RANGE_ENDPOINTS | The overlapping_range_endpoints lint detects match arms that have range patterns that
overlap on their endpoints.
|
PATTERNS_IN_FNS_WITHOUT_BODY | The patterns_in_fns_without_body lint detects mut identifier
patterns as a parameter in functions without a body.
|
POINTER_STRUCTURAL_MATCH | The pointer_structural_match lint detects pointers used in patterns whose behaviour
cannot be relied upon across compiler versions and optimization levels.
|
PRIVATE_DOC_TESTS | The private_doc_tests lint detects code samples in docs of private
items not documented by rustdoc . This is a rustdoc only lint, see
the documentation in the rustdoc book.
|
PRIVATE_INTRA_DOC_LINKS | This is a subset of broken_intra_doc_links that warns when linking from
a public item to a private one. This is a rustdoc only lint, see the
documentation in the rustdoc book.
|
PRIVATE_IN_PUBLIC | The private_in_public lint detects private items in public
interfaces not caught by the old implementation.
|
PROC_MACRO_DERIVE_RESOLUTION_FALLBACK | The proc_macro_derive_resolution_fallback lint detects proc macro
derives using inaccessible names from parent modules.
|
PUB_USE_OF_PRIVATE_EXTERN_CRATE | The pub_use_of_private_extern_crate lint detects a specific
situation of re-exporting a private extern crate .
|
RENAMED_AND_REMOVED_LINTS | The renamed_and_removed_lints lint detects lints that have been
renamed or removed.
|
SAFE_PACKED_BORROWS | The safe_packed_borrows lint detects borrowing a field in the
interior of a packed structure with alignment other than 1.
|
SINGLE_USE_LIFETIMES | The single_use_lifetimes lint detects lifetimes that are only used
once.
|
SOFT_UNSTABLE | The soft_unstable lint detects unstable features that were
unintentionally allowed on stable.
|
STABLE_FEATURES | The stable_features lint detects a feature attribute that
has since been made stable.
|
TRIVIAL_CASTS | The trivial_casts lint detects trivial casts which could be replaced
with coercion, which may require type ascription or a temporary
variable.
|
TRIVIAL_NUMERIC_CASTS | The trivial_numeric_casts lint detects trivial numeric casts of types
which could be removed.
|
TYVAR_BEHIND_RAW_POINTER | The tyvar_behind_raw_pointer lint detects raw pointer to an
inference variable.
|
UNALIGNED_REFERENCES | The unaligned_references lint detects unaligned references to fields
of packed structs.
|
UNCONDITIONAL_PANIC | The unconditional_panic lint detects an operation that will cause a
panic at runtime.
|
UNCONDITIONAL_RECURSION | The unconditional_recursion lint detects functions that cannot
return without calling themselves.
|
UNINHABITED_STATIC | The uninhabited_static lint detects uninhabited statics.
|
UNKNOWN_CRATE_TYPES | The unknown_crate_types lint detects an unknown crate type found in
a crate_type attribute.
|
UNKNOWN_LINTS | The unknown_lints lint detects unrecognized lint attribute.
|
UNREACHABLE_CODE | The unreachable_code lint detects unreachable code paths.
|
UNREACHABLE_PATTERNS | The unreachable_patterns lint detects unreachable patterns.
|
UNSAFE_OP_IN_UNSAFE_FN | The unsafe_op_in_unsafe_fn lint detects unsafe operations in unsafe
functions without an explicit unsafe block. This lint only works on
the nightly channel with the
#![feature(unsafe_block_in_unsafe_fn)] feature.
|
UNSTABLE_NAME_COLLISIONS | The unstable_name_collisions lint detects that you have used a name
that the standard library plans to add in the future.
|
UNSUPPORTED_NAKED_FUNCTIONS | The unsupported_naked_functions lint detects naked function
definitions that are unsupported but were previously accepted.
|
UNUSED_ASSIGNMENTS | The unused_assignments lint detects assignments that will never be read.
|
UNUSED_ATTRIBUTES | The unused_attributes lint detects attributes that were not used by
the compiler.
|
UNUSED_CRATE_DEPENDENCIES | The unused_crate_dependencies lint detects crate dependencies that
are never used.
|
UNUSED_DOC_COMMENTS | The unused_doc_comments lint detects doc comments that aren't used
by rustdoc .
|
UNUSED_EXTERN_CRATES | The unused_extern_crates lint guards against extern crate items
that are never used.
|
UNUSED_FEATURES | The unused_features lint detects unused or unknown features found in
crate-level feature attributes.
|
UNUSED_IMPORTS | The unused_imports lint detects imports that are never used.
|
UNUSED_LABELS | The unused_labels lint detects labels that are never used.
|
UNUSED_LIFETIMES | The unused_lifetimes lint detects lifetime parameters that are never
used.
|
UNUSED_MACROS | The unused_macros lint detects macros that were not used.
|
UNUSED_MUT | The unused_mut lint detects mut variables which don't need to be
mutable.
|
UNUSED_QUALIFICATIONS | The unused_qualifications lint detects unnecessarily qualified
names.
|
UNUSED_UNSAFE | The unused_unsafe lint detects unnecessary use of an unsafe block.
|
UNUSED_VARIABLES | The unused_variables lint detects variables which are not used in
any way.
|
USELESS_DEPRECATED | The useless_deprecated lint detects deprecation attributes with no effect.
|
WARNINGS | The warnings lint allows you to change the level of other
lints which produce warnings.
|
WHERE_CLAUSES_OBJECT_SAFETY | The where_clauses_object_safety lint detects for object safety of
where clauses.
|