Enum rune::CompileErrorKind[][src]

pub enum CompileErrorKind {
Show 82 variants Custom { message: &'static str, }, IrError { error: IrErrorKind, }, QueryError { error: QueryErrorKind, }, ParseError { error: ParseErrorKind, }, InsertMetaError { error: InsertMetaError, }, ResolveError { error: ResolveErrorKind, }, ModFileError { path: PathBuf, error: Error, }, ConstError { msg: &'static str, }, Experimental { msg: &'static str, }, ModNotFound { path: PathBuf, }, ModAlreadyLoaded { item: Item, existing: (SourceId, Span), }, VariableConflict { name: String, existing_span: Span, }, MissingMacro { item: Item, }, CallMacroError { item: Item, error: Error, }, MissingLocal { name: String, }, MissingItem { item: Item, }, UnsupportedGlobal, UnsupportedModuleSource, UnsupportedModuleRoot { root: PathBuf, }, UnsupportedModuleItem { item: Item, }, UnsupportedWildcard, UnsupportedSelf, UnsupportedUnaryOp { op: UnOp, }, UnsupportedBinaryOp { op: BinOp, }, UnsupportedLitObject { meta: CompileMeta, }, LitObjectMissingField { field: Box<str>, item: Item, }, LitObjectNotField { field: Box<str>, item: Item, }, UnsupportedAssignExpr, UnsupportedBinaryExpr, UnsupportedRef, UnsupportedSelectPattern, BadFieldAccess, UnsupportedArgumentCount { meta: CompileMeta, expected: usize, actual: usize, }, UnsupportedPattern { meta: CompileMeta, }, UnsupportedPatternRest, UnsupportedPatternExpr, UnsupportedBinding, MatchFloatInPattern, DuplicateObjectKey { existing: Span, object: Span, }, YieldOutsideFunction, AwaitOutsideFunction, InstanceFunctionOutsideImpl, MissingPreludeModule { item: Item, }, UnsupportedTupleIndex { number: Number, }, BreakOutsideOfLoop, ContinueOutsideOfLoop, SelectMultipleDefaults, ExpectedBlockSemiColon { followed_span: Span, }, ExpectedMacroSemi, FnConstAsyncConflict, BlockConstAsyncConflict, FnConstNotGenerator, ClosureKind, UnsupportedCrate, UnsupportedSelfType, UnsupportedSelfValue, UnsupportedSuper, UnsupportedSuperInSelfType, IllegalUseSegment, UseAliasNotSupported, FunctionConflict { existing: DebugSignature, }, FunctionReExportConflict { hash: Hash, }, ConstantConflict { item: Item, hash: Hash, }, UnsupportedMeta { existing: Item, }, StaticStringMissing { hash: Hash, slot: usize, }, StaticBytesMissing { hash: Hash, slot: usize, }, StaticStringHashConflict { hash: Hash, current: String, existing: String, }, StaticBytesHashConflict { hash: Hash, current: Vec<u8>, existing: Vec<u8>, }, StaticObjectKeysMissing { hash: Hash, slot: usize, }, StaticObjectKeysHashConflict { hash: Hash, current: Box<[String]>, existing: Box<[String]>, }, DuplicateLabel { label: Label, }, MissingLabel { label: Label, }, MissingLoopLabel { label: Box<str>, }, BaseOverflow, OffsetOverflow, ExpectedLeadingPathSegment, UnsupportedVisibility, ExpectedMeta { expected: &'static str, meta: CompileMeta, }, NoSuchBuiltInMacro { name: Box<str>, }, VariableMoved { moved_at: Span, }, UnsupportedGenerics, NestedTest { nested_span: Span, },
}
Expand description

Compiler error.

Variants

Custom

Fields of Custom

message: &'static str
IrError

Fields of IrError

error: IrErrorKind
QueryError

Fields of QueryError

error: QueryErrorKind
ParseError

Fields of ParseError

error: ParseErrorKind
InsertMetaError

Fields of InsertMetaError

error: InsertMetaError
ResolveError

Fields of ResolveError

error: ResolveErrorKind
ModFileError

Fields of ModFileError

path: PathBuferror: Error
ConstError

Fields of ConstError

msg: &'static str
Experimental

Fields of Experimental

msg: &'static str
ModNotFound

Fields of ModNotFound

path: PathBuf
ModAlreadyLoaded

Fields of ModAlreadyLoaded

item: Itemexisting: (SourceId, Span)
VariableConflict

Fields of VariableConflict

name: Stringexisting_span: Span
MissingMacro

Fields of MissingMacro

item: Item
CallMacroError

Fields of CallMacroError

item: Itemerror: Error
MissingLocal

Fields of MissingLocal

name: String
MissingItem

Fields of MissingItem

item: Item
UnsupportedGlobal
UnsupportedModuleSource
UnsupportedModuleRoot

Fields of UnsupportedModuleRoot

root: PathBuf
UnsupportedModuleItem

Fields of UnsupportedModuleItem

item: Item
UnsupportedWildcard
UnsupportedSelf
UnsupportedUnaryOp

Fields of UnsupportedUnaryOp

op: UnOp
UnsupportedBinaryOp

Fields of UnsupportedBinaryOp

op: BinOp
UnsupportedLitObject

Fields of UnsupportedLitObject

meta: CompileMeta
LitObjectMissingField

Fields of LitObjectMissingField

field: Box<str>item: Item
LitObjectNotField

Fields of LitObjectNotField

field: Box<str>item: Item
UnsupportedAssignExpr
UnsupportedBinaryExpr
UnsupportedRef
UnsupportedSelectPattern
BadFieldAccess
UnsupportedArgumentCount

Fields of UnsupportedArgumentCount

meta: CompileMetaexpected: usizeactual: usize
UnsupportedPattern

Fields of UnsupportedPattern

meta: CompileMeta
UnsupportedPatternRest
UnsupportedPatternExpr
UnsupportedBinding
MatchFloatInPattern
DuplicateObjectKey

Fields of DuplicateObjectKey

existing: Spanobject: Span
YieldOutsideFunction
AwaitOutsideFunction
InstanceFunctionOutsideImpl
MissingPreludeModule

Fields of MissingPreludeModule

item: Item
UnsupportedTupleIndex

Fields of UnsupportedTupleIndex

number: Number
BreakOutsideOfLoop
ContinueOutsideOfLoop
SelectMultipleDefaults
ExpectedBlockSemiColon

Fields of ExpectedBlockSemiColon

followed_span: Span
ExpectedMacroSemi
FnConstAsyncConflict
BlockConstAsyncConflict
FnConstNotGenerator
ClosureKind
UnsupportedCrate
UnsupportedSelfType
UnsupportedSelfValue
UnsupportedSuper
UnsupportedSuperInSelfType
IllegalUseSegment
UseAliasNotSupported
FunctionConflict

Fields of FunctionConflict

existing: DebugSignature
FunctionReExportConflict

Fields of FunctionReExportConflict

hash: Hash
ConstantConflict

Fields of ConstantConflict

item: Itemhash: Hash
UnsupportedMeta

Fields of UnsupportedMeta

existing: Item
StaticStringMissing

Fields of StaticStringMissing

hash: Hashslot: usize
StaticBytesMissing

Fields of StaticBytesMissing

hash: Hashslot: usize
StaticStringHashConflict

Fields of StaticStringHashConflict

hash: Hashcurrent: Stringexisting: String
StaticBytesHashConflict

Fields of StaticBytesHashConflict

hash: Hashcurrent: Vec<u8>existing: Vec<u8>
StaticObjectKeysMissing

Fields of StaticObjectKeysMissing

hash: Hashslot: usize
StaticObjectKeysHashConflict

Fields of StaticObjectKeysHashConflict

hash: Hashcurrent: Box<[String]>existing: Box<[String]>
DuplicateLabel

Fields of DuplicateLabel

label: Label
MissingLabel

Fields of MissingLabel

label: Label
MissingLoopLabel

Fields of MissingLoopLabel

label: Box<str>
BaseOverflow
OffsetOverflow
ExpectedLeadingPathSegment
UnsupportedVisibility
ExpectedMeta

Fields of ExpectedMeta

expected: &'static strmeta: CompileMeta
NoSuchBuiltInMacro

Fields of NoSuchBuiltInMacro

name: Box<str>
VariableMoved

Fields of VariableMoved

moved_at: Span
UnsupportedGenerics
NestedTest

Fields of NestedTest

nested_span: Span

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.