Enum ra_ap_hir::diagnostics::AnyDiagnostic
source · pub enum AnyDiagnostic {
Show 44 variants
BreakOutsideOfLoop(Box<BreakOutsideOfLoop>),
ExpectedFunction(Box<ExpectedFunction>),
InactiveCode(Box<InactiveCode>),
IncoherentImpl(Box<IncoherentImpl>),
IncorrectCase(Box<IncorrectCase>),
InvalidDeriveTarget(Box<InvalidDeriveTarget>),
MacroDefError(Box<MacroDefError>),
MacroError(Box<MacroError>),
MacroExpansionParseError(Box<MacroExpansionParseError>),
MalformedDerive(Box<MalformedDerive>),
MismatchedArgCount(Box<MismatchedArgCount>),
MismatchedTupleStructPatArgCount(Box<MismatchedTupleStructPatArgCount>),
MissingFields(Box<MissingFields>),
MissingMatchArms(Box<MissingMatchArms>),
MissingUnsafe(Box<MissingUnsafe>),
MovedOutOfRef(Box<MovedOutOfRef>),
NeedMut(Box<NeedMut>),
NonExhaustiveLet(Box<NonExhaustiveLet>),
NoSuchField(Box<NoSuchField>),
PrivateAssocItem(Box<PrivateAssocItem>),
PrivateField(Box<PrivateField>),
RemoveTrailingReturn(Box<RemoveTrailingReturn>),
RemoveUnnecessaryElse(Box<RemoveUnnecessaryElse>),
ReplaceFilterMapNextWithFindMap(Box<ReplaceFilterMapNextWithFindMap>),
TraitImplIncorrectSafety(Box<TraitImplIncorrectSafety>),
TraitImplMissingAssocItems(Box<TraitImplMissingAssocItems>),
TraitImplOrphan(Box<TraitImplOrphan>),
TraitImplRedundantAssocItems(Box<TraitImplRedundantAssocItems>),
TypedHole(Box<TypedHole>),
TypeMismatch(Box<TypeMismatch>),
UndeclaredLabel(Box<UndeclaredLabel>),
UnimplementedBuiltinMacro(Box<UnimplementedBuiltinMacro>),
UnreachableLabel(Box<UnreachableLabel>),
UnresolvedAssocItem(Box<UnresolvedAssocItem>),
UnresolvedExternCrate(Box<UnresolvedExternCrate>),
UnresolvedField(Box<UnresolvedField>),
UnresolvedImport(Box<UnresolvedImport>),
UnresolvedMacroCall(Box<UnresolvedMacroCall>),
UnresolvedMethodCall(Box<UnresolvedMethodCall>),
UnresolvedModule(Box<UnresolvedModule>),
UnresolvedIdent(Box<UnresolvedIdent>),
UnresolvedProcMacro(Box<UnresolvedProcMacro>),
UnusedMut(Box<UnusedMut>),
UnusedVariable(Box<UnusedVariable>),
}
Variants§
BreakOutsideOfLoop(Box<BreakOutsideOfLoop>)
ExpectedFunction(Box<ExpectedFunction>)
InactiveCode(Box<InactiveCode>)
IncoherentImpl(Box<IncoherentImpl>)
IncorrectCase(Box<IncorrectCase>)
InvalidDeriveTarget(Box<InvalidDeriveTarget>)
MacroDefError(Box<MacroDefError>)
MacroError(Box<MacroError>)
MacroExpansionParseError(Box<MacroExpansionParseError>)
MalformedDerive(Box<MalformedDerive>)
MismatchedArgCount(Box<MismatchedArgCount>)
MismatchedTupleStructPatArgCount(Box<MismatchedTupleStructPatArgCount>)
MissingFields(Box<MissingFields>)
MissingMatchArms(Box<MissingMatchArms>)
MissingUnsafe(Box<MissingUnsafe>)
MovedOutOfRef(Box<MovedOutOfRef>)
NeedMut(Box<NeedMut>)
NonExhaustiveLet(Box<NonExhaustiveLet>)
NoSuchField(Box<NoSuchField>)
PrivateAssocItem(Box<PrivateAssocItem>)
PrivateField(Box<PrivateField>)
RemoveTrailingReturn(Box<RemoveTrailingReturn>)
RemoveUnnecessaryElse(Box<RemoveUnnecessaryElse>)
ReplaceFilterMapNextWithFindMap(Box<ReplaceFilterMapNextWithFindMap>)
TraitImplIncorrectSafety(Box<TraitImplIncorrectSafety>)
TraitImplMissingAssocItems(Box<TraitImplMissingAssocItems>)
TraitImplOrphan(Box<TraitImplOrphan>)
TraitImplRedundantAssocItems(Box<TraitImplRedundantAssocItems>)
TypedHole(Box<TypedHole>)
TypeMismatch(Box<TypeMismatch>)
UndeclaredLabel(Box<UndeclaredLabel>)
UnimplementedBuiltinMacro(Box<UnimplementedBuiltinMacro>)
UnreachableLabel(Box<UnreachableLabel>)
UnresolvedAssocItem(Box<UnresolvedAssocItem>)
UnresolvedExternCrate(Box<UnresolvedExternCrate>)
UnresolvedField(Box<UnresolvedField>)
UnresolvedImport(Box<UnresolvedImport>)
UnresolvedMacroCall(Box<UnresolvedMacroCall>)
UnresolvedMethodCall(Box<UnresolvedMethodCall>)
UnresolvedModule(Box<UnresolvedModule>)
UnresolvedIdent(Box<UnresolvedIdent>)
UnresolvedProcMacro(Box<UnresolvedProcMacro>)
UnusedMut(Box<UnusedMut>)
UnusedVariable(Box<UnusedVariable>)
Trait Implementations§
source§impl Debug for AnyDiagnostic
impl Debug for AnyDiagnostic
source§impl From<BreakOutsideOfLoop> for AnyDiagnostic
impl From<BreakOutsideOfLoop> for AnyDiagnostic
source§fn from(d: BreakOutsideOfLoop) -> AnyDiagnostic
fn from(d: BreakOutsideOfLoop) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<ExpectedFunction> for AnyDiagnostic
impl From<ExpectedFunction> for AnyDiagnostic
source§fn from(d: ExpectedFunction) -> AnyDiagnostic
fn from(d: ExpectedFunction) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<InactiveCode> for AnyDiagnostic
impl From<InactiveCode> for AnyDiagnostic
source§fn from(d: InactiveCode) -> AnyDiagnostic
fn from(d: InactiveCode) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<IncoherentImpl> for AnyDiagnostic
impl From<IncoherentImpl> for AnyDiagnostic
source§fn from(d: IncoherentImpl) -> AnyDiagnostic
fn from(d: IncoherentImpl) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<IncorrectCase> for AnyDiagnostic
impl From<IncorrectCase> for AnyDiagnostic
source§fn from(d: IncorrectCase) -> AnyDiagnostic
fn from(d: IncorrectCase) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<InvalidDeriveTarget> for AnyDiagnostic
impl From<InvalidDeriveTarget> for AnyDiagnostic
source§fn from(d: InvalidDeriveTarget) -> AnyDiagnostic
fn from(d: InvalidDeriveTarget) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<MacroDefError> for AnyDiagnostic
impl From<MacroDefError> for AnyDiagnostic
source§fn from(d: MacroDefError) -> AnyDiagnostic
fn from(d: MacroDefError) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<MacroError> for AnyDiagnostic
impl From<MacroError> for AnyDiagnostic
source§fn from(d: MacroError) -> AnyDiagnostic
fn from(d: MacroError) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<MacroExpansionParseError> for AnyDiagnostic
impl From<MacroExpansionParseError> for AnyDiagnostic
source§fn from(d: MacroExpansionParseError) -> AnyDiagnostic
fn from(d: MacroExpansionParseError) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<MalformedDerive> for AnyDiagnostic
impl From<MalformedDerive> for AnyDiagnostic
source§fn from(d: MalformedDerive) -> AnyDiagnostic
fn from(d: MalformedDerive) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<MismatchedArgCount> for AnyDiagnostic
impl From<MismatchedArgCount> for AnyDiagnostic
source§fn from(d: MismatchedArgCount) -> AnyDiagnostic
fn from(d: MismatchedArgCount) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<MismatchedTupleStructPatArgCount> for AnyDiagnostic
impl From<MismatchedTupleStructPatArgCount> for AnyDiagnostic
source§fn from(d: MismatchedTupleStructPatArgCount) -> AnyDiagnostic
fn from(d: MismatchedTupleStructPatArgCount) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<MissingFields> for AnyDiagnostic
impl From<MissingFields> for AnyDiagnostic
source§fn from(d: MissingFields) -> AnyDiagnostic
fn from(d: MissingFields) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<MissingMatchArms> for AnyDiagnostic
impl From<MissingMatchArms> for AnyDiagnostic
source§fn from(d: MissingMatchArms) -> AnyDiagnostic
fn from(d: MissingMatchArms) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<MissingUnsafe> for AnyDiagnostic
impl From<MissingUnsafe> for AnyDiagnostic
source§fn from(d: MissingUnsafe) -> AnyDiagnostic
fn from(d: MissingUnsafe) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<MovedOutOfRef> for AnyDiagnostic
impl From<MovedOutOfRef> for AnyDiagnostic
source§fn from(d: MovedOutOfRef) -> AnyDiagnostic
fn from(d: MovedOutOfRef) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<NeedMut> for AnyDiagnostic
impl From<NeedMut> for AnyDiagnostic
source§fn from(d: NeedMut) -> AnyDiagnostic
fn from(d: NeedMut) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<NoSuchField> for AnyDiagnostic
impl From<NoSuchField> for AnyDiagnostic
source§fn from(d: NoSuchField) -> AnyDiagnostic
fn from(d: NoSuchField) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<NonExhaustiveLet> for AnyDiagnostic
impl From<NonExhaustiveLet> for AnyDiagnostic
source§fn from(d: NonExhaustiveLet) -> AnyDiagnostic
fn from(d: NonExhaustiveLet) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<PrivateAssocItem> for AnyDiagnostic
impl From<PrivateAssocItem> for AnyDiagnostic
source§fn from(d: PrivateAssocItem) -> AnyDiagnostic
fn from(d: PrivateAssocItem) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<PrivateField> for AnyDiagnostic
impl From<PrivateField> for AnyDiagnostic
source§fn from(d: PrivateField) -> AnyDiagnostic
fn from(d: PrivateField) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<RemoveTrailingReturn> for AnyDiagnostic
impl From<RemoveTrailingReturn> for AnyDiagnostic
source§fn from(d: RemoveTrailingReturn) -> AnyDiagnostic
fn from(d: RemoveTrailingReturn) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<RemoveUnnecessaryElse> for AnyDiagnostic
impl From<RemoveUnnecessaryElse> for AnyDiagnostic
source§fn from(d: RemoveUnnecessaryElse) -> AnyDiagnostic
fn from(d: RemoveUnnecessaryElse) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<ReplaceFilterMapNextWithFindMap> for AnyDiagnostic
impl From<ReplaceFilterMapNextWithFindMap> for AnyDiagnostic
source§fn from(d: ReplaceFilterMapNextWithFindMap) -> AnyDiagnostic
fn from(d: ReplaceFilterMapNextWithFindMap) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<TraitImplIncorrectSafety> for AnyDiagnostic
impl From<TraitImplIncorrectSafety> for AnyDiagnostic
source§fn from(d: TraitImplIncorrectSafety) -> AnyDiagnostic
fn from(d: TraitImplIncorrectSafety) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<TraitImplMissingAssocItems> for AnyDiagnostic
impl From<TraitImplMissingAssocItems> for AnyDiagnostic
source§fn from(d: TraitImplMissingAssocItems) -> AnyDiagnostic
fn from(d: TraitImplMissingAssocItems) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<TraitImplOrphan> for AnyDiagnostic
impl From<TraitImplOrphan> for AnyDiagnostic
source§fn from(d: TraitImplOrphan) -> AnyDiagnostic
fn from(d: TraitImplOrphan) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<TraitImplRedundantAssocItems> for AnyDiagnostic
impl From<TraitImplRedundantAssocItems> for AnyDiagnostic
source§fn from(d: TraitImplRedundantAssocItems) -> AnyDiagnostic
fn from(d: TraitImplRedundantAssocItems) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<TypeMismatch> for AnyDiagnostic
impl From<TypeMismatch> for AnyDiagnostic
source§fn from(d: TypeMismatch) -> AnyDiagnostic
fn from(d: TypeMismatch) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<TypedHole> for AnyDiagnostic
impl From<TypedHole> for AnyDiagnostic
source§fn from(d: TypedHole) -> AnyDiagnostic
fn from(d: TypedHole) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UndeclaredLabel> for AnyDiagnostic
impl From<UndeclaredLabel> for AnyDiagnostic
source§fn from(d: UndeclaredLabel) -> AnyDiagnostic
fn from(d: UndeclaredLabel) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnimplementedBuiltinMacro> for AnyDiagnostic
impl From<UnimplementedBuiltinMacro> for AnyDiagnostic
source§fn from(d: UnimplementedBuiltinMacro) -> AnyDiagnostic
fn from(d: UnimplementedBuiltinMacro) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnreachableLabel> for AnyDiagnostic
impl From<UnreachableLabel> for AnyDiagnostic
source§fn from(d: UnreachableLabel) -> AnyDiagnostic
fn from(d: UnreachableLabel) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnresolvedAssocItem> for AnyDiagnostic
impl From<UnresolvedAssocItem> for AnyDiagnostic
source§fn from(d: UnresolvedAssocItem) -> AnyDiagnostic
fn from(d: UnresolvedAssocItem) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnresolvedExternCrate> for AnyDiagnostic
impl From<UnresolvedExternCrate> for AnyDiagnostic
source§fn from(d: UnresolvedExternCrate) -> AnyDiagnostic
fn from(d: UnresolvedExternCrate) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnresolvedField> for AnyDiagnostic
impl From<UnresolvedField> for AnyDiagnostic
source§fn from(d: UnresolvedField) -> AnyDiagnostic
fn from(d: UnresolvedField) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnresolvedIdent> for AnyDiagnostic
impl From<UnresolvedIdent> for AnyDiagnostic
source§fn from(d: UnresolvedIdent) -> AnyDiagnostic
fn from(d: UnresolvedIdent) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnresolvedImport> for AnyDiagnostic
impl From<UnresolvedImport> for AnyDiagnostic
source§fn from(d: UnresolvedImport) -> AnyDiagnostic
fn from(d: UnresolvedImport) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnresolvedMacroCall> for AnyDiagnostic
impl From<UnresolvedMacroCall> for AnyDiagnostic
source§fn from(d: UnresolvedMacroCall) -> AnyDiagnostic
fn from(d: UnresolvedMacroCall) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnresolvedMethodCall> for AnyDiagnostic
impl From<UnresolvedMethodCall> for AnyDiagnostic
source§fn from(d: UnresolvedMethodCall) -> AnyDiagnostic
fn from(d: UnresolvedMethodCall) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnresolvedModule> for AnyDiagnostic
impl From<UnresolvedModule> for AnyDiagnostic
source§fn from(d: UnresolvedModule) -> AnyDiagnostic
fn from(d: UnresolvedModule) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnresolvedProcMacro> for AnyDiagnostic
impl From<UnresolvedProcMacro> for AnyDiagnostic
source§fn from(d: UnresolvedProcMacro) -> AnyDiagnostic
fn from(d: UnresolvedProcMacro) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnusedMut> for AnyDiagnostic
impl From<UnusedMut> for AnyDiagnostic
source§fn from(d: UnusedMut) -> AnyDiagnostic
fn from(d: UnusedMut) -> AnyDiagnostic
Converts to this type from the input type.
source§impl From<UnusedVariable> for AnyDiagnostic
impl From<UnusedVariable> for AnyDiagnostic
source§fn from(d: UnusedVariable) -> AnyDiagnostic
fn from(d: UnusedVariable) -> AnyDiagnostic
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnyDiagnostic
impl RefUnwindSafe for AnyDiagnostic
impl Send for AnyDiagnostic
impl Sync for AnyDiagnostic
impl Unpin for AnyDiagnostic
impl UnwindSafe for AnyDiagnostic
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.