Enum hir::diagnostics::AnyDiagnostic

source ·
pub enum AnyDiagnostic {
Show 46 variants AwaitOutsideOfAsync(Box<AwaitOutsideOfAsync>), BreakOutsideOfLoop(Box<BreakOutsideOfLoop>), CastToUnsized(Box<CastToUnsized>), ExpectedFunction(Box<ExpectedFunction>), InactiveCode(Box<InactiveCode>), IncoherentImpl(Box<IncoherentImpl>), IncorrectCase(Box<IncorrectCase>), InvalidCast(Box<InvalidCast>), 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>), UnusedMut(Box<UnusedMut>), UnusedVariable(Box<UnusedVariable>),
}

Variants§

§

AwaitOutsideOfAsync(Box<AwaitOutsideOfAsync>)

§

BreakOutsideOfLoop(Box<BreakOutsideOfLoop>)

§

CastToUnsized(Box<CastToUnsized>)

§

ExpectedFunction(Box<ExpectedFunction>)

§

InactiveCode(Box<InactiveCode>)

§

IncoherentImpl(Box<IncoherentImpl>)

§

IncorrectCase(Box<IncorrectCase>)

§

InvalidCast(Box<InvalidCast>)

§

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>)

§

UnusedMut(Box<UnusedMut>)

§

UnusedVariable(Box<UnusedVariable>)

Trait Implementations§

source§

impl Debug for AnyDiagnostic

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<AwaitOutsideOfAsync> for AnyDiagnostic

source§

fn from(d: AwaitOutsideOfAsync) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<BreakOutsideOfLoop> for AnyDiagnostic

source§

fn from(d: BreakOutsideOfLoop) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<CastToUnsized> for AnyDiagnostic

source§

fn from(d: CastToUnsized) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<ExpectedFunction> for AnyDiagnostic

source§

fn from(d: ExpectedFunction) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<InactiveCode> for AnyDiagnostic

source§

fn from(d: InactiveCode) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<IncoherentImpl> for AnyDiagnostic

source§

fn from(d: IncoherentImpl) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<IncorrectCase> for AnyDiagnostic

source§

fn from(d: IncorrectCase) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<InvalidCast> for AnyDiagnostic

source§

fn from(d: InvalidCast) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<InvalidDeriveTarget> for AnyDiagnostic

source§

fn from(d: InvalidDeriveTarget) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<MacroDefError> for AnyDiagnostic

source§

fn from(d: MacroDefError) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<MacroError> for AnyDiagnostic

source§

fn from(d: MacroError) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<MacroExpansionParseError> for AnyDiagnostic

source§

fn from(d: MacroExpansionParseError) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<MalformedDerive> for AnyDiagnostic

source§

fn from(d: MalformedDerive) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<MismatchedArgCount> for AnyDiagnostic

source§

fn from(d: MismatchedArgCount) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<MismatchedTupleStructPatArgCount> for AnyDiagnostic

source§

fn from(d: MismatchedTupleStructPatArgCount) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<MissingFields> for AnyDiagnostic

source§

fn from(d: MissingFields) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<MissingMatchArms> for AnyDiagnostic

source§

fn from(d: MissingMatchArms) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<MissingUnsafe> for AnyDiagnostic

source§

fn from(d: MissingUnsafe) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<MovedOutOfRef> for AnyDiagnostic

source§

fn from(d: MovedOutOfRef) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<NeedMut> for AnyDiagnostic

source§

fn from(d: NeedMut) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<NoSuchField> for AnyDiagnostic

source§

fn from(d: NoSuchField) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<NonExhaustiveLet> for AnyDiagnostic

source§

fn from(d: NonExhaustiveLet) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<PrivateAssocItem> for AnyDiagnostic

source§

fn from(d: PrivateAssocItem) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<PrivateField> for AnyDiagnostic

source§

fn from(d: PrivateField) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<RemoveTrailingReturn> for AnyDiagnostic

source§

fn from(d: RemoveTrailingReturn) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<RemoveUnnecessaryElse> for AnyDiagnostic

source§

fn from(d: RemoveUnnecessaryElse) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<ReplaceFilterMapNextWithFindMap> for AnyDiagnostic

source§

fn from(d: ReplaceFilterMapNextWithFindMap) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<TraitImplIncorrectSafety> for AnyDiagnostic

source§

fn from(d: TraitImplIncorrectSafety) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<TraitImplMissingAssocItems> for AnyDiagnostic

source§

fn from(d: TraitImplMissingAssocItems) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<TraitImplOrphan> for AnyDiagnostic

source§

fn from(d: TraitImplOrphan) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<TraitImplRedundantAssocItems> for AnyDiagnostic

source§

fn from(d: TraitImplRedundantAssocItems) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<TypeMismatch> for AnyDiagnostic

source§

fn from(d: TypeMismatch) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<TypedHole> for AnyDiagnostic

source§

fn from(d: TypedHole) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UndeclaredLabel> for AnyDiagnostic

source§

fn from(d: UndeclaredLabel) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UnimplementedBuiltinMacro> for AnyDiagnostic

source§

fn from(d: UnimplementedBuiltinMacro) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UnreachableLabel> for AnyDiagnostic

source§

fn from(d: UnreachableLabel) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UnresolvedAssocItem> for AnyDiagnostic

source§

fn from(d: UnresolvedAssocItem) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UnresolvedExternCrate> for AnyDiagnostic

source§

fn from(d: UnresolvedExternCrate) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UnresolvedField> for AnyDiagnostic

source§

fn from(d: UnresolvedField) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UnresolvedIdent> for AnyDiagnostic

source§

fn from(d: UnresolvedIdent) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UnresolvedImport> for AnyDiagnostic

source§

fn from(d: UnresolvedImport) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UnresolvedMacroCall> for AnyDiagnostic

source§

fn from(d: UnresolvedMacroCall) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UnresolvedMethodCall> for AnyDiagnostic

source§

fn from(d: UnresolvedMethodCall) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UnresolvedModule> for AnyDiagnostic

source§

fn from(d: UnresolvedModule) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UnusedMut> for AnyDiagnostic

source§

fn from(d: UnusedMut) -> AnyDiagnostic

Converts to this type from the input type.
source§

impl From<UnusedVariable> for AnyDiagnostic

source§

fn from(d: UnusedVariable) -> AnyDiagnostic

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Cast for T

§

fn cast<U>(self, interner: <U as HasInterner>::Interner) -> U
where Self: CastTo<U>, U: HasInterner,

Cast a value to type U using CastTo.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoBox<dyn Any> for T
where T: Any,

§

fn into_box(self) -> Box<dyn Any>

Convert self into the appropriate boxed form.
§

impl<T> IntoBox<dyn Any + Send> for T
where T: Any + Send,

§

fn into_box(self) -> Box<dyn Any + Send>

Convert self into the appropriate boxed form.
§

impl<T> IntoBox<dyn Any + Sync + Send> for T
where T: Any + Send + Sync,

§

fn into_box(self) -> Box<dyn Any + Sync + Send>

Convert self into the appropriate boxed form.
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<'a, T> Captures<'a> for T
where T: ?Sized,