Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Re-export diagnostics such that clients of hir don’t have to depend on low-level crates.

This probably isn’t the best way to do this – ideally, diagnostics should be expressed in terms of hir types themselves.

Macros§

diagnostics 🔒

Structs§

AwaitOutsideOfAsync
BadRtn
BreakOutsideOfLoop
CastToUnsized
DuplicateField
ElidedLifetimesInPath
ExpectedFunction
FunctionalRecordUpdateOnNonStruct
GenericArgsProhibited
GenericDefaultRefersToSelf
InactiveCode
IncoherentImpl
IncorrectCase
IncorrectGenericsLen
IncorrectGenericsOrder
InvalidCast
InvalidDeriveTarget
InvalidLhsOfAssignment
MacroDefError
MacroError
MacroExpansionParseError
MalformedDerive
MismatchedArgCount
MismatchedArrayPatLen
MismatchedTupleStructPatArgCount
MissingFields
MissingLifetime
MissingMatchArms
MissingUnsafe
MovedOutOfRef
NeedMut
NoSuchField
NonExhaustiveLet
NonExhaustiveRecordExpr
ParenthesizedGenericArgsWithoutFnTrait
PatternArgInExternFn
PrivateAssocItem
PrivateField
RemoveTrailingReturn
RemoveUnnecessaryElse
ReplaceFilterMapNextWithFindMap
TraitImplIncorrectSafety
TraitImplMissingAssocItems
TraitImplOrphan
TraitImplRedundantAssocItems
TypeMismatch
TypeMustBeKnown
TypedHole
UndeclaredLabel
UnimplementedBuiltinMacro
UnimplementedTrait
UnionExprMustHaveExactlyOneField
UnreachableLabel
UnresolvedAssocItem
UnresolvedExternCrate
UnresolvedField
UnresolvedIdent
UnresolvedImport
UnresolvedMacroCall
UnresolvedMethodCall
UnresolvedModule
UnusedMustUse
UnusedMut
UnusedVariable

Enums§

AnyDiagnostic
CaseType
GenericArgKind
GenericArgsProhibitedReason
IncorrectGenericsLenKind
SpanAst
UnsafeLint
VariantId

Functions§

path_generics_source_to_ast 🔒

Type Aliases§

SpanSyntax