pub enum SemanticDiagnosticKind {
Show 108 variants ModuleFileNotFound { path: String, }, Unsupported, UnknownLiteral, UnsupportedUnaryOperator { op: SmolStr, ty: TypeId, }, UnknownBinaryOperator, UnsupportedBinaryOperator { op: SmolStr, type1: TypeId, type2: TypeId, }, UnknownTrait, UnknownImpl, UnexpectedElement { expected: Vec<ElementKind>, actual: ElementKind, }, UnknownType, UnknownStruct, UnknownEnum, NoLiteralFunctionFound, LiteralOutOfRange { ty: TypeId, }, NotAVariant, NotAStruct, NotAType, NotATrait, FunctionNotMemberOfTrait { impl_def_id: ImplDefId, impl_function_id: ImplFunctionId, trait_id: TraitId, }, UnexpectedGenericArgs, UnknownMember, MemberSpecifiedMoreThanOnce, UseCycle, TypeAliasCycle, ImplAliasCycle, ExpectedConcreteVariant, MissingMember { member_name: SmolStr, }, WrongNumberOfParameters { impl_def_id: ImplDefId, impl_function_id: ImplFunctionId, trait_id: TraitId, expected: usize, actual: usize, }, WrongNumberOfArguments { expected: usize, actual: usize, }, WrongNumberOfGenericArguments { expected: usize, actual: usize, }, WrongParameterType { impl_def_id: ImplDefId, impl_function_id: ImplFunctionId, trait_id: TraitId, expected_ty: TypeId, actual_ty: TypeId, }, VariantCtorNotImmutable, TraitParamMutable { trait_id: TraitId, function_id: TraitFunctionId, }, TraitFunctionWithBody { trait_id: TraitId, function_id: TraitFunctionId, }, ParameterShouldBeReference { impl_def_id: ImplDefId, impl_function_id: ImplFunctionId, trait_id: TraitId, }, ParameterShouldNotBeReference { impl_def_id: ImplDefId, impl_function_id: ImplFunctionId, trait_id: TraitId, }, WrongParameterName { impl_def_id: ImplDefId, impl_function_id: ImplFunctionId, trait_id: TraitId, expected_name: SmolStr, }, WrongType { expected_ty: TypeId, actual_ty: TypeId, }, WrongArgumentType { expected_ty: TypeId, actual_ty: TypeId, }, WrongReturnType { expected_ty: TypeId, actual_ty: TypeId, }, WrongReturnTypeForImpl { impl_def_id: ImplDefId, impl_function_id: ImplFunctionId, trait_id: TraitId, expected_ty: TypeId, actual_ty: TypeId, }, NoImplementationOfTrait { concrete_trait_id: ConcreteTraitId, generic_args: Vec<GenericArgumentId>, }, AmbiguousTrait { trait_function_id0: TraitFunctionId, trait_function_id1: TraitFunctionId, }, MultipleImplementationOfTrait { trait_id: TraitId, all_impl_ids: Vec<UninferredImpl>, }, VariableNotFound { name: SmolStr, }, StructMemberRedefinition { struct_id: StructId, member_name: SmolStr, }, EnumVariantRedefinition { enum_id: EnumId, variant_name: SmolStr, }, ParamNameRedefinition { function_title_id: FunctionTitleId, param_name: SmolStr, }, IncompatibleMatchArms { match_ty: TypeId, arm_ty: TypeId, }, IncompatibleIfBlockTypes { block_if_ty: TypeId, block_else_ty: TypeId, }, IncompatibleLoopBreakTypes { current_ty: TypeId, break_ty: TypeId, }, TypeHasNoMembers { ty: TypeId, member_name: SmolStr, }, NoSuchMethod { ty: TypeId, method_name: SmolStr, }, NoSuchMember { struct_id: StructId, member_name: SmolStr, }, NoSuchVariant { enum_id: EnumId, variant_name: SmolStr, }, IncompatibleErrorPropagateType { return_ty: TypeId, err_ty: TypeId, }, ErrorPropagateOnNonErrorType { ty: TypeId, }, ConstGenericParamSupported, RefArgNotAVariable, RefArgNotMutable, RefArgNotExplicit, ImmutableArgWithModifiers, AssignmentToImmutableVar, InvalidLhsForAssignment, InvalidMemberExpression, InvalidPath, PathNotFound(NotFoundItemType), SuperUsedInRootModule, RedundantModifier { current_modifier: SmolStr, previous_modifier: SmolStr, }, ReferenceLocalVariable, UnexpectedEnumPattern { ty: TypeId, }, UnexpectedStructPattern { ty: TypeId, }, UnexpectedTuplePattern { ty: TypeId, }, WrongEnum { expected_enum: EnumId, actual_enum: EnumId, }, InvalidCopyTraitImpl { inference_error: InferenceError, }, InvalidDropTraitImpl { inference_error: InferenceError, }, InvalidImplItem { item_kw: SmolStr, }, MissingItemsInImpl { item_names: Vec<SmolStr>, }, PassPanicAsNopanic { impl_function_id: ImplFunctionId, trait_id: TraitId, }, PanicableFromNonPanicable, PanicableExternFunction, PluginDiagnostic(PluginDiagnostic), WrappedPluginDiagnostic { diagnostic: PluginMappedDiagnostic, original_diag: Box<SemanticDiagnostic>, }, NameDefinedMultipleTimes { name: SmolStr, }, NamedArgumentsAreNotSupported, UnnamedArgumentFollowsNamed, NamedArgumentMismatch { expected: SmolStr, found: SmolStr, }, UnsupportedOutsideOfFunction { feature_name: UnsupportedOutsideOfFunctionFeatureName, }, OnlyLiteralConstants, ExternItemWithImplGenericsNotSupported, MissingSemicolon, TraitMismatch, DesnapNonSnapshot, InternalInferenceError(InferenceError), NoImplementationOfIndexOperator(TypeId), MultipleImplementationOfIndexOperator(TypeId), UnsupportedInlineArguments, RedundantInlineAttribute, InlineWithoutArgumentNotSupported, InlineAttrForExternFunctionNotAllowed, InlineAlwaysWithImplGenericArgNotAllowed, TailExpressionNotAllowedInLoop, ContinueOnlyAllowedInsideALoop, BreakOnlyAllowedInsideALoop, ReturnNotAllowedInsideALoop, ImplicitPrecedenceAttrForExternFunctionNotAllowed, RedundantImplicitPrecedenceAttribute, UnsupportedImplicitPrecedenceArguments,
}

Variants§

§

ModuleFileNotFound

Fields

§path: String
§

Unsupported

§

UnknownLiteral

§

UnsupportedUnaryOperator

Fields

§

UnknownBinaryOperator

§

UnsupportedBinaryOperator

Fields

§type1: TypeId
§type2: TypeId
§

UnknownTrait

§

UnknownImpl

§

UnexpectedElement

Fields

§expected: Vec<ElementKind>
§

UnknownType

§

UnknownStruct

§

UnknownEnum

§

NoLiteralFunctionFound

§

LiteralOutOfRange

Fields

§

NotAVariant

§

NotAStruct

§

NotAType

§

NotATrait

§

FunctionNotMemberOfTrait

Fields

§impl_def_id: ImplDefId
§impl_function_id: ImplFunctionId
§trait_id: TraitId
§

UnexpectedGenericArgs

§

UnknownMember

§

MemberSpecifiedMoreThanOnce

§

UseCycle

§

TypeAliasCycle

§

ImplAliasCycle

§

ExpectedConcreteVariant

§

MissingMember

Fields

§member_name: SmolStr
§

WrongNumberOfParameters

Fields

§impl_def_id: ImplDefId
§impl_function_id: ImplFunctionId
§trait_id: TraitId
§expected: usize
§actual: usize
§

WrongNumberOfArguments

Fields

§expected: usize
§actual: usize
§

WrongNumberOfGenericArguments

Fields

§expected: usize
§actual: usize
§

WrongParameterType

Fields

§impl_def_id: ImplDefId
§impl_function_id: ImplFunctionId
§trait_id: TraitId
§expected_ty: TypeId
§actual_ty: TypeId
§

VariantCtorNotImmutable

§

TraitParamMutable

Fields

§trait_id: TraitId
§function_id: TraitFunctionId
§

TraitFunctionWithBody

Fields

§trait_id: TraitId
§function_id: TraitFunctionId
§

ParameterShouldBeReference

Fields

§impl_def_id: ImplDefId
§impl_function_id: ImplFunctionId
§trait_id: TraitId
§

ParameterShouldNotBeReference

Fields

§impl_def_id: ImplDefId
§impl_function_id: ImplFunctionId
§trait_id: TraitId
§

WrongParameterName

Fields

§impl_def_id: ImplDefId
§impl_function_id: ImplFunctionId
§trait_id: TraitId
§expected_name: SmolStr
§

WrongType

Fields

§expected_ty: TypeId
§actual_ty: TypeId
§

WrongArgumentType

Fields

§expected_ty: TypeId
§actual_ty: TypeId
§

WrongReturnType

Fields

§expected_ty: TypeId
§actual_ty: TypeId
§

WrongReturnTypeForImpl

Fields

§impl_def_id: ImplDefId
§impl_function_id: ImplFunctionId
§trait_id: TraitId
§expected_ty: TypeId
§actual_ty: TypeId
§

NoImplementationOfTrait

Fields

§concrete_trait_id: ConcreteTraitId
§generic_args: Vec<GenericArgumentId>
§

AmbiguousTrait

Fields

§trait_function_id0: TraitFunctionId
§trait_function_id1: TraitFunctionId
§

MultipleImplementationOfTrait

Fields

§trait_id: TraitId
§all_impl_ids: Vec<UninferredImpl>
§

VariableNotFound

Fields

§name: SmolStr
§

StructMemberRedefinition

Fields

§struct_id: StructId
§member_name: SmolStr
§

EnumVariantRedefinition

Fields

§enum_id: EnumId
§variant_name: SmolStr
§

ParamNameRedefinition

Fields

§function_title_id: FunctionTitleId
§param_name: SmolStr
§

IncompatibleMatchArms

Fields

§match_ty: TypeId
§arm_ty: TypeId
§

IncompatibleIfBlockTypes

Fields

§block_if_ty: TypeId
§block_else_ty: TypeId
§

IncompatibleLoopBreakTypes

Fields

§current_ty: TypeId
§break_ty: TypeId
§

TypeHasNoMembers

Fields

§member_name: SmolStr
§

NoSuchMethod

Fields

§method_name: SmolStr
§

NoSuchMember

Fields

§struct_id: StructId
§member_name: SmolStr
§

NoSuchVariant

Fields

§enum_id: EnumId
§variant_name: SmolStr
§

IncompatibleErrorPropagateType

Fields

§return_ty: TypeId
§err_ty: TypeId
§

ErrorPropagateOnNonErrorType

Fields

§

ConstGenericParamSupported

§

RefArgNotAVariable

§

RefArgNotMutable

§

RefArgNotExplicit

§

ImmutableArgWithModifiers

§

AssignmentToImmutableVar

§

InvalidLhsForAssignment

§

InvalidMemberExpression

§

InvalidPath

§

PathNotFound(NotFoundItemType)

§

SuperUsedInRootModule

§

RedundantModifier

Fields

§current_modifier: SmolStr
§previous_modifier: SmolStr
§

ReferenceLocalVariable

§

UnexpectedEnumPattern

Fields

§

UnexpectedStructPattern

Fields

§

UnexpectedTuplePattern

Fields

§

WrongEnum

Fields

§expected_enum: EnumId
§actual_enum: EnumId
§

InvalidCopyTraitImpl

Fields

§inference_error: InferenceError
§

InvalidDropTraitImpl

Fields

§inference_error: InferenceError
§

InvalidImplItem

Fields

§item_kw: SmolStr
§

MissingItemsInImpl

Fields

§item_names: Vec<SmolStr>
§

PassPanicAsNopanic

Fields

§impl_function_id: ImplFunctionId
§trait_id: TraitId
§

PanicableFromNonPanicable

§

PanicableExternFunction

§

PluginDiagnostic(PluginDiagnostic)

§

WrappedPluginDiagnostic

Fields

§original_diag: Box<SemanticDiagnostic>
§

NameDefinedMultipleTimes

Fields

§name: SmolStr
§

NamedArgumentsAreNotSupported

§

UnnamedArgumentFollowsNamed

§

NamedArgumentMismatch

Fields

§expected: SmolStr
§found: SmolStr
§

UnsupportedOutsideOfFunction

§

OnlyLiteralConstants

§

ExternItemWithImplGenericsNotSupported

§

MissingSemicolon

§

TraitMismatch

§

DesnapNonSnapshot

§

InternalInferenceError(InferenceError)

§

NoImplementationOfIndexOperator(TypeId)

§

MultipleImplementationOfIndexOperator(TypeId)

§

UnsupportedInlineArguments

§

RedundantInlineAttribute

§

InlineWithoutArgumentNotSupported

§

InlineAttrForExternFunctionNotAllowed

§

InlineAlwaysWithImplGenericArgNotAllowed

§

TailExpressionNotAllowedInLoop

§

ContinueOnlyAllowedInsideALoop

§

BreakOnlyAllowedInsideALoop

§

ReturnNotAllowedInsideALoop

§

ImplicitPrecedenceAttrForExternFunctionNotAllowed

§

RedundantImplicitPrecedenceAttribute

§

UnsupportedImplicitPrecedenceArguments

Trait Implementations§

source§

impl Clone for SemanticDiagnosticKind

source§

fn clone(&self) -> SemanticDiagnosticKind

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SemanticDiagnosticKind

source§

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

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

impl Hash for SemanticDiagnosticKind

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<SemanticDiagnosticKind> for SemanticDiagnosticKind

source§

fn eq(&self, other: &SemanticDiagnosticKind) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for SemanticDiagnosticKind

source§

impl StructuralEq for SemanticDiagnosticKind

source§

impl StructuralPartialEq for SemanticDiagnosticKind

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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.

source§

impl<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriterwhere TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

source§

fn rewrite(&mut self, value: (T0, T1)) -> Result<(T0, T1), E>

source§

impl<T, E, TRewriter> SemanticRewriter<Box<T, Global>, E> for TRewriterwhere T: Clone, TRewriter: SemanticRewriter<T, E>,

source§

fn rewrite(&mut self, value: Box<T, Global>) -> Result<Box<T, Global>, E>

source§

impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriterwhere TRewriter: SemanticRewriter<T, E>,

source§

fn rewrite(&mut self, value: Option<T>) -> Result<Option<T>, E>

source§

impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriterwhere TRewriter: SemanticRewriter<T, E>,

source§

fn rewrite(&mut self, value: Result<T, E2>) -> Result<Result<T, E2>, E>

source§

impl<T, E, TRewriter> SemanticRewriter<Vec<T, Global>, E> for TRewriterwhere TRewriter: SemanticRewriter<T, E>,

source§

fn rewrite(&mut self, value: Vec<T, Global>) -> Result<Vec<T, Global>, E>

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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

impl<T> Upcast<T> for Twhere T: ?Sized,

source§

fn upcast(&self) -> &T

source§

impl<T> UpcastMut<T> for Twhere T: ?Sized,

source§

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