Enum AnyDiagnostic

Source
pub enum AnyDiagnostic<'db> {
Show 53 variants AwaitOutsideOfAsync(Box<AwaitOutsideOfAsync>), BreakOutsideOfLoop(Box<BreakOutsideOfLoop>), CastToUnsized(Box<CastToUnsized<'db>>), ExpectedFunction(Box<ExpectedFunction<'db>>), InactiveCode(Box<InactiveCode>), IncoherentImpl(Box<IncoherentImpl>), IncorrectCase(Box<IncorrectCase>), InvalidCast(Box<InvalidCast<'db>>), 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<'db>>), 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<'db>>), TypeMismatch(Box<TypeMismatch<'db>>), UndeclaredLabel(Box<UndeclaredLabel>), UnimplementedBuiltinMacro(Box<UnimplementedBuiltinMacro>), UnreachableLabel(Box<UnreachableLabel>), UnresolvedAssocItem(Box<UnresolvedAssocItem>), UnresolvedExternCrate(Box<UnresolvedExternCrate>), UnresolvedField(Box<UnresolvedField<'db>>), UnresolvedImport(Box<UnresolvedImport>), UnresolvedMacroCall(Box<UnresolvedMacroCall>), UnresolvedMethodCall(Box<UnresolvedMethodCall<'db>>), UnresolvedModule(Box<UnresolvedModule>), UnresolvedIdent(Box<UnresolvedIdent>), UnusedMut(Box<UnusedMut>), UnusedVariable(Box<UnusedVariable>), GenericArgsProhibited(Box<GenericArgsProhibited>), ParenthesizedGenericArgsWithoutFnTrait(Box<ParenthesizedGenericArgsWithoutFnTrait>), BadRtn(Box<BadRtn>), IncorrectGenericsLen(Box<IncorrectGenericsLen>), IncorrectGenericsOrder(Box<IncorrectGenericsOrder>), MissingLifetime(Box<MissingLifetime>), ElidedLifetimesInPath(Box<ElidedLifetimesInPath>),
}

Variants§

§

AwaitOutsideOfAsync(Box<AwaitOutsideOfAsync>)

§

BreakOutsideOfLoop(Box<BreakOutsideOfLoop>)

§

CastToUnsized(Box<CastToUnsized<'db>>)

§

ExpectedFunction(Box<ExpectedFunction<'db>>)

§

InactiveCode(Box<InactiveCode>)

§

IncoherentImpl(Box<IncoherentImpl>)

§

IncorrectCase(Box<IncorrectCase>)

§

InvalidCast(Box<InvalidCast<'db>>)

§

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

§

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

§

TypeMismatch(Box<TypeMismatch<'db>>)

§

UndeclaredLabel(Box<UndeclaredLabel>)

§

UnimplementedBuiltinMacro(Box<UnimplementedBuiltinMacro>)

§

UnreachableLabel(Box<UnreachableLabel>)

§

UnresolvedAssocItem(Box<UnresolvedAssocItem>)

§

UnresolvedExternCrate(Box<UnresolvedExternCrate>)

§

UnresolvedField(Box<UnresolvedField<'db>>)

§

UnresolvedImport(Box<UnresolvedImport>)

§

UnresolvedMacroCall(Box<UnresolvedMacroCall>)

§

UnresolvedMethodCall(Box<UnresolvedMethodCall<'db>>)

§

UnresolvedModule(Box<UnresolvedModule>)

§

UnresolvedIdent(Box<UnresolvedIdent>)

§

UnusedMut(Box<UnusedMut>)

§

UnusedVariable(Box<UnusedVariable>)

§

GenericArgsProhibited(Box<GenericArgsProhibited>)

§

ParenthesizedGenericArgsWithoutFnTrait(Box<ParenthesizedGenericArgsWithoutFnTrait>)

§

BadRtn(Box<BadRtn>)

§

IncorrectGenericsLen(Box<IncorrectGenericsLen>)

§

IncorrectGenericsOrder(Box<IncorrectGenericsOrder>)

§

MissingLifetime(Box<MissingLifetime>)

§

ElidedLifetimesInPath(Box<ElidedLifetimesInPath>)

Trait Implementations§

Source§

impl<'db> Debug for AnyDiagnostic<'db>

Source§

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

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

impl<'db> From<AwaitOutsideOfAsync> for AnyDiagnostic<'db>

Source§

fn from(d: AwaitOutsideOfAsync) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<BadRtn> for AnyDiagnostic<'db>

Source§

fn from(d: BadRtn) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<BreakOutsideOfLoop> for AnyDiagnostic<'db>

Source§

fn from(d: BreakOutsideOfLoop) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<CastToUnsized<'db>> for AnyDiagnostic<'db>

Source§

fn from(d: CastToUnsized<'db>) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<ElidedLifetimesInPath> for AnyDiagnostic<'db>

Source§

fn from(d: ElidedLifetimesInPath) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<ExpectedFunction<'db>> for AnyDiagnostic<'db>

Source§

fn from(d: ExpectedFunction<'db>) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<GenericArgsProhibited> for AnyDiagnostic<'db>

Source§

fn from(d: GenericArgsProhibited) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<InactiveCode> for AnyDiagnostic<'db>

Source§

fn from(d: InactiveCode) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<IncoherentImpl> for AnyDiagnostic<'db>

Source§

fn from(d: IncoherentImpl) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<IncorrectCase> for AnyDiagnostic<'db>

Source§

fn from(d: IncorrectCase) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<IncorrectGenericsLen> for AnyDiagnostic<'db>

Source§

fn from(d: IncorrectGenericsLen) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<IncorrectGenericsOrder> for AnyDiagnostic<'db>

Source§

fn from(d: IncorrectGenericsOrder) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<InvalidCast<'db>> for AnyDiagnostic<'db>

Source§

fn from(d: InvalidCast<'db>) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<InvalidDeriveTarget> for AnyDiagnostic<'db>

Source§

fn from(d: InvalidDeriveTarget) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<MacroDefError> for AnyDiagnostic<'db>

Source§

fn from(d: MacroDefError) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<MacroError> for AnyDiagnostic<'db>

Source§

fn from(d: MacroError) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<MacroExpansionParseError> for AnyDiagnostic<'db>

Source§

fn from(d: MacroExpansionParseError) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<MalformedDerive> for AnyDiagnostic<'db>

Source§

fn from(d: MalformedDerive) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<MismatchedArgCount> for AnyDiagnostic<'db>

Source§

fn from(d: MismatchedArgCount) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<MismatchedTupleStructPatArgCount> for AnyDiagnostic<'db>

Source§

fn from(d: MismatchedTupleStructPatArgCount) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<MissingFields> for AnyDiagnostic<'db>

Source§

fn from(d: MissingFields) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<MissingLifetime> for AnyDiagnostic<'db>

Source§

fn from(d: MissingLifetime) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<MissingMatchArms> for AnyDiagnostic<'db>

Source§

fn from(d: MissingMatchArms) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<MissingUnsafe> for AnyDiagnostic<'db>

Source§

fn from(d: MissingUnsafe) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<MovedOutOfRef<'db>> for AnyDiagnostic<'db>

Source§

fn from(d: MovedOutOfRef<'db>) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<NeedMut> for AnyDiagnostic<'db>

Source§

fn from(d: NeedMut) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<NoSuchField> for AnyDiagnostic<'db>

Source§

fn from(d: NoSuchField) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<NonExhaustiveLet> for AnyDiagnostic<'db>

Source§

fn from(d: NonExhaustiveLet) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<ParenthesizedGenericArgsWithoutFnTrait> for AnyDiagnostic<'db>

Source§

fn from(d: ParenthesizedGenericArgsWithoutFnTrait) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<PrivateAssocItem> for AnyDiagnostic<'db>

Source§

fn from(d: PrivateAssocItem) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<PrivateField> for AnyDiagnostic<'db>

Source§

fn from(d: PrivateField) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<RemoveTrailingReturn> for AnyDiagnostic<'db>

Source§

fn from(d: RemoveTrailingReturn) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<RemoveUnnecessaryElse> for AnyDiagnostic<'db>

Source§

fn from(d: RemoveUnnecessaryElse) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<ReplaceFilterMapNextWithFindMap> for AnyDiagnostic<'db>

Source§

fn from(d: ReplaceFilterMapNextWithFindMap) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<TraitImplIncorrectSafety> for AnyDiagnostic<'db>

Source§

fn from(d: TraitImplIncorrectSafety) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<TraitImplMissingAssocItems> for AnyDiagnostic<'db>

Source§

fn from(d: TraitImplMissingAssocItems) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<TraitImplOrphan> for AnyDiagnostic<'db>

Source§

fn from(d: TraitImplOrphan) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<TraitImplRedundantAssocItems> for AnyDiagnostic<'db>

Source§

fn from(d: TraitImplRedundantAssocItems) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<TypeMismatch<'db>> for AnyDiagnostic<'db>

Source§

fn from(d: TypeMismatch<'db>) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<TypedHole<'db>> for AnyDiagnostic<'db>

Source§

fn from(d: TypedHole<'db>) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UndeclaredLabel> for AnyDiagnostic<'db>

Source§

fn from(d: UndeclaredLabel) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UnimplementedBuiltinMacro> for AnyDiagnostic<'db>

Source§

fn from(d: UnimplementedBuiltinMacro) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UnreachableLabel> for AnyDiagnostic<'db>

Source§

fn from(d: UnreachableLabel) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UnresolvedAssocItem> for AnyDiagnostic<'db>

Source§

fn from(d: UnresolvedAssocItem) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UnresolvedExternCrate> for AnyDiagnostic<'db>

Source§

fn from(d: UnresolvedExternCrate) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UnresolvedField<'db>> for AnyDiagnostic<'db>

Source§

fn from(d: UnresolvedField<'db>) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UnresolvedIdent> for AnyDiagnostic<'db>

Source§

fn from(d: UnresolvedIdent) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UnresolvedImport> for AnyDiagnostic<'db>

Source§

fn from(d: UnresolvedImport) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UnresolvedMacroCall> for AnyDiagnostic<'db>

Source§

fn from(d: UnresolvedMacroCall) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UnresolvedMethodCall<'db>> for AnyDiagnostic<'db>

Source§

fn from(d: UnresolvedMethodCall<'db>) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UnresolvedModule> for AnyDiagnostic<'db>

Source§

fn from(d: UnresolvedModule) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UnusedMut> for AnyDiagnostic<'db>

Source§

fn from(d: UnusedMut) -> AnyDiagnostic<'db>

Converts to this type from the input type.
Source§

impl<'db> From<UnusedVariable> for AnyDiagnostic<'db>

Source§

fn from(d: UnusedVariable) -> AnyDiagnostic<'db>

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'db> Freeze for AnyDiagnostic<'db>

§

impl<'db> !RefUnwindSafe for AnyDiagnostic<'db>

§

impl<'db> Send for AnyDiagnostic<'db>

§

impl<'db> Sync for AnyDiagnostic<'db>

§

impl<'db> Unpin for AnyDiagnostic<'db>

§

impl<'db> !UnwindSafe for AnyDiagnostic<'db>

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.
§

impl<T, R> CollectAndApply<T, R> for T

§

fn collect_and_apply<I, F>(iter: I, f: F) -> R
where I: Iterator<Item = T>, F: FnOnce(&[T]) -> R,

Equivalent to f(&iter.collect::<Vec<_>>()).

§

type Output = R

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. 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<I, T, U> Upcast<I, U> for T
where U: UpcastFrom<I, T>,

§

fn upcast(self, interner: I) -> U

§

impl<I, T> UpcastFrom<I, T> for T

§

fn upcast_from(from: T, _tcx: I) -> T

§

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,