pub enum SemanticDiagnosticKind {
Show 112 variants ModuleFileNotFound { path: String, }, Unsupported, UnknownLiteral, UnknownBinaryOperator, UnknownTrait, UnknownImpl, UnexpectedElement { expected: Vec<ElementKind>, actual: ElementKind, }, UnknownType, UnknownEnum, LiteralError(LiteralError), NotAVariant, NotAStruct, NotAType, NotATrait, NotAnImpl, FunctionNotMemberOfTrait { impl_def_id: ImplDefId, impl_function_id: ImplFunctionId, trait_id: TraitId, }, UnexpectedGenericArgs, UnknownMember, MemberSpecifiedMoreThanOnce, UseCycle, TypeAliasCycle, ImplAliasCycle, ImplRequirementCycle, 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, }, 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, }, WrongNumberOfGenericParamsForImplFunction { expected: usize, actual: usize, }, WrongReturnTypeForImpl { impl_def_id: ImplDefId, impl_function_id: ImplFunctionId, trait_id: TraitId, expected_ty: TypeId, actual_ty: TypeId, }, AmbiguousTrait { trait_function_id0: TraitFunctionId, trait_function_id1: TraitFunctionId, }, 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, }, IfConditionNotBool { condition_ty: TypeId, }, 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, }, WrongNumberOfTupleElements { expected: usize, actual: usize, }, 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 { file_id: FileId, diagnostic: PluginMappedDiagnostic, original_diag: Box<SemanticDiagnostic>, }, NameDefinedMultipleTimes { name: SmolStr, }, NamedArgumentsAreNotSupported, UnnamedArgumentFollowsNamed, NamedArgumentMismatch { expected: SmolStr, found: SmolStr, }, UnsupportedOutsideOfFunction { feature_name: UnsupportedOutsideOfFunctionFeatureName, }, OnlyLiteralConstants, ExternItemWithImplGenericsNotSupported, MissingSemicolon, TraitMismatch { expected_trt: ConcreteTraitId, actual_trt: ConcreteTraitId, }, DesnapNonSnapshot, InternalInferenceError(InferenceError), NoImplementationOfIndexOperator(TypeId), MultipleImplementationOfIndexOperator(TypeId), UnsupportedInlineArguments, RedundantInlineAttribute, InlineAttrForExternFunctionNotAllowed, InlineAlwaysWithImplGenericArgNotAllowed, TailExpressionNotAllowedInLoop, ContinueOnlyAllowedInsideALoop, BreakOnlyAllowedInsideALoop, ReturnNotAllowedInsideALoop, ErrorPropagateNotAllowedInsideALoop, ImplicitPrecedenceAttrForExternFunctionNotAllowed, RedundantImplicitPrecedenceAttribute, UnsupportedImplicitPrecedenceArguments, InlineMacroNotFound { macro_name: SmolStr, }, InlineMacroFailed { macro_name: SmolStr, }, UnknownGenericParam { name: SmolStr, }, PositionalGenericAfterNamed, GenericArgDuplicate { name: SmolStr, }, TooManyGenericArguments { expected: usize, actual: usize, }, GenericArgOutOfOrder { name: SmolStr, },
}

Variants§

§

ModuleFileNotFound

Fields

§path: String
§

Unsupported

§

UnknownLiteral

§

UnknownBinaryOperator

§

UnknownTrait

§

UnknownImpl

§

UnexpectedElement

Fields

§expected: Vec<ElementKind>
§

UnknownType

§

UnknownEnum

§

LiteralError(LiteralError)

§

NotAVariant

§

NotAStruct

§

NotAType

§

NotATrait

§

NotAnImpl

§

FunctionNotMemberOfTrait

Fields

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

UnexpectedGenericArgs

§

UnknownMember

§

MemberSpecifiedMoreThanOnce

§

UseCycle

§

TypeAliasCycle

§

ImplAliasCycle

§

ImplRequirementCycle

§

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
§

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
§

WrongNumberOfGenericParamsForImplFunction

Fields

§expected: usize
§actual: usize
§

WrongReturnTypeForImpl

Fields

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

AmbiguousTrait

Fields

§trait_function_id0: TraitFunctionId
§trait_function_id1: TraitFunctionId
§

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
§

IfConditionNotBool

Fields

§condition_ty: TypeId
§

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

§

WrongNumberOfTupleElements

Fields

§expected: usize
§actual: usize
§

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

§file_id: FileId
§original_diag: Box<SemanticDiagnostic>
§

NameDefinedMultipleTimes

Fields

§name: SmolStr
§

NamedArgumentsAreNotSupported

§

UnnamedArgumentFollowsNamed

§

NamedArgumentMismatch

Fields

§expected: SmolStr
§found: SmolStr
§

UnsupportedOutsideOfFunction

§

OnlyLiteralConstants

§

ExternItemWithImplGenericsNotSupported

§

MissingSemicolon

§

TraitMismatch

Fields

§expected_trt: ConcreteTraitId
§actual_trt: ConcreteTraitId
§

DesnapNonSnapshot

§

InternalInferenceError(InferenceError)

§

NoImplementationOfIndexOperator(TypeId)

§

MultipleImplementationOfIndexOperator(TypeId)

§

UnsupportedInlineArguments

§

RedundantInlineAttribute

§

InlineAttrForExternFunctionNotAllowed

§

InlineAlwaysWithImplGenericArgNotAllowed

§

TailExpressionNotAllowedInLoop

§

ContinueOnlyAllowedInsideALoop

§

BreakOnlyAllowedInsideALoop

§

ReturnNotAllowedInsideALoop

§

ErrorPropagateNotAllowedInsideALoop

§

ImplicitPrecedenceAttrForExternFunctionNotAllowed

§

RedundantImplicitPrecedenceAttribute

§

UnsupportedImplicitPrecedenceArguments

§

InlineMacroNotFound

Fields

§macro_name: SmolStr
§

InlineMacroFailed

Fields

§macro_name: SmolStr
§

UnknownGenericParam

Fields

§name: SmolStr
§

PositionalGenericAfterNamed

§

GenericArgDuplicate

Fields

§name: SmolStr
§

TooManyGenericArguments

Fields

§expected: usize
§actual: usize
§

GenericArgOutOfOrder

Fields

§name: SmolStr

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

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<Q, K> Equivalent<K> for Q
where 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.
§

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

§

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

Checks if this value is equivalent to the given key. Read more
§

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

§

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

source§

impl<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
where 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>, E> for TRewriter
where T: Clone, TRewriter: SemanticRewriter<T, E>,

source§

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

source§

impl<K, V, E, TRewriter> SemanticRewriter<HashMap<K, V>, E> for TRewriter
where K: Eq + Hash, TRewriter: SemanticRewriter<K, E> + SemanticRewriter<V, E>,

source§

fn rewrite(&mut self, value: HashMap<K, V>) -> Result<HashMap<K, V>, E>

source§

impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
where 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 TRewriter
where 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>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

source§

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

source§

impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

source§

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

source§

impl<T> ToOwned for T
where 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 T
where 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 T
where 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 T
where T: ?Sized,

source§

fn upcast(&self) -> &T

source§

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

source§

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