rustc_lint

Trait LintPass

Source
pub trait LintPass {
    // Required methods
    fn name(&self) -> &'static str;
    fn get_lints(&self) -> Vec<&'static Lint>;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn get_lints(&self) -> Vec<&'static Lint>

Implementors§

Source§

impl LintPass for AsyncClosureUsage

Source§

impl LintPass for AsyncFnInTrait

Source§

impl LintPass for AnonymousParameters

Source§

impl LintPass for AsmLabels

Source§

impl LintPass for DeprecatedAttr

Source§

impl LintPass for DerefNullPtr

Source§

impl LintPass for EllipsisInclusiveRangePatterns

Source§

impl LintPass for ExplicitOutlivesRequirements

Source§

impl LintPass for HardwiredLints

Source§

impl LintPass for IncompleteInternalFeatures

Source§

impl LintPass for InvalidNoMangleItems

Source§

impl LintPass for InvalidValue

Source§

impl LintPass for KeywordIdents

Source§

impl LintPass for MissingCopyImplementations

Source§

impl LintPass for MissingDebugImplementations

Source§

impl LintPass for MissingDoc

Source§

impl LintPass for MutableTransmutes

Source§

impl LintPass for NonShorthandFieldPatterns

Source§

impl LintPass for SoftLints

Source§

impl LintPass for SpecialModuleName

Source§

impl LintPass for TrivialConstraints

Source§

impl LintPass for TypeAliasBounds

Source§

impl LintPass for UngatedAsyncFnTrackCaller

Source§

impl LintPass for UnreachablePub

Source§

impl LintPass for UnsafeCode

Source§

impl LintPass for UnstableFeatures

Source§

impl LintPass for UnusedDocComment

Source§

impl LintPass for WhileTrue

Source§

impl LintPass for DanglingPointers

Source§

impl LintPass for DerefIntoDynSupertrait

Source§

impl LintPass for DropForgetUseless

Source§

impl LintPass for RuntimeCombinedEarlyLintPass<'_>

Source§

impl LintPass for EnumIntrinsicsNonEnums

Source§

impl LintPass for ForLoopsOverFallibles

Source§

impl LintPass for HiddenUnicodeCodepoints

Source§

impl LintPass for IfLetRescope

Source§

impl LintPass for ImplTraitOvercaptures

Source§

impl LintPass for BadOptAccess

Source§

impl LintPass for DefaultHashTypes

Source§

impl LintPass for Diagnostics

Source§

impl LintPass for ExistingDocKeyword

Source§

impl LintPass for LintPassImpl

Source§

impl LintPass for QueryStability

Source§

impl LintPass for SpanUseEqCtxt

Source§

impl LintPass for TyTyKind

Source§

impl LintPass for TypeIr

Source§

impl LintPass for InvalidFromUtf8

Source§

impl LintPass for RuntimeCombinedLateLintPass<'_, '_>

Source§

impl LintPass for LetUnderscore

Source§

impl LintPass for Expr2024

Source§

impl LintPass for MapUnitFn

Source§

impl LintPass for MultipleSupertraitUpcastable

Source§

impl LintPass for NonAsciiIdents

Source§

impl LintPass for NonPanicFmt

Source§

impl LintPass for NonLocalDefinitions

Source§

impl LintPass for NonCamelCaseTypes

Source§

impl LintPass for NonSnakeCase

Source§

impl LintPass for NonUpperCaseGlobals

Source§

impl LintPass for NoopMethodCall

Source§

impl LintPass for OpaqueHiddenInferredBound

Source§

impl LintPass for PassByValue

Source§

impl LintPass for Precedence

Source§

impl LintPass for PtrNullChecks

Source§

impl LintPass for RedundantSemicolons

Source§

impl LintPass for InvalidReferenceCasting

Source§

impl LintPass for ShadowedIntoIter

Source§

impl LintPass for StaticMutRefs

Source§

impl LintPass for BuiltinCombinedEarlyLintPass

Source§

impl LintPass for BuiltinCombinedModuleLateLintPass

Source§

impl LintPass for BuiltinCombinedPreExpansionLintPass

Source§

impl LintPass for TailExprDropOrder

Source§

impl LintPass for DropTraitConstraints

Source§

impl LintPass for ImproperCTypesDeclarations

Source§

impl LintPass for ImproperCTypesDefinitions

Source§

impl LintPass for InvalidAtomicOrdering

Source§

impl LintPass for TypeLimits

Source§

impl LintPass for VariantSizeDifferences

Source§

impl LintPass for UnitBindings

Source§

impl LintPass for UnqualifiedLocalImports

Source§

impl LintPass for PathStatements

Source§

impl LintPass for UnusedAllocation

Source§

impl LintPass for UnusedBraces

Source§

impl LintPass for UnusedImportBraces

Source§

impl LintPass for UnusedParens

Source§

impl LintPass for UnusedResults