pub enum Warning {
Show 21 variants
NonClassCaseStructName {
struct_name: Ident,
},
NonClassCaseTraitName {
name: Ident,
},
NonClassCaseEnumName {
enum_name: Ident,
},
NonClassCaseEnumVariantName {
variant_name: Ident,
},
NonSnakeCaseStructFieldName {
field_name: Ident,
},
NonSnakeCaseFunctionName {
name: Ident,
},
NonScreamingSnakeCaseConstName {
name: Ident,
},
LossOfPrecision {
initial_type: IntegerBits,
cast_to: IntegerBits,
},
UnusedReturnValue {
type: TypeInfo,
},
SimilarMethodFound {
lib: Ident,
module: Ident,
name: Ident,
},
ShadowsOtherSymbol {
name: String,
},
OverridingTraitImplementation,
DeadDeclaration,
DeadFunctionDeclaration,
DeadStructDeclaration,
DeadTrait,
UnreachableCode,
DeadEnumVariant {
variant_name: String,
},
DeadMethod,
StructFieldNeverRead,
ShadowingReservedRegister {
reg_name: Ident,
},
}
Variants
NonClassCaseStructName
Fields
struct_name: Ident
NonClassCaseTraitName
Fields
name: Ident
NonClassCaseEnumName
Fields
enum_name: Ident
NonClassCaseEnumVariantName
Fields
variant_name: Ident
NonSnakeCaseStructFieldName
Fields
field_name: Ident
NonSnakeCaseFunctionName
Fields
name: Ident
NonScreamingSnakeCaseConstName
Fields
name: Ident
LossOfPrecision
UnusedReturnValue
Fields
type: TypeInfo
SimilarMethodFound
ShadowsOtherSymbol
Fields
name: String
OverridingTraitImplementation
DeadDeclaration
DeadFunctionDeclaration
DeadStructDeclaration
DeadTrait
UnreachableCode
DeadEnumVariant
Fields
variant_name: String
DeadMethod
StructFieldNeverRead
ShadowingReservedRegister
Fields
reg_name: Ident
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Warning
impl UnwindSafe for Warning
Blanket Implementations
Mutably borrows from an owned value. Read more