Module mun_hir::diagnostics[][src]

Structs

AccessUnknownField
BreakOutsideLoop
BreakWithValueOutsideLoop
CannotApplyBinaryOp
CannotApplyUnaryOp
CyclicType
DiagnosticSink
DuplicateDefinition
ExpectedFunction
ExternCannotHaveBody
ExternNonPrimitiveParam
FieldCountMismatch
FreeTypeAliasWithoutTypeRef
ImportDuplicateDefinition
IncompatibleBranch
IntLiteralTooLarge

An error that is emitted if a literal is too large to even parse

InvalidFloatingPointLiteral

An error that is emitted for a literal with a floating point suffix with a non 10 base (e.g. 0x123_f32)

InvalidLHS
InvalidLiteral

An error that is emitted for a malformed literal (e.g. 0b22222)

InvalidLiteralSuffix

An error that is emitted for a literal with an invalid suffix (e.g. 123_foo)

LiteralOutOfRange

An error that is emitted if a literal is too large for its suffix

MismatchedStructLit
MismatchedType
MissingElseBranch
MissingFields
NoFields
NoSuchField
ParameterCountMismatch
PossiblyUninitializedVariable
PrivateAccess
ReturnMissingExpression
UnresolvedImport
UnresolvedType
UnresolvedValue

Traits

AstDiagnostic
Diagnostic

Diagnostic defines hir API for errors and warnings.